{
  "openapi": "3.0.0",
  "info": {
    "title": "Marketing API",
    "description": " # Introduction\nWelcome to the E-goi Marketing API!\n<br><br>This API enables you to integrate, automate, and manage all the marketing functionalities offered by E-goi. With it, you can interact with contact lists, send email campaigns, SMS, push notifications, and much more.\n<br><br>Our API is designed to simplify integration in a straightforward, efficient, and secure way, meeting the needs of developers and businesses looking to optimize their digital marketing operations.\n<br><br>Explore the documentation to discover all the possibilities and start creating integrations that drive your marketing results.\n# Getting Started\n\nE-goi can be integrated with many environments and programming languages via our REST API.\nWe've created a developer focused portal to give your organization a clear and quick overview of how to integrate with E-goi.\nThe developer portal focuses on scenarios for integration and flow of events. We recommend familiarizing yourself with all of the content in the developer portal, before start using our rest API.\n\nThe E-goi  APIv3 is served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported.\n\nRequest data is passed to the API by POSTing JSON objects to the API endpoints with the appropriate parameters.\n\n    BaseURL = api.egoiapp.com\n\n# RESTful Services\nThis API supports 5 HTTP methods:\n\n* <b>GET</b>:\nThe HTTP GET method is used to **read** (or retrieve) a representation of a resource.\n* <b>POST</b>:\nThe POST verb is most-often utilized to **create** new resources.\n* <b>PATCH</b>:\nPATCH is used for **modify** capabilities. The PATCH request only needs to contain the changes to the resource, not the complete resource\n* <b>PUT</b>:\nPUT is most-often utilized for **update** capabilities, PUT-ing to a known resource URI with the request body containing the newly-updated representation of the original resource.\n* <b>DELETE</b>:\nDELETE is pretty easy to understand. It is used to **delete** a resource identified by a URI.\n\n# Transport Layer Security (TLS)\nTransport Layer Security (TLS) is a widely used authentication and encryption protocol that establishes a secure communications channel for data-in-transit while ensuring that the client and server can validate one another.<br>\nOur API requires TLS 1.2 or TLS 1.3. We recommend <b>TLS 1.3</b>.<br><br>\n<b>TLS 1.3 ciphers</b>\n* TLS_AES_256_GCM_SHA384 (0x1302) ECDH x25519 (eq. 3072 bits RSA) FS\n* TLS_CHACHA20_POLY1305_SHA256 (0x1303) ECDH x25519 (eq. 3072 bits RSA) FS\n* TLS_AES_128_GCM_SHA256 (0x1301) ECDH x25519 (eq. 3072 bits RSA) FS\n\n<b>TLS 1.2 ciphers</b>\n* TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (0xc030) ECDH x25519 (eq. 3072 bits RSA) FS\n* TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (0xc02f) ECDH x25519 (eq. 3072 bits RSA) FS\n* TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 (0x9f) DH 4096 bits FS\n* TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 (0x9e) DH 4096 bits FS\n\n# Rate Limits\nRate limits are used to control the amount of traffic that is allowed to flow between the client and the server.<br>\nThis is done to prevent abuse and ensure that the API is available to all users.<br>\nThe rate limits are applied to ensure the stability and security of our API and are based on the number of requests made in a given time period.<br>\nIf the rate limit is exceeded, the API will return a 429 status code and the request will be rejected.<br>\nEach API response includes headers providing real-time rate limit information:\n* **X-RateLimit-Limit**: The maximum number of requests that the consumer is permitted to make in a given time period.\n* **X-RateLimit-Remaining**: The number of requests remaining in the current rate limit window.\n* **X-RateLimit-Reset**: The remaining time in seconds until the rate limit window resets.\n\n# Account Limit\nThe account limit is a rate limit that is applied to the account as a whole.<br>\nThis limit is applied to all requests made by the account, regardless of the client making the request.<br>\nThe account limit is applied to ensure that the account does not exceed the maximum number of requests allowed in a given time period.\nEach account has an overall usage limit per hour. If the account limit is exceeded, the API will return a 429 status code and the request will be rejected.<br>\nEach API response includes headers providing real-time rate limit information:\n* **X-Account-Limit**: The maximum number of requests that the account is permitted to make in a given time period.\n* **X-Account-Remaining**: The number of requests remaining in the current rate limit window.\n* **X-Account-Reset**: The remaining time in seconds until the rate limit window resets.\n\n\n# Authentication\n\nWe use a custom authentication method, you will need a apikey that you can find in your account settings. Below you will see a curl example to get your account information:\n    #!/bin/bash\n    curl -X GET 'https://api.egoiapp.com/my-account' \\\n    -H 'accept: application/json' \\\n    -H 'Apikey: <YOUR_APY_KEY>'\n\nHere you can see a curl Post example with authentication:\n    #!/bin/bash\n    curl -X POST 'http://api.egoiapp.com/tags' \\\n    -H 'accept: application/json' \\\n    -H 'Apikey: <YOUR_APY_KEY>' \\\n    -H 'Content-Type: application/json' \\\n    -d '{`name`:`Your custom tag`,`color`:`#FFFFFF`}'\n\n# SDK\nGet started quickly with E-goi with our integration tools. Our SDK is a modern open source library that makes it easy to integrate your application with E-goi services.\n * <a href='https://github.com/E-goi/sdk-java'>Java</a>\n * <a href='https://github.com/E-goi/sdk-php'>PHP</a>\n * <a href='https://github.com/E-goi/sdk-python'>Python</a>\n * <a href='https://github.com/E-goi/sdk-ruby'>Ruby</a>\n * <a href='https://github.com/E-goi/sdk-javascript'>Javascript</a>\n * <a href='https://github.com/E-goi/sdk-csharp'>C#</a>\n\n# Stream Limits\nStream limits are security mesures we have to make sure our API have a fair use policy, for this reason, any request that creates or modifies data (**POST**, **PATCH** and **PUT**) is limited to a maximum of **20MB** of content length. If you arrive to this limit in one of your request, you'll receive a HTTP code **413 (Request Entity Too Large)** and the request will be ignored. To avoid this error in importation's requests, it's advised the request's division in batches that have each one less than 20MB.\n\n# Timeouts\nTimeouts set a maximum waiting time on a request's response. Our API, sets a default timeout for each request and when breached, you'll receive an HTTP **408 (Request Timeout)** error code. You should take into consideration that response times can vary widely based on the complexity of the request, amount of data being analyzed, and the load on the system and workspace at the time of the query. When dealing with such errors, you should first attempt to reduce the complexity and amount of data under analysis, and only then, if problems are still occurring ask for support.\n\nFor all these reasons, the default timeout for each request is **10 Seconds** and any request that creates or modifies data (**POST**, **PATCH** and **PUT**) will have a timeout of **60 Seconds**. Specific timeouts may exist for specific requests, these can be found in the request's documentation.\n\n# Callbacks\nA callback is an asynchronous API request that originates from the API server and is sent to the client in response to a previous request sent by that client.\n\nThe API will make a **POST** request to the address defined in the URL with the information regarding the event of interest and share data related to that event.\n\n<a href='/usecases/callbacks/' target='_blank'>[Go to callbacks documentation]</a>\n\n***Note:*** Only http or https protocols are supported in the Url parameter.\n\n<security-definitions/>",
    "version": "V3"
  },
  "servers": [
    {
      "url": "https://api.egoiapp.com",
      "description": "Egoi Public API Server"
    }
  ],
  "paths": {
    "/automations/{automation_id}/actions": {
      "get": {
        "tags": [
          "Automations"
        ],
        "summary": "Get all actions from given automation",
        "description": "Returns all actions",
        "operationId": "getAllActions",
        "parameters": [
          {
            "name": "automation_id",
            "in": "query",
            "description": "Reference attribute to automation id",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AutomationActionsCollection",
                  "description": "Collection of automation actions",
                  "properties": {
                    "total_items": {
                      "description": "Returned actions count",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned actions",
                      "type": "array",
                      "items": {
                        "title": "AutomationActions",
                        "description": "Automation actions schema",
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "action_id": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "readOnly": true,
                                "example": 1
                              },
                              "title": {
                                "description": "Action title",
                                "type": "string",
                                "example": "Example Action"
                              },
                              "action": {
                                "description": "Type od action",
                                "type": "string",
                                "example": "addTag"
                              },
                              "parent_id": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "readOnly": true,
                                "example": 1
                              },
                              "created_by": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "readOnly": true,
                                "example": 1
                              },
                              "created": {
                                "readOnly": true,
                                "allOf": [
                                  {
                                    "title": "date_time",
                                    "description": "The date and time",
                                    "type": "string",
                                    "format": "date-time",
                                    "example": "YYYY-MM-DD hh:mm:ss"
                                  }
                                ]
                              },
                              "updated": {
                                "readOnly": true,
                                "allOf": [
                                  {
                                    "title": "date_time",
                                    "description": "The date and time",
                                    "type": "string",
                                    "format": "date-time",
                                    "example": "YYYY-MM-DD hh:mm:ss"
                                  }
                                ]
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/automations/:automation_id/actions?automation_id=<integer>&offset=<integer>&limit=10' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/automations/:automation_id/actions?automation_id=<integer>&offset=<integer>&limit=10\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/automations/:automation_id/actions?automation_id=<integer>&offset=<integer>&limit=10\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/automations/:automation_id/actions?automation_id=<integer>&offset=<integer>&limit=10\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/automations/:automation_id/actions?automation_id=<integer>&offset=<integer>&limit=10\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/automations/:automation_id/actions?automation_id=<integer>&offset=<integer>&limit=10\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/automations/:automation_id/actions?automation_id=<integer>&offset=<integer>&limit=10\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/automations": {
      "get": {
        "tags": [
          "Automations"
        ],
        "summary": "Get all automations",
        "description": "Returns all automations",
        "operationId": "getAllAutomations",
        "parameters": [
          {
            "name": "automation_id",
            "in": "query",
            "description": "Reference attribute to automation id",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "title",
            "in": "query",
            "description": "Reference attribute to title",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_by",
            "in": "query",
            "description": "Reference attribute to created by",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "list_id",
            "in": "query",
            "description": "ID of the list that owns the automation",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Automation status",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "inactive"
              ]
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "Type of order",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "order_by",
            "in": "query",
            "description": "Reference attribute to order automations",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "automation_id",
              "enum": [
                "automation_id",
                "title",
                "list_id",
                "created_by"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AutomationCollection",
                  "description": "Collection of automations",
                  "properties": {
                    "total_items": {
                      "description": "Returned automations",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned automations",
                      "type": "array",
                      "items": {
                        "title": "Automation",
                        "description": "Automation schema",
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "automation_id": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "readOnly": true,
                                "example": 1
                              },
                              "title": {
                                "description": "Automation title",
                                "type": "string",
                                "example": "Example Automation"
                              },
                              "list_id": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "example": 1
                              },
                              "status": {
                                "description": "Automation status",
                                "type": "string",
                                "enum": [
                                  "active",
                                  "inactive"
                                ]
                              },
                              "created_by": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "readOnly": true,
                                "example": 1
                              },
                              "allow_multiple_contacts": {
                                "description": "True if the automation allows multiple contacts, false otherwise",
                                "type": "boolean",
                                "default": true
                              },
                              "contact_limit": {
                                "description": "Contact limit for the automation. Contact limit value (value '0' is returned if contact\n                                limit is not enabled)",
                                "type": "integer",
                                "minimum": 0,
                                "example": 10
                              },
                              "created": {
                                "readOnly": true,
                                "allOf": [
                                  {
                                    "title": "date",
                                    "description": "The date",
                                    "type": "string",
                                    "format": "date",
                                    "example": "YYYY-MM-DD"
                                  }
                                ]
                              },
                              "updated": {
                                "readOnly": true,
                                "allOf": [
                                  {
                                    "title": "date",
                                    "description": "The date",
                                    "type": "string",
                                    "format": "date",
                                    "example": "YYYY-MM-DD"
                                  }
                                ]
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/automations?automation_id=<integer>&title=<string>&created_by=<integer>&list_id=<integer>&status=<string>&offset=<integer>&limit=10&order=desc&order_by=automation_id' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/automations?automation_id=<integer>&title=<string>&created_by=<integer>&list_id=<integer>&status=<string>&offset=<integer>&limit=10&order=desc&order_by=automation_id\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/automations?automation_id=<integer>&title=<string>&created_by=<integer>&list_id=<integer>&status=<string>&offset=<integer>&limit=10&order=desc&order_by=automation_id\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/automations?automation_id=<integer>&title=<string>&created_by=<integer>&list_id=<integer>&status=<string>&offset=<integer>&limit=10&order=desc&order_by=automation_id\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/automations?automation_id=<integer>&title=<string>&created_by=<integer>&list_id=<integer>&status=<string>&offset=<integer>&limit=10&order=desc&order_by=automation_id\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/automations?automation_id=<integer>&title=<string>&created_by=<integer>&list_id=<integer>&status=<string>&offset=<integer>&limit=10&order=desc&order_by=automation_id\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/automations?automation_id=<integer>&title=<string>&created_by=<integer>&list_id=<integer>&status=<string>&offset=<integer>&limit=10&order=desc&order_by=automation_id\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/automations/{automation_id}": {
      "delete": {
        "tags": [
          "Automations"
        ],
        "summary": "Remove automation",
        "description": "Remove automation information given its ID",
        "operationId": "deleteAutomation",
        "parameters": [
          {
            "name": "automation_id",
            "in": "path",
            "description": "ID of the Automation",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/automations/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/automations/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/automations/<integer>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/automations/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/automations/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/automations/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/automations/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "summary": "Get all Campaigns",
        "description": "Returns all campaigns",
        "operationId": "getAllCampaigns",
        "parameters": [
          {
            "name": "channel",
            "in": "query",
            "description": "Channel of the campaign",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "push",
                "sms",
                "smart_sms",
                "voice",
                "web_push"
              ]
            }
          },
          {
            "name": "campaign_hash",
            "in": "query",
            "description": "Hash of the campaign",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "list_id",
            "in": "query",
            "description": "ID of the list where the campaign belongs",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Status of the campaign",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "draft",
                "canceled",
                "queued",
                "paused",
                "sending",
                "sent"
              ]
            }
          },
          {
            "name": "internal_name",
            "in": "query",
            "description": "Internal name of the campaign",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_by",
            "in": "query",
            "description": "ID of the user who created the campaign",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "group_id",
            "in": "query",
            "description": "ID of the group where the campaign belongs",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "created_min",
            "in": "query",
            "description": "Created initial date",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "created_max",
            "in": "query",
            "description": "Created finish",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "updated_min",
            "in": "query",
            "description": "Updated initial",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "updated_max",
            "in": "query",
            "description": "Updated finish",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "start_date_min",
            "in": "query",
            "description": "Start date initial",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "start_date_max",
            "in": "query",
            "description": "Start date finish",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "end_date_min",
            "in": "query",
            "description": "End Date initial",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "end_date_max",
            "in": "query",
            "description": "End Date finish",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "schedule_date_min",
            "in": "query",
            "description": "Schedule Date initial",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "schedule_date_max",
            "in": "query",
            "description": "Schedule Date finish",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "Type of order",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "order_by",
            "in": "query",
            "description": "Reference attribute to order campaigns",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "created",
              "enum": [
                "list_id",
                "internal_name",
                "created_by",
                "group_id",
                "created"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "CampaignsCollection",
                  "description": "Collection of Campaigns",
                  "properties": {
                    "total_items": {
                      "description": "Returned campaigns",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned campaigns",
                      "type": "array",
                      "items": {
                        "title": "Campaign",
                        "description": "Campaign schema",
                        "properties": {
                          "id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "campaign_hash": {
                            "title": "Hash",
                            "type": "string",
                            "pattern": "[a-zA-Z0-9_-]*",
                            "readOnly": true
                          },
                          "status": {
                            "description": "Status of the campaign",
                            "type": "string",
                            "enum": [
                              "draft",
                              "canceled",
                              "queued",
                              "paused",
                              "sending",
                              "sent"
                            ],
                            "example": "sent"
                          },
                          "thumbnail": {
                            "description": "Thumbnail of the campaign",
                            "type": "string",
                            "example": "//bo29.e-goi.com/recursos/resource_folder/listas/name_image.jpg"
                          },
                          "channel": {
                            "description": "Channel of the campaign",
                            "type": "string",
                            "enum": [
                              "email",
                              "push",
                              "sms",
                              "smart_sms",
                              "voice",
                              "web_push"
                            ],
                            "example": "email"
                          },
                          "internal_name": {
                            "description": "Internal name of the campaign",
                            "type": "string",
                            "example": "your internal name"
                          },
                          "list_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "title": {
                            "description": "Subject of the campaign",
                            "type": "string",
                            "example": "subject of campaign"
                          },
                          "created_by": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "group_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "created": {
                            "allOf": [
                              {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              }
                            ]
                          },
                          "updated": {
                            "allOf": [
                              {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              }
                            ]
                          },
                          "start_date": {
                            "allOf": [
                              {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              }
                            ]
                          },
                          "end_date": {
                            "allOf": [
                              {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              }
                            ]
                          },
                          "schedule_date": {
                            "properties": {
                              "enabled": {
                                "description": "True if the campaign was scheduled",
                                "type": "boolean"
                              },
                              "date": {
                                "allOf": [
                                  {
                                    "title": "date_time",
                                    "description": "The date and time",
                                    "type": "string",
                                    "format": "date-time",
                                    "example": "YYYY-MM-DD hh:mm:ss"
                                  }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          "processed_messages": {
                            "description": "Total number of processed messages",
                            "type": "integer",
                            "minimum": 0,
                            "example": 1
                          },
                          "automation_id": {
                            "description": "The automation id of the campaign",
                            "type": "integer",
                            "example": 1
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/campaigns?channel=<string>&campaign_hash=<string>&list_id=<integer>&status=<string>&internal_name=<string>&created_by=<integer>&group_id=<integer>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>&start_date_min=<dateTime>&start_date_max=<dateTime>&end_date_min=<dateTime>&end_date_max=<dateTime>&schedule_date_min=<dateTime>&schedule_date_max=<dateTime>&offset=<integer>&limit=100&order=desc&order_by=created' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns?channel=<string>&campaign_hash=<string>&list_id=<integer>&status=<string>&internal_name=<string>&created_by=<integer>&group_id=<integer>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>&start_date_min=<dateTime>&start_date_max=<dateTime>&end_date_min=<dateTime>&end_date_max=<dateTime>&schedule_date_min=<dateTime>&schedule_date_max=<dateTime>&offset=<integer>&limit=100&order=desc&order_by=created\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns?channel=<string>&campaign_hash=<string>&list_id=<integer>&status=<string>&internal_name=<string>&created_by=<integer>&group_id=<integer>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>&start_date_min=<dateTime>&start_date_max=<dateTime>&end_date_min=<dateTime>&end_date_max=<dateTime>&schedule_date_min=<dateTime>&schedule_date_max=<dateTime>&offset=<integer>&limit=100&order=desc&order_by=created\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/campaigns?channel=<string>&campaign_hash=<string>&list_id=<integer>&status=<string>&internal_name=<string>&created_by=<integer>&group_id=<integer>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>&start_date_min=<dateTime>&start_date_max=<dateTime>&end_date_min=<dateTime>&end_date_max=<dateTime>&schedule_date_min=<dateTime>&schedule_date_max=<dateTime>&offset=<integer>&limit=100&order=desc&order_by=created\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns?channel=<string>&campaign_hash=<string>&list_id=<integer>&status=<string>&internal_name=<string>&created_by=<integer>&group_id=<integer>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>&start_date_min=<dateTime>&start_date_max=<dateTime>&end_date_min=<dateTime>&end_date_max=<dateTime>&schedule_date_min=<dateTime>&schedule_date_max=<dateTime>&offset=<integer>&limit=100&order=desc&order_by=created\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/campaigns?channel=<string>&campaign_hash=<string>&list_id=<integer>&status=<string>&internal_name=<string>&created_by=<integer>&group_id=<integer>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>&start_date_min=<dateTime>&start_date_max=<dateTime>&end_date_min=<dateTime>&end_date_max=<dateTime>&schedule_date_min=<dateTime>&schedule_date_max=<dateTime>&offset=<integer>&limit=100&order=desc&order_by=created\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns?channel=<string>&campaign_hash=<string>&list_id=<integer>&status=<string>&internal_name=<string>&created_by=<integer>&group_id=<integer>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>&start_date_min=<dateTime>&start_date_max=<dateTime>&end_date_min=<dateTime>&end_date_max=<dateTime>&schedule_date_min=<dateTime>&schedule_date_max=<dateTime>&offset=<integer>&limit=100&order=desc&order_by=created\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/{campaign_hash}": {
      "delete": {
        "tags": [
          "Campaigns"
        ],
        "summary": "Remove Campaign",
        "description": "Remove campaign information given its ID",
        "operationId": "deleteCampaigns",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "DeleteCampaignsConflict",
                  "description": "Error schema for delete campaigns conflicts",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "campaign_sent_last_30_days",
                      "description": "Error schema for conflict when the campaign was sent in the last 30 days",
                      "properties": {
                        "errors": {
                          "properties": {
                            "campaign_sent_last_30_days": {
                              "description": "Occurs when the campaign was sent in the last 30 days",
                              "type": "string",
                              "enum": [
                                "This campaign cant be deleted since it was sent in the last 30 days"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/campaigns/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/<string>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/campaigns/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/campaigns/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/email/{campaign_hash}/actions/send": {
      "post": {
        "tags": [
          "Email"
        ],
        "summary": "Send email message",
        "description": "Deploys and sends an email message",
        "operationId": "actionSendEmail",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the 'send email' action",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Send Email",
                "description": "Campaign email send request schema",
                "type": "object",
                "oneOf": [
                  {
                    "title": "Send Email",
                    "description": "Campaign email send now request schema",
                    "required": [
                      "list_id"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "title": "Abstract Send Email",
                        "description": "Campaign email abstract schema",
                        "required": [
                          "list_id",
                          "segments"
                        ],
                        "properties": {
                          "list_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "example": 1
                          },
                          "segments": {
                            "title": "EmailSendSegment",
                            "description": "Send segment schema for email",
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type",
                              "mapping": {
                                "none": "#/components/schemas/SendNone",
                                "segment": "#/components/schemas/SendSegment",
                                "contact": "#/components/schemas/SendEmailContact"
                              }
                            },
                            "oneOf": [
                              {
                                "title": "SendNone",
                                "description": "Sends the campaign to the whole list",
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to the whole list",
                                    "type": "string",
                                    "enum": [
                                      "none"
                                    ]
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              },
                              {
                                "title": "SendSegment",
                                "description": "Segments where the campaign will be sent",
                                "required": [
                                  "type",
                                  "data"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to specific segments",
                                    "type": "string",
                                    "enum": [
                                      "segment"
                                    ]
                                  },
                                  "data": {
                                    "description": "Array of segment IDs to send the campaign",
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              },
                              {
                                "title": "SendEmailContact",
                                "description": "Email contact to whom the campaign will be sent",
                                "required": [
                                  "type",
                                  "data"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to a specific contact",
                                    "type": "string",
                                    "enum": [
                                      "contact"
                                    ]
                                  },
                                  "data": {
                                    "description": "Contact to send the campaign",
                                    "type": "string",
                                    "format": "email"
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              }
                            ]
                          },
                          "notify": {
                            "description": "Array of IDs of the users to notify",
                            "type": "array",
                            "items": {
                              "type": "integer"
                            }
                          },
                          "destination_field": {
                            "description": "Destination field of this campaign, which must be an email field (email or extra field id).\n                        If not sent, defaults to the general email field",
                            "type": "string"
                          },
                          "unique_contacts_only": {
                            "description": "True to send the campaign only to unique contacts",
                            "type": "boolean",
                            "default": false
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Hour limit",
                        "description": "Selection of hour interval",
                        "properties": {
                          "limit_hour": {
                            "description": "Hour limit to send the campaign",
                            "properties": {
                              "hour_start": {
                                "description": "Hour start limit",
                                "type": "string",
                                "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                                "example": "13:00"
                              },
                              "hour_end": {
                                "description": "Hour end limit",
                                "type": "string",
                                "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                                "example": "15:00"
                              }
                            },
                            "type": "object"
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "title": "Schedule Email",
                    "description": "Campaign email schedule request schema",
                    "required": [
                      "list_id"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "schedule_date": {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Abstract Send Email",
                        "description": "Campaign email abstract schema",
                        "required": [
                          "list_id",
                          "segments"
                        ],
                        "properties": {
                          "list_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "example": 1
                          },
                          "segments": {
                            "title": "EmailSendSegment",
                            "description": "Send segment schema for email",
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type",
                              "mapping": {
                                "none": "#/components/schemas/SendNone",
                                "segment": "#/components/schemas/SendSegment",
                                "contact": "#/components/schemas/SendEmailContact"
                              }
                            },
                            "oneOf": [
                              {
                                "title": "SendNone",
                                "description": "Sends the campaign to the whole list",
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to the whole list",
                                    "type": "string",
                                    "enum": [
                                      "none"
                                    ]
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              },
                              {
                                "title": "SendSegment",
                                "description": "Segments where the campaign will be sent",
                                "required": [
                                  "type",
                                  "data"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to specific segments",
                                    "type": "string",
                                    "enum": [
                                      "segment"
                                    ]
                                  },
                                  "data": {
                                    "description": "Array of segment IDs to send the campaign",
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              },
                              {
                                "title": "SendEmailContact",
                                "description": "Email contact to whom the campaign will be sent",
                                "required": [
                                  "type",
                                  "data"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to a specific contact",
                                    "type": "string",
                                    "enum": [
                                      "contact"
                                    ]
                                  },
                                  "data": {
                                    "description": "Contact to send the campaign",
                                    "type": "string",
                                    "format": "email"
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              }
                            ]
                          },
                          "notify": {
                            "description": "Array of IDs of the users to notify",
                            "type": "array",
                            "items": {
                              "type": "integer"
                            }
                          },
                          "destination_field": {
                            "description": "Destination field of this campaign, which must be an email field (email or extra field id).\n                        If not sent, defaults to the general email field",
                            "type": "string"
                          },
                          "unique_contacts_only": {
                            "description": "True to send the campaign only to unique contacts",
                            "type": "boolean",
                            "default": false
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "DeleteCampaignsConflict",
                  "description": "Error schema for delete campaigns conflicts",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "campaign_sent_last_30_days",
                      "description": "Error schema for conflict when the campaign was sent in the last 30 days",
                      "properties": {
                        "errors": {
                          "properties": {
                            "campaign_sent_last_30_days": {
                              "description": "Occurs when the campaign was sent in the last 30 days",
                              "type": "string",
                              "enum": [
                                "This campaign cant be deleted since it was sent in the last 30 days"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/email/<string>/actions/send' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"list_id\":\"<integer>\",\"segments\":{\"type\":\"<string>\"},\"notify\":[\"<integer>\",\"<integer>\"],\"destination_field\":\"<string>\",\"unique_contacts_only\":false,\"limit_hour\":{\"hour_start\":\"<string>\",\"hour_end\":\"<string>\"}}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/email/<string>/actions/send\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"destination_field\\\":\\\"<string>\\\",\\\"unique_contacts_only\\\":false,\\\"limit_hour\\\":{\\\"hour_start\\\":\\\"<string>\\\",\\\"hour_end\\\":\\\"<string>\\\"}}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"destination_field\\\":\\\"<string>\\\",\\\"unique_contacts_only\\\":false,\\\"limit_hour\\\":{\\\"hour_start\\\":\\\"<string>\\\",\\\"hour_end\\\":\\\"<string>\\\"}}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/email/<string>/actions/send\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"list_id\":\"<integer>\",\"segments\":{\"type\":\"<string>\"},\"notify\":[\"<integer>\",\"<integer>\"],\"destination_field\":\"<string>\",\"unique_contacts_only\":false,\"limit_hour\":{\"hour_start\":\"<string>\",\"hour_end\":\"<string>\"}});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/email/<string>/actions/send\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/email/<string>/actions/send\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"list_id\\\":\\\"<integer>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"destination_field\\\":\\\"<string>\\\",\\\"unique_contacts_only\\\":false,\\\"limit_hour\\\":{\\\"hour_start\\\":\\\"<string>\\\",\\\"hour_end\\\":\\\"<string>\\\"}}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"destination_field\\\":\\\"<string>\\\",\\\"unique_contacts_only\\\":false,\\\"limit_hour\\\":{\\\"hour_start\\\":\\\"<string>\\\",\\\"hour_end\\\":\\\"<string>\\\"}}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaigns/email/<string>/actions/send\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/email/<string>/actions/send\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"destination_field\\\":\\\"<string>\\\",\\\"unique_contacts_only\\\":false,\\\"limit_hour\\\":{\\\"hour_start\\\":\\\"<string>\\\",\\\"hour_end\\\":\\\"<string>\\\"}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/email": {
      "post": {
        "tags": [
          "Email"
        ],
        "summary": "Create new email campaign",
        "description": "Create a new email campaign",
        "operationId": "createEmailCampaign",
        "requestBody": {
          "description": "Parameters for the Email Campaign",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Email Campaign",
                "description": "Email campaign schema",
                "required": [
                  "list_id",
                  "internal_name",
                  "content",
                  "sender_id"
                ],
                "properties": {
                  "list_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "internal_name": {
                    "description": "Campaign internal name",
                    "type": "string",
                    "example": "Campaign internal name"
                  },
                  "subject": {
                    "description": "Campaign subject. If no value is sent, defaults to 'internal_name' property value",
                    "type": "string",
                    "example": "Campaign subject"
                  },
                  "content": {
                    "title": "Campaign Content",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "html": "#/components/schemas/CampaignEmailContentHtml",
                        "template": "#/components/schemas/CampaignEmailContentTemplate",
                        "web_page": "#/components/schemas/CampaignEmailContentWebPage",
                        "file": "#/components/schemas/CampaignEmailContentFile"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "Campaign Email Html",
                        "required": [
                          "type",
                          "body"
                        ],
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "html"
                                ]
                              },
                              "body": {
                                "description": "HTML code of the campaign",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Base Content",
                            "properties": {
                              "plain_text": {
                                "description": "Plain text for the campaign",
                                "type": "string"
                              },
                              "snippet": {
                                "description": "Snippet text for the campaign",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      },
                      {
                        "title": "Campaign Email Template",
                        "required": [
                          "type",
                          "template_id"
                        ],
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "template"
                                ]
                              },
                              "template_id": {
                                "description": "ID of the template for this campaign (Email builder templates are not allowed)",
                                "type": "integer"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Base Content",
                            "properties": {
                              "plain_text": {
                                "description": "Plain text for the campaign",
                                "type": "string"
                              },
                              "snippet": {
                                "description": "Snippet text for the campaign",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      },
                      {
                        "title": "Campaign Email Web Page",
                        "required": [
                          "type",
                          "url"
                        ],
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "web_page"
                                ]
                              },
                              "url": {
                                "description": "Campaign url",
                                "type": "string"
                              },
                              "use_page_title": {
                                "description": "True to use page title as the campaign title",
                                "type": "boolean",
                                "default": false
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Base Content",
                            "properties": {
                              "plain_text": {
                                "description": "Plain text for the campaign",
                                "type": "string"
                              },
                              "snippet": {
                                "description": "Snippet text for the campaign",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      },
                      {
                        "title": "Campaign Email File",
                        "required": [
                          "type",
                          "file"
                        ],
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "file"
                                ]
                              },
                              "file": {
                                "description": "Campaign file",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Base Content",
                            "properties": {
                              "plain_text": {
                                "description": "Plain text for the campaign",
                                "type": "string"
                              },
                              "snippet": {
                                "description": "Snippet text for the campaign",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    ]
                  },
                  "sender_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "reply_to": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "header_footer": {
                    "title": "Campaign header and footer",
                    "properties": {
                      "id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      },
                      "header_links": {
                        "description": "Ignored if provided ID is from a custom template",
                        "properties": {
                          "forward": {
                            "description": "Use view forward header link",
                            "type": "boolean",
                            "default": false
                          },
                          "view_web": {
                            "description": "Use view view in web header link",
                            "type": "boolean",
                            "default": false
                          },
                          "unsubscribe": {
                            "description": "Use view unsubscribe header link",
                            "type": "boolean",
                            "default": false
                          },
                          "edit": {
                            "description": "Use view edit header link",
                            "type": "boolean",
                            "default": false
                          },
                          "social_share": {
                            "description": "Use view social share header link",
                            "type": "boolean",
                            "default": false
                          },
                          "facebook_share": {
                            "description": "Use view facebook share header link",
                            "type": "boolean",
                            "default": false
                          },
                          "twitter_share": {
                            "description": "Use view twitter share header link",
                            "type": "boolean",
                            "default": false
                          }
                        },
                        "type": "object"
                      },
                      "footer_links": {
                        "description": "Ignored if provided ID is from a custom template",
                        "properties": {
                          "forward": {
                            "description": "Use view forward footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "view_web": {
                            "description": "Use view view in web footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "unsubscribe": {
                            "description": "Use view unsubscribe footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "edit": {
                            "description": "Use view edit footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "social_share": {
                            "description": "Use view social share footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "facebook_share": {
                            "description": "Use view facebook share footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "twitter_share": {
                            "description": "Use view twitter share footer link",
                            "type": "boolean",
                            "default": false
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Hashcode Campaign",
                  "description": "Hashcode campaign schema",
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/email' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"list_id\":\"<integer>\",\"internal_name\":\"<string>\",\"content\":{\"type\":\"<string>\",\"body\":\"<string>\",\"plain_text\":\"<string>\",\"snippet\":\"<string>\"},\"sender_id\":\"<integer>\",\"subject\":\"<string>\",\"reply_to\":\"<integer>\",\"header_footer\":{\"id\":\"<integer>\",\"header_links\":{\"forward\":false,\"view_web\":false,\"unsubscribe\":false,\"edit\":false,\"social_share\":false,\"facebook_share\":false,\"twitter_share\":false},\"footer_links\":{\"forward\":false,\"view_web\":false,\"unsubscribe\":false,\"edit\":false,\"social_share\":false,\"facebook_share\":false,\"twitter_share\":false}}}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/email\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"body\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"body\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/email\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"list_id\":\"<integer>\",\"internal_name\":\"<string>\",\"content\":{\"type\":\"<string>\",\"body\":\"<string>\",\"plain_text\":\"<string>\",\"snippet\":\"<string>\"},\"sender_id\":\"<integer>\",\"subject\":\"<string>\",\"reply_to\":\"<integer>\",\"header_footer\":{\"id\":\"<integer>\",\"header_links\":{\"forward\":false,\"view_web\":false,\"unsubscribe\":false,\"edit\":false,\"social_share\":false,\"facebook_share\":false,\"twitter_share\":false},\"footer_links\":{\"forward\":false,\"view_web\":false,\"unsubscribe\":false,\"edit\":false,\"social_share\":false,\"facebook_share\":false,\"twitter_share\":false}}});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/email\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/email\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"body\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"body\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaigns/email\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/email\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"body\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/email/{campaign_hash}": {
      "patch": {
        "tags": [
          "Email"
        ],
        "summary": "Update a specific email campaign",
        "description": "Update email campaign",
        "operationId": "patchEmailCampaign",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Email Campaign",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "EmailCampaignPatch",
                "description": "Email campaign schema",
                "properties": {
                  "internal_name": {
                    "description": "Campaign internal name",
                    "type": "string",
                    "example": "Campaign internal name"
                  },
                  "subject": {
                    "description": "Campaign subject. If no value is sent, defaults to 'internal_name' property value",
                    "type": "string",
                    "example": "Campaign subject"
                  },
                  "content": {
                    "title": "Campaign Email Html",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "body": {
                            "description": "HTML code of the campaign",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Base Content",
                        "properties": {
                          "plain_text": {
                            "description": "Plain text for the campaign",
                            "type": "string"
                          },
                          "snippet": {
                            "description": "Snippet text for the campaign",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  "sender_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "reply_to": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "header_footer": {
                    "title": "Campaign header and footer",
                    "properties": {
                      "id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      },
                      "header_links": {
                        "description": "Ignored if provided ID is from a custom template",
                        "properties": {
                          "forward": {
                            "description": "Use view forward header link",
                            "type": "boolean",
                            "default": false
                          },
                          "view_web": {
                            "description": "Use view view in web header link",
                            "type": "boolean",
                            "default": false
                          },
                          "unsubscribe": {
                            "description": "Use view unsubscribe header link",
                            "type": "boolean",
                            "default": false
                          },
                          "edit": {
                            "description": "Use view edit header link",
                            "type": "boolean",
                            "default": false
                          },
                          "social_share": {
                            "description": "Use view social share header link",
                            "type": "boolean",
                            "default": false
                          },
                          "facebook_share": {
                            "description": "Use view facebook share header link",
                            "type": "boolean",
                            "default": false
                          },
                          "twitter_share": {
                            "description": "Use view twitter share header link",
                            "type": "boolean",
                            "default": false
                          }
                        },
                        "type": "object"
                      },
                      "footer_links": {
                        "description": "Ignored if provided ID is from a custom template",
                        "properties": {
                          "forward": {
                            "description": "Use view forward footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "view_web": {
                            "description": "Use view view in web footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "unsubscribe": {
                            "description": "Use view unsubscribe footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "edit": {
                            "description": "Use view edit footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "social_share": {
                            "description": "Use view social share footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "facebook_share": {
                            "description": "Use view facebook share footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "twitter_share": {
                            "description": "Use view twitter share footer link",
                            "type": "boolean",
                            "default": false
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Hashcode Campaign",
                  "description": "Hashcode campaign schema",
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PATCH 'api.egoiapp.com/campaigns/email/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"internal_name\":\"<string>\",\"subject\":\"<string>\",\"content\":{\"body\":\"<string>\",\"plain_text\":\"<string>\",\"snippet\":\"<string>\"},\"sender_id\":\"<integer>\",\"reply_to\":\"<integer>\",\"header_footer\":{\"id\":\"<integer>\",\"header_links\":{\"forward\":false,\"view_web\":false,\"unsubscribe\":false,\"edit\":false,\"social_share\":false,\"facebook_share\":false,\"twitter_share\":false},\"footer_links\":{\"forward\":false,\"view_web\":false,\"unsubscribe\":false,\"edit\":false,\"social_share\":false,\"facebook_share\":false,\"twitter_share\":false}}}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/email/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"content\\\":{\\\"body\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"content\\\":{\\\"body\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/email/<string>\")\n    .method(\"PATCH\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"internal_name\":\"<string>\",\"subject\":\"<string>\",\"content\":{\"body\":\"<string>\",\"plain_text\":\"<string>\",\"snippet\":\"<string>\"},\"sender_id\":\"<integer>\",\"reply_to\":\"<integer>\",\"header_footer\":{\"id\":\"<integer>\",\"header_links\":{\"forward\":false,\"view_web\":false,\"unsubscribe\":false,\"edit\":false,\"social_share\":false,\"facebook_share\":false,\"twitter_share\":false},\"footer_links\":{\"forward\":false,\"view_web\":false,\"unsubscribe\":false,\"edit\":false,\"social_share\":false,\"facebook_share\":false,\"twitter_share\":false}}});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PATCH\", \"api.egoiapp.com/campaigns/email/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/email/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PATCH\",\n    CURLOPT_POSTFIELDS =>\"{\\\"internal_name\\\":\\\"<string>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"content\\\":{\\\"body\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"content\\\":{\\\"body\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PATCH\", \"/campaigns/email/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/email/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"content\\\":{\\\"body\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/email/rss/{campaign_hash}/actions/enable": {
      "post": {
        "tags": [
          "Email"
        ],
        "summary": "Enables a rss email campaign",
        "description": "Enables a rss email message",
        "operationId": "actionEnableEmailRss",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/email/rss/<string>/actions/enable' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/email/rss/<string>/actions/enable\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/email/rss/<string>/actions/enable\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/email/rss/<string>/actions/enable\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/email/rss/<string>/actions/enable\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"POST\", \"/campaigns/email/rss/<string>/actions/enable\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/email/rss/<string>/actions/enable\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/email/rss": {
      "post": {
        "tags": [
          "Email"
        ],
        "summary": "Create new email rss campaign",
        "description": "Create a new email rss campaign",
        "operationId": "createEmailRssCampaign",
        "requestBody": {
          "description": "Parameters for the Email Campaign",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Email Rss Campaign",
                "description": "Email rss campaign schema",
                "required": [
                  "list_id",
                  "internal_name",
                  "content",
                  "sender_id"
                ],
                "properties": {
                  "list_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "internal_name": {
                    "description": "Campaign internal name",
                    "type": "string",
                    "example": "Campaign internal name"
                  },
                  "subject": {
                    "description": "Campaign subject. If no value is sent, defaults to 'internal_name' property value",
                    "type": "string",
                    "example": "Campaign subject"
                  },
                  "content": {
                    "title": "Campaign Content",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "html": "#/components/schemas/CampaignEmailRssContentHtml"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "Campaign Email Html",
                        "required": [
                          "type",
                          "body"
                        ],
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "html"
                                ],
                                "example": "html"
                              },
                              "body": {
                                "description": "HTML code of the rss campaign",
                                "type": "string",
                                "example": "<body>{{FEEDBLOCK:https:\\/\\/example.com\\/?feed=egoi_rssfeed_gcoUFuaaBeAs4tfSY}}{{FEEDITEMS:count=1}}<div class='builder-actions-control selected'><table border='0' cellpadding='0' cellspacing='0' class='email-container' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: auto;' width='600' align='center' data-compile='true'><tbody><tr><td dir='ltr' valign='top' width='100%' bgcolor='#ffffff' style='background-color: rgb(255, 255, 255); padding: 20px;'><table border='0' cellpadding='0' cellspacing='0' class='row' width='100%' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><th class='stack-column-center columns first' valign='top' width='33.333333333333336%' style='font-weight: 400; padding-right: 8px;'><table border='0' cellpadding='0' cellspacing='0' width='100%' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td dir='ltr' style='padding: 0px;' valign='top'><table border='0' cellpadding='0' cellspacing='0' class='builder-image-control image-6cbc6cd4b0f6c869b1d651e4288caa1c' data-control='image' width='100%' data-compile='true' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td valign='top' style=''><table border='0' cellpadding='0' cellspacing='0' align='center' width='' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td style='border: 0px;'><a href='{{FEEDITEM:LINK}}'><img align='center' border='0' class='float-center fluid' style='display: block; margin: 0px auto; height: auto; max-width: 179px; border: 0px !important; outline: none !important; text-decoration: none !important;' src='{{FEEDITEM:IMAGE}}' alt='beanie-768x768' height='179' width='179'><\\/a><\\/td><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/th><th class='stack-column-center columns last' valign='top' width='66.66666666666667%' style='font-weight: 400; padding-left: 8px;'><table border='0' cellpadding='0' cellspacing='0' width='100%' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td dir='ltr' style='padding: 0px;' valign='top'><table data-control='title' width='100%' class='title-641c2ce04833885b026fd1e0f46c2973' id='641c2ce0-4833-885b-026f-d1e0f46c2973' data-compile='true' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td style=''><p style='font-family: Arial; font-size: 24px; color: rgb(0, 0, 0); line-height: 150%; text-align: left; padding-top: 0px; padding-bottom: 0px; margin: 0px;'>{{FEEDITEM:TITLE}}<\\/p><\\/td><\\/tr><\\/tbody><\\/table><table data-control='paragraph' width='100%' class='paragraph-12fc4dd322cf0a3cd43032e85db67593' id='12fc4dd3-22cf-0a3c-d430-32e85db67593' data-compile='true' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td class='undefined' style=''><p style='font-family: Arial; font-size: 16px; color: rgb(109, 109, 109); line-height: 200%; text-align: left; padding-top: 0px; padding-bottom: 0px; margin: 0px; overflow: hidden;'>{{FEEDITEM:DESCRIPTION}}<\\/p><\\/td><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/th><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/div>{{ENDFEEDITEMS}}{{ENDFEEDBLOCK}}<\\/body>"
                              },
                              "feed": {
                                "description": "Valid url for a rss feed",
                                "type": "string",
                                "example": "https://example.com/?feed=egoi_rssfeed_gcoUFuaaBeAs4tfSY"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Base Content",
                            "properties": {
                              "plain_text": {
                                "description": "Plain text for the campaign",
                                "type": "string"
                              },
                              "snippet": {
                                "description": "Snippet text for the campaign",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    ]
                  },
                  "sender_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "reply_to": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "header_footer": {
                    "title": "Campaign header and footer",
                    "properties": {
                      "id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      },
                      "header_links": {
                        "description": "Ignored if provided ID is from a custom template",
                        "properties": {
                          "forward": {
                            "description": "Use view forward header link",
                            "type": "boolean",
                            "default": false
                          },
                          "view_web": {
                            "description": "Use view view in web header link",
                            "type": "boolean",
                            "default": false
                          },
                          "unsubscribe": {
                            "description": "Use view unsubscribe header link",
                            "type": "boolean",
                            "default": false
                          },
                          "edit": {
                            "description": "Use view edit header link",
                            "type": "boolean",
                            "default": false
                          },
                          "social_share": {
                            "description": "Use view social share header link",
                            "type": "boolean",
                            "default": false
                          },
                          "facebook_share": {
                            "description": "Use view facebook share header link",
                            "type": "boolean",
                            "default": false
                          },
                          "twitter_share": {
                            "description": "Use view twitter share header link",
                            "type": "boolean",
                            "default": false
                          }
                        },
                        "type": "object"
                      },
                      "footer_links": {
                        "description": "Ignored if provided ID is from a custom template",
                        "properties": {
                          "forward": {
                            "description": "Use view forward footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "view_web": {
                            "description": "Use view view in web footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "unsubscribe": {
                            "description": "Use view unsubscribe footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "edit": {
                            "description": "Use view edit footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "social_share": {
                            "description": "Use view social share footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "facebook_share": {
                            "description": "Use view facebook share footer link",
                            "type": "boolean",
                            "default": false
                          },
                          "twitter_share": {
                            "description": "Use view twitter share footer link",
                            "type": "boolean",
                            "default": false
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Hashcode Campaign",
                  "description": "Hashcode campaign schema",
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/email/rss' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"list_id\":\"<integer>\",\"internal_name\":\"<string>\",\"content\":{\"type\":\"<string>\",\"body\":\"<string>\",\"feed\":\"<string>\",\"plain_text\":\"<string>\",\"snippet\":\"<string>\"},\"sender_id\":\"<integer>\",\"subject\":\"<string>\",\"reply_to\":\"<integer>\",\"header_footer\":{\"id\":\"<integer>\",\"header_links\":{\"forward\":false,\"view_web\":false,\"unsubscribe\":false,\"edit\":false,\"social_share\":false,\"facebook_share\":false,\"twitter_share\":false},\"footer_links\":{\"forward\":false,\"view_web\":false,\"unsubscribe\":false,\"edit\":false,\"social_share\":false,\"facebook_share\":false,\"twitter_share\":false}}}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/email/rss\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"body\\\":\\\"<string>\\\",\\\"feed\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"body\\\":\\\"<string>\\\",\\\"feed\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/email/rss\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"list_id\":\"<integer>\",\"internal_name\":\"<string>\",\"content\":{\"type\":\"<string>\",\"body\":\"<string>\",\"feed\":\"<string>\",\"plain_text\":\"<string>\",\"snippet\":\"<string>\"},\"sender_id\":\"<integer>\",\"subject\":\"<string>\",\"reply_to\":\"<integer>\",\"header_footer\":{\"id\":\"<integer>\",\"header_links\":{\"forward\":false,\"view_web\":false,\"unsubscribe\":false,\"edit\":false,\"social_share\":false,\"facebook_share\":false,\"twitter_share\":false},\"footer_links\":{\"forward\":false,\"view_web\":false,\"unsubscribe\":false,\"edit\":false,\"social_share\":false,\"facebook_share\":false,\"twitter_share\":false}}});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/email/rss\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/email/rss\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"body\\\":\\\"<string>\\\",\\\"feed\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"body\\\":\\\"<string>\\\",\\\"feed\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaigns/email/rss\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/email/rss\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"body\\\":\\\"<string>\\\",\\\"feed\\\":\\\"<string>\\\",\\\"plain_text\\\":\\\"<string>\\\",\\\"snippet\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"subject\\\":\\\"<string>\\\",\\\"reply_to\\\":\\\"<integer>\\\",\\\"header_footer\\\":{\\\"id\\\":\\\"<integer>\\\",\\\"header_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false},\\\"footer_links\\\":{\\\"forward\\\":false,\\\"view_web\\\":false,\\\"unsubscribe\\\":false,\\\"edit\\\":false,\\\"social_share\\\":false,\\\"facebook_share\\\":false,\\\"twitter_share\\\":false}}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/push/{campaign_hash}/actions/send": {
      "post": {
        "tags": [
          "Push"
        ],
        "summary": "Send push message",
        "description": "Deploys and sends a push message",
        "operationId": "actionSendPush",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the 'send push' action",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Send Push",
                "description": "Campaign push send request schema",
                "type": "object",
                "oneOf": [
                  {
                    "title": "Send Push",
                    "required": [
                      "app_id",
                      "segments"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "app_id": {
                            "title": "Push App Id",
                            "type": "string",
                            "pattern": "[a-zA-Z0-9_-]*"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Segments Object",
                        "description": "Object of contact limit",
                        "properties": {
                          "segments": {
                            "title": "Campaign Segments",
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type",
                              "mapping": {
                                "none": "#/components/schemas/SendNone",
                                "segment": "#/components/schemas/SendSegment"
                              }
                            },
                            "oneOf": [
                              {
                                "title": "SendNone",
                                "description": "Sends the campaign to the whole list",
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to the whole list",
                                    "type": "string",
                                    "enum": [
                                      "none"
                                    ]
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              },
                              {
                                "title": "SendSegment",
                                "description": "Segments where the campaign will be sent",
                                "required": [
                                  "type",
                                  "data"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to specific segments",
                                    "type": "string",
                                    "enum": [
                                      "segment"
                                    ]
                                  },
                                  "data": {
                                    "description": "Array of segment IDs to send the campaign",
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Notify Users",
                        "description": "Users that will be notified",
                        "properties": {
                          "notify": {
                            "description": "Array of IDs of the users to notify",
                            "type": "array",
                            "items": {
                              "type": "integer"
                            }
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "title": "Schedule Push",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "schedule_date": {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Send Push",
                        "required": [
                          "app_id",
                          "segments"
                        ],
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "app_id": {
                                "title": "Push App Id",
                                "type": "string",
                                "pattern": "[a-zA-Z0-9_-]*"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Segments Object",
                            "description": "Object of contact limit",
                            "properties": {
                              "segments": {
                                "title": "Campaign Segments",
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type",
                                  "mapping": {
                                    "none": "#/components/schemas/SendNone",
                                    "segment": "#/components/schemas/SendSegment"
                                  }
                                },
                                "oneOf": [
                                  {
                                    "title": "SendNone",
                                    "description": "Sends the campaign to the whole list",
                                    "required": [
                                      "type"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "Use this segment type to send to the whole list",
                                        "type": "string",
                                        "enum": [
                                          "none"
                                        ]
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  },
                                  {
                                    "title": "SendSegment",
                                    "description": "Segments where the campaign will be sent",
                                    "required": [
                                      "type",
                                      "data"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "Use this segment type to send to specific segments",
                                        "type": "string",
                                        "enum": [
                                          "segment"
                                        ]
                                      },
                                      "data": {
                                        "description": "Array of segment IDs to send the campaign",
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Notify Users",
                            "description": "Users that will be notified",
                            "properties": {
                              "notify": {
                                "description": "Array of IDs of the users to notify",
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                }
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/push/<string>/actions/send' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"app_id\":\"<string>\",\"segments\":{\"type\":\"<string>\"},\"notify\":[\"<integer>\",\"<integer>\"]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/push/<string>/actions/send\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"app_id\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"app_id\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/push/<string>/actions/send\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"app_id\":\"<string>\",\"segments\":{\"type\":\"<string>\"},\"notify\":[\"<integer>\",\"<integer>\"]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/push/<string>/actions/send\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/push/<string>/actions/send\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"app_id\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"app_id\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaigns/push/<string>/actions/send\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/push/<string>/actions/send\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"app_id\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/push": {
      "post": {
        "tags": [
          "Push"
        ],
        "summary": "Create new push campaign",
        "description": "Create a new push campaign",
        "operationId": "createPushCampaign",
        "requestBody": {
          "description": "Parameters for the push campaign",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "PushCampaignPostRequest",
                "description": "Push campaign post request schema",
                "required": [
                  "app_id",
                  "title",
                  "content"
                ],
                "properties": {
                  "app_id": {
                    "title": "Push App Id",
                    "type": "string",
                    "pattern": "[a-zA-Z0-9_-]*"
                  },
                  "title": {
                    "description": "Push campaign subject",
                    "type": "string"
                  },
                  "content": {
                    "title": "Campaign Content",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "text": "#/components/schemas/CampaignPushContentText",
                        "template": "#/components/schemas/CampaignPushContentTemplate"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "CampaignPushContentText",
                        "required": [
                          "type",
                          "message"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "text"
                            ]
                          },
                          "message": {
                            "description": "Push campaign message",
                            "type": "string",
                            "example": "Campaign message"
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "CampaignPushContentTemplate",
                        "required": [
                          "type",
                          "template_id"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "template"
                            ]
                          },
                          "template_id": {
                            "description": "ID of the template for this campaign",
                            "type": "integer"
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  },
                  "actions": {
                    "description": "Actions for push campaign",
                    "properties": {
                      "type": {
                        "description": "Type of action",
                        "type": "string",
                        "enum": [
                          "url",
                          "deeplink"
                        ]
                      },
                      "title": {
                        "description": "Action title",
                        "type": "string"
                      },
                      "link": {
                        "description": "Action link (may be either URL or deeplink)",
                        "type": "string"
                      },
                      "cancel_label": {
                        "description": "Action cancel label text",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "geo_options": {
                    "description": "Push geolocation options",
                    "properties": {
                      "latitude": {
                        "description": "Geolocation latitude",
                        "type": "integer",
                        "maximum": 180,
                        "minimum": -180
                      },
                      "longitude": {
                        "description": "Geolocation longitude",
                        "type": "integer",
                        "maximum": 180,
                        "minimum": -180
                      },
                      "range": {
                        "description": "Geolocation range",
                        "type": "integer",
                        "minimum": 0
                      },
                      "duration": {
                        "description": "Geolocation duration",
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "type": "object"
                  },
                  "notification_options": {
                    "description": "Push notification options",
                    "properties": {
                      "icon": {
                        "description": "Url for the icon of the notification",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Hashcode Campaign",
                  "description": "Hashcode campaign schema",
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/push' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"app_id\":\"<string>\",\"title\":\"<string>\",\"content\":{\"type\":\"<string>\",\"message\":\"<string>\"},\"actions\":{\"type\":\"<string>\",\"title\":\"<string>\",\"link\":\"<string>\",\"cancel_label\":\"<string>\"},\"geo_options\":{\"latitude\":\"<integer>\",\"longitude\":\"<integer>\",\"range\":\"<integer>\",\"duration\":\"<integer>\"},\"notification_options\":{\"icon\":\"<string>\"}}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/push\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"app_id\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\"},\\\"actions\\\":{\\\"type\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"cancel_label\\\":\\\"<string>\\\"},\\\"geo_options\\\":{\\\"latitude\\\":\\\"<integer>\\\",\\\"longitude\\\":\\\"<integer>\\\",\\\"range\\\":\\\"<integer>\\\",\\\"duration\\\":\\\"<integer>\\\"},\\\"notification_options\\\":{\\\"icon\\\":\\\"<string>\\\"}}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"app_id\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\"},\\\"actions\\\":{\\\"type\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"cancel_label\\\":\\\"<string>\\\"},\\\"geo_options\\\":{\\\"latitude\\\":\\\"<integer>\\\",\\\"longitude\\\":\\\"<integer>\\\",\\\"range\\\":\\\"<integer>\\\",\\\"duration\\\":\\\"<integer>\\\"},\\\"notification_options\\\":{\\\"icon\\\":\\\"<string>\\\"}}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/push\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"app_id\":\"<string>\",\"title\":\"<string>\",\"content\":{\"type\":\"<string>\",\"message\":\"<string>\"},\"actions\":{\"type\":\"<string>\",\"title\":\"<string>\",\"link\":\"<string>\",\"cancel_label\":\"<string>\"},\"geo_options\":{\"latitude\":\"<integer>\",\"longitude\":\"<integer>\",\"range\":\"<integer>\",\"duration\":\"<integer>\"},\"notification_options\":{\"icon\":\"<string>\"}});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/push\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/push\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"app_id\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\"},\\\"actions\\\":{\\\"type\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"cancel_label\\\":\\\"<string>\\\"},\\\"geo_options\\\":{\\\"latitude\\\":\\\"<integer>\\\",\\\"longitude\\\":\\\"<integer>\\\",\\\"range\\\":\\\"<integer>\\\",\\\"duration\\\":\\\"<integer>\\\"},\\\"notification_options\\\":{\\\"icon\\\":\\\"<string>\\\"}}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"app_id\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\"},\\\"actions\\\":{\\\"type\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"cancel_label\\\":\\\"<string>\\\"},\\\"geo_options\\\":{\\\"latitude\\\":\\\"<integer>\\\",\\\"longitude\\\":\\\"<integer>\\\",\\\"range\\\":\\\"<integer>\\\",\\\"duration\\\":\\\"<integer>\\\"},\\\"notification_options\\\":{\\\"icon\\\":\\\"<string>\\\"}}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaigns/push\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/push\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"app_id\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\"},\\\"actions\\\":{\\\"type\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"cancel_label\\\":\\\"<string>\\\"},\\\"geo_options\\\":{\\\"latitude\\\":\\\"<integer>\\\",\\\"longitude\\\":\\\"<integer>\\\",\\\"range\\\":\\\"<integer>\\\",\\\"duration\\\":\\\"<integer>\\\"},\\\"notification_options\\\":{\\\"icon\\\":\\\"<string>\\\"}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/push/{campaign_hash}": {
      "patch": {
        "tags": [
          "Push"
        ],
        "summary": "Update a specific push campaign",
        "description": "Update push campaign",
        "operationId": "patchPushCampaign",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the push campaign",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "PushCampaignPatchRequest",
                "description": "Push campaign patch request schema",
                "properties": {
                  "campaign_hash": {
                    "title": "Hash",
                    "type": "string",
                    "pattern": "[a-zA-Z0-9_-]*",
                    "readOnly": true
                  },
                  "title": {
                    "description": "Push campaign subject",
                    "type": "string"
                  },
                  "content": {
                    "description": "Campaign content",
                    "properties": {
                      "message": {
                        "description": "Push campaign message",
                        "type": "string",
                        "example": "Campaign message"
                      }
                    },
                    "type": "object"
                  },
                  "actions": {
                    "description": "Actions for push campaign",
                    "properties": {
                      "type": {
                        "description": "Type of action",
                        "type": "string",
                        "enum": [
                          "url",
                          "deeplink"
                        ]
                      },
                      "title": {
                        "description": "Action title",
                        "type": "string"
                      },
                      "link": {
                        "description": "Action link (may be either URL or deeplink)",
                        "type": "string"
                      },
                      "cancel_label": {
                        "description": "Action cancel label text",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "geo_options": {
                    "description": "Push geolocation options",
                    "properties": {
                      "latitude": {
                        "description": "Geolocation latitude",
                        "type": "integer",
                        "maximum": 180,
                        "minimum": -180
                      },
                      "longitude": {
                        "description": "Geolocation longitude",
                        "type": "integer",
                        "maximum": 180,
                        "minimum": -180
                      },
                      "range": {
                        "description": "Geolocation range",
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "type": "object"
                  },
                  "notification_options": {
                    "description": "Push notification options",
                    "properties": {
                      "icon": {
                        "description": "Url for the icon of the notification",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Hashcode Campaign",
                  "description": "Hashcode campaign schema",
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PATCH 'api.egoiapp.com/campaigns/push/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"campaign_hash\":\"<string>\",\"title\":\"<string>\",\"content\":{\"message\":\"<string>\"},\"actions\":{\"type\":\"<string>\",\"title\":\"<string>\",\"link\":\"<string>\",\"cancel_label\":\"<string>\"},\"geo_options\":{\"latitude\":\"<integer>\",\"longitude\":\"<integer>\",\"range\":\"<integer>\"},\"notification_options\":{\"icon\":\"<string>\"}}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/push/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"campaign_hash\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"actions\\\":{\\\"type\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"cancel_label\\\":\\\"<string>\\\"},\\\"geo_options\\\":{\\\"latitude\\\":\\\"<integer>\\\",\\\"longitude\\\":\\\"<integer>\\\",\\\"range\\\":\\\"<integer>\\\"},\\\"notification_options\\\":{\\\"icon\\\":\\\"<string>\\\"}}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"campaign_hash\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"actions\\\":{\\\"type\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"cancel_label\\\":\\\"<string>\\\"},\\\"geo_options\\\":{\\\"latitude\\\":\\\"<integer>\\\",\\\"longitude\\\":\\\"<integer>\\\",\\\"range\\\":\\\"<integer>\\\"},\\\"notification_options\\\":{\\\"icon\\\":\\\"<string>\\\"}}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/push/<string>\")\n    .method(\"PATCH\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"campaign_hash\":\"<string>\",\"title\":\"<string>\",\"content\":{\"message\":\"<string>\"},\"actions\":{\"type\":\"<string>\",\"title\":\"<string>\",\"link\":\"<string>\",\"cancel_label\":\"<string>\"},\"geo_options\":{\"latitude\":\"<integer>\",\"longitude\":\"<integer>\",\"range\":\"<integer>\"},\"notification_options\":{\"icon\":\"<string>\"}});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PATCH\", \"api.egoiapp.com/campaigns/push/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/push/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PATCH\",\n    CURLOPT_POSTFIELDS =>\"{\\\"campaign_hash\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"actions\\\":{\\\"type\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"cancel_label\\\":\\\"<string>\\\"},\\\"geo_options\\\":{\\\"latitude\\\":\\\"<integer>\\\",\\\"longitude\\\":\\\"<integer>\\\",\\\"range\\\":\\\"<integer>\\\"},\\\"notification_options\\\":{\\\"icon\\\":\\\"<string>\\\"}}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"campaign_hash\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"actions\\\":{\\\"type\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"cancel_label\\\":\\\"<string>\\\"},\\\"geo_options\\\":{\\\"latitude\\\":\\\"<integer>\\\",\\\"longitude\\\":\\\"<integer>\\\",\\\"range\\\":\\\"<integer>\\\"},\\\"notification_options\\\":{\\\"icon\\\":\\\"<string>\\\"}}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PATCH\", \"/campaigns/push/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/push/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"campaign_hash\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"actions\\\":{\\\"type\\\":\\\"<string>\\\",\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"cancel_label\\\":\\\"<string>\\\"},\\\"geo_options\\\":{\\\"latitude\\\":\\\"<integer>\\\",\\\"longitude\\\":\\\"<integer>\\\",\\\"range\\\":\\\"<integer>\\\"},\\\"notification_options\\\":{\\\"icon\\\":\\\"<string>\\\"}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/smart-sms/{campaign_hash}/actions/send": {
      "post": {
        "tags": [
          "Smart Sms"
        ],
        "summary": "Send smart sms message",
        "description": "Deploys and sends a smart sms message",
        "operationId": "actionSendSmartSms",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the 'send sms' action",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Send SMS",
                "description": "Campaign sms send request schema",
                "type": "object",
                "oneOf": [
                  {
                    "title": "Send SMS",
                    "required": [
                      "list_id",
                      "destination_field",
                      "segments"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "list_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "example": 1
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "destination_field": {
                            "description": "SMS campaign destination field. Must be 'cellphone' or the other field ID of type\n                                cellphone",
                            "type": "string",
                            "example": "cellphone"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "segments": {
                            "title": "Campaign Segments",
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type",
                              "mapping": {
                                "none": "#/components/schemas/SendNone",
                                "contact": "#/components/schemas/SendContactCellphone",
                                "segment": "#/components/schemas/SendSegment"
                              }
                            },
                            "oneOf": [
                              {
                                "title": "SendNone",
                                "description": "Sends the campaign to the whole list",
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to the whole list",
                                    "type": "string",
                                    "enum": [
                                      "none"
                                    ]
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              },
                              {
                                "title": "Contact Cellphone",
                                "description": "Cellphone to whom the campaign will be sent",
                                "required": [
                                  "type",
                                  "data"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to a specific contact",
                                    "type": "string",
                                    "enum": [
                                      "contact"
                                    ]
                                  },
                                  "data": {
                                    "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
                                    "type": "string",
                                    "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
                                    "example": "351-300404336"
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              },
                              {
                                "title": "SendSegment",
                                "description": "Segments where the campaign will be sent",
                                "required": [
                                  "type",
                                  "data"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to specific segments",
                                    "type": "string",
                                    "enum": [
                                      "segment"
                                    ]
                                  },
                                  "data": {
                                    "description": "Array of segment IDs to send the campaign",
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Notify Users",
                        "description": "Users that will be notified",
                        "properties": {
                          "notify": {
                            "description": "Array of IDs of the users to notify",
                            "type": "array",
                            "items": {
                              "type": "integer"
                            }
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "title": "Schedule SMS",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "schedule_date": {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Send SMS",
                        "required": [
                          "list_id",
                          "destination_field",
                          "segments"
                        ],
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "list_id": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "example": 1
                              }
                            },
                            "type": "object"
                          },
                          {
                            "properties": {
                              "destination_field": {
                                "description": "SMS campaign destination field. Must be 'cellphone' or the other field ID of type\n                                cellphone",
                                "type": "string",
                                "example": "cellphone"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "properties": {
                              "segments": {
                                "title": "Campaign Segments",
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type",
                                  "mapping": {
                                    "none": "#/components/schemas/SendNone",
                                    "contact": "#/components/schemas/SendContactCellphone",
                                    "segment": "#/components/schemas/SendSegment"
                                  }
                                },
                                "oneOf": [
                                  {
                                    "title": "SendNone",
                                    "description": "Sends the campaign to the whole list",
                                    "required": [
                                      "type"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "Use this segment type to send to the whole list",
                                        "type": "string",
                                        "enum": [
                                          "none"
                                        ]
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  },
                                  {
                                    "title": "Contact Cellphone",
                                    "description": "Cellphone to whom the campaign will be sent",
                                    "required": [
                                      "type",
                                      "data"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "Use this segment type to send to a specific contact",
                                        "type": "string",
                                        "enum": [
                                          "contact"
                                        ]
                                      },
                                      "data": {
                                        "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
                                        "type": "string",
                                        "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
                                        "example": "351-300404336"
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  },
                                  {
                                    "title": "SendSegment",
                                    "description": "Segments where the campaign will be sent",
                                    "required": [
                                      "type",
                                      "data"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "Use this segment type to send to specific segments",
                                        "type": "string",
                                        "enum": [
                                          "segment"
                                        ]
                                      },
                                      "data": {
                                        "description": "Array of segment IDs to send the campaign",
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Notify Users",
                            "description": "Users that will be notified",
                            "properties": {
                              "notify": {
                                "description": "Array of IDs of the users to notify",
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                }
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/smart-sms/<string>/actions/send' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"list_id\":\"<integer>\",\"destination_field\":\"<string>\",\"segments\":{\"type\":\"<string>\"},\"notify\":[\"<integer>\",\"<integer>\"]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/smart-sms/<string>/actions/send\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/smart-sms/<string>/actions/send\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"list_id\":\"<integer>\",\"destination_field\":\"<string>\",\"segments\":{\"type\":\"<string>\"},\"notify\":[\"<integer>\",\"<integer>\"]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/smart-sms/<string>/actions/send\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/smart-sms/<string>/actions/send\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaigns/smart-sms/<string>/actions/send\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/smart-sms/<string>/actions/send\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/smart-sms": {
      "post": {
        "tags": [
          "Smart Sms"
        ],
        "summary": "Create new smart sms campaign",
        "description": "Creates a new smart sms campaign.\n                        **DISCLAIMER:** A URL will be added at the end of your SMS",
        "operationId": "createSmartSmsCampaign",
        "requestBody": {
          "description": "Parameters for the Smart Sms Campaign",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Smart Sms Campaign",
                "required": [
                  "list_id",
                  "internal_name",
                  "campaign_content",
                  "page_content"
                ],
                "properties": {
                  "list_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "internal_name": {
                    "description": "Smart SMS campaign internal name",
                    "type": "string",
                    "example": "Internal Name"
                  },
                  "campaign_content": {
                    "required": [
                      "message"
                    ],
                    "properties": {
                      "message": {
                        "description": "Smart SMS message",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "page_content": {
                    "title": "Campaign page content",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "redirect": "#/components/schemas/CampaignSmartSmsRedirect",
                        "import": "#/components/schemas/CampaignSmartSmsImport",
                        "html": "#/components/schemas/CampaignSmartSmsHtml"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "Campaign smart SMS redirect",
                        "required": [
                          "type",
                          "page_url"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "redirect"
                            ]
                          },
                          "page_url": {
                            "description": "Smart SMS page URL",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Campaign smart SMS import",
                        "required": [
                          "type",
                          "page_url"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "redirect"
                            ]
                          },
                          "page_url": {
                            "description": "Smart SMS page URL",
                            "type": "string"
                          },
                          "page_internal_name": {
                            "description": "Smart SMS page name",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Campaign smart SMS HTML",
                        "required": [
                          "type",
                          "page_html"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "html"
                            ]
                          },
                          "page_html": {
                            "description": "Smart SMS page HTML",
                            "type": "string"
                          },
                          "page_internal_name": {
                            "description": "Smart SMS page name",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  "sender_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "cname_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "options": {
                    "title": "Campaign Options",
                    "properties": {
                      "encoding": {
                        "type": "string",
                        "enum": [
                          "gsm",
                          "gsm_extended",
                          "unicode"
                        ],
                        "example": "gsm"
                      },
                      "max_messages": {
                        "type": "integer",
                        "maximum": 7,
                        "minimum": 1,
                        "example": 5
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Hashcode Campaign",
                  "description": "Hashcode campaign schema",
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/smart-sms' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"list_id\":\"<integer>\",\"internal_name\":\"<string>\",\"campaign_content\":{\"message\":\"<string>\"},\"page_content\":{\"type\":\"<string>\",\"page_url\":\"<string>\"},\"sender_id\":\"<integer>\",\"cname_id\":\"<integer>\",\"options\":{\"encoding\":\"<string>\",\"max_messages\":\"<integer>\"}}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/smart-sms\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"campaign_content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"page_content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"page_url\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"cname_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"campaign_content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"page_content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"page_url\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"cname_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/smart-sms\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"list_id\":\"<integer>\",\"internal_name\":\"<string>\",\"campaign_content\":{\"message\":\"<string>\"},\"page_content\":{\"type\":\"<string>\",\"page_url\":\"<string>\"},\"sender_id\":\"<integer>\",\"cname_id\":\"<integer>\",\"options\":{\"encoding\":\"<string>\",\"max_messages\":\"<integer>\"}});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/smart-sms\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/smart-sms\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"campaign_content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"page_content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"page_url\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"cname_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"campaign_content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"page_content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"page_url\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"cname_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaigns/smart-sms\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/smart-sms\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"campaign_content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"page_content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"page_url\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"cname_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/smart-sms/{campaign_hash}": {
      "patch": {
        "tags": [
          "Smart Sms"
        ],
        "summary": "Update a specific smart sms campaign",
        "description": "Update smart sms campaign",
        "operationId": "patchSmartSmsCampaign",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Smart Sms Campaign",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Smart Sms Campaign",
                "properties": {
                  "internal_name": {
                    "description": "SMS campaign internal name",
                    "type": "string",
                    "example": "Internal Title"
                  },
                  "campaign_content": {
                    "properties": {
                      "message": {
                        "description": "Smart SMS message",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "page_content": {
                    "properties": {
                      "page_url": {
                        "description": "Smart SMS page URL",
                        "type": "string"
                      },
                      "page_html": {
                        "description": "Smart SMS page HTML",
                        "type": "string"
                      },
                      "page_internal_name": {
                        "description": "Smart SMS page name. This is only applicable to campaigns with type 'import' or 'html'.\n                            Campaigns with type 'redirect' will ignore this parameter",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "sender_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "cname_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "options": {
                    "title": "Campaign Options",
                    "properties": {
                      "encoding": {
                        "type": "string",
                        "enum": [
                          "gsm",
                          "gsm_extended",
                          "unicode"
                        ],
                        "example": "gsm"
                      },
                      "max_messages": {
                        "type": "integer",
                        "maximum": 7,
                        "minimum": 1,
                        "example": 5
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Hashcode Campaign",
                  "description": "Hashcode campaign schema",
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PATCH 'api.egoiapp.com/campaigns/smart-sms/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"internal_name\":\"<string>\",\"campaign_content\":{\"message\":\"<string>\"},\"page_content\":{\"page_url\":\"<string>\",\"page_html\":\"<string>\",\"page_internal_name\":\"<string>\"},\"sender_id\":\"<integer>\",\"cname_id\":\"<integer>\",\"options\":{\"encoding\":\"<string>\",\"max_messages\":\"<integer>\"}}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/smart-sms/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"campaign_content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"page_content\\\":{\\\"page_url\\\":\\\"<string>\\\",\\\"page_html\\\":\\\"<string>\\\",\\\"page_internal_name\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"cname_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"campaign_content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"page_content\\\":{\\\"page_url\\\":\\\"<string>\\\",\\\"page_html\\\":\\\"<string>\\\",\\\"page_internal_name\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"cname_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/smart-sms/<string>\")\n    .method(\"PATCH\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"internal_name\":\"<string>\",\"campaign_content\":{\"message\":\"<string>\"},\"page_content\":{\"page_url\":\"<string>\",\"page_html\":\"<string>\",\"page_internal_name\":\"<string>\"},\"sender_id\":\"<integer>\",\"cname_id\":\"<integer>\",\"options\":{\"encoding\":\"<string>\",\"max_messages\":\"<integer>\"}});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PATCH\", \"api.egoiapp.com/campaigns/smart-sms/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/smart-sms/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PATCH\",\n    CURLOPT_POSTFIELDS =>\"{\\\"internal_name\\\":\\\"<string>\\\",\\\"campaign_content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"page_content\\\":{\\\"page_url\\\":\\\"<string>\\\",\\\"page_html\\\":\\\"<string>\\\",\\\"page_internal_name\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"cname_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"campaign_content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"page_content\\\":{\\\"page_url\\\":\\\"<string>\\\",\\\"page_html\\\":\\\"<string>\\\",\\\"page_internal_name\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"cname_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PATCH\", \"/campaigns/smart-sms/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/smart-sms/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"campaign_content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"page_content\\\":{\\\"page_url\\\":\\\"<string>\\\",\\\"page_html\\\":\\\"<string>\\\",\\\"page_internal_name\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"cname_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/sms/{campaign_hash}/actions/send": {
      "post": {
        "tags": [
          "Sms"
        ],
        "summary": "Send sms message",
        "description": "Deploys and sends an sms message",
        "operationId": "actionSendSms",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the 'send sms' action",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Send SMS",
                "description": "Campaign sms send request schema",
                "type": "object",
                "oneOf": [
                  {
                    "title": "Send SMS",
                    "required": [
                      "list_id",
                      "destination_field",
                      "segments"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "list_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "example": 1
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "destination_field": {
                            "description": "SMS campaign destination field. Must be 'cellphone' or the other field ID of type\n                                cellphone",
                            "type": "string",
                            "example": "cellphone"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "segments": {
                            "title": "Campaign Segments",
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type",
                              "mapping": {
                                "none": "#/components/schemas/SendNone",
                                "contact": "#/components/schemas/SendContactCellphone",
                                "segment": "#/components/schemas/SendSegment"
                              }
                            },
                            "oneOf": [
                              {
                                "title": "SendNone",
                                "description": "Sends the campaign to the whole list",
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to the whole list",
                                    "type": "string",
                                    "enum": [
                                      "none"
                                    ]
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              },
                              {
                                "title": "Contact Cellphone",
                                "description": "Cellphone to whom the campaign will be sent",
                                "required": [
                                  "type",
                                  "data"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to a specific contact",
                                    "type": "string",
                                    "enum": [
                                      "contact"
                                    ]
                                  },
                                  "data": {
                                    "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
                                    "type": "string",
                                    "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
                                    "example": "351-300404336"
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              },
                              {
                                "title": "SendSegment",
                                "description": "Segments where the campaign will be sent",
                                "required": [
                                  "type",
                                  "data"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to specific segments",
                                    "type": "string",
                                    "enum": [
                                      "segment"
                                    ]
                                  },
                                  "data": {
                                    "description": "Array of segment IDs to send the campaign",
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Notify Users",
                        "description": "Users that will be notified",
                        "properties": {
                          "notify": {
                            "description": "Array of IDs of the users to notify",
                            "type": "array",
                            "items": {
                              "type": "integer"
                            }
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "title": "Schedule SMS",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "schedule_date": {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Send SMS",
                        "required": [
                          "list_id",
                          "destination_field",
                          "segments"
                        ],
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "list_id": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "example": 1
                              }
                            },
                            "type": "object"
                          },
                          {
                            "properties": {
                              "destination_field": {
                                "description": "SMS campaign destination field. Must be 'cellphone' or the other field ID of type\n                                cellphone",
                                "type": "string",
                                "example": "cellphone"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "properties": {
                              "segments": {
                                "title": "Campaign Segments",
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type",
                                  "mapping": {
                                    "none": "#/components/schemas/SendNone",
                                    "contact": "#/components/schemas/SendContactCellphone",
                                    "segment": "#/components/schemas/SendSegment"
                                  }
                                },
                                "oneOf": [
                                  {
                                    "title": "SendNone",
                                    "description": "Sends the campaign to the whole list",
                                    "required": [
                                      "type"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "Use this segment type to send to the whole list",
                                        "type": "string",
                                        "enum": [
                                          "none"
                                        ]
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  },
                                  {
                                    "title": "Contact Cellphone",
                                    "description": "Cellphone to whom the campaign will be sent",
                                    "required": [
                                      "type",
                                      "data"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "Use this segment type to send to a specific contact",
                                        "type": "string",
                                        "enum": [
                                          "contact"
                                        ]
                                      },
                                      "data": {
                                        "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
                                        "type": "string",
                                        "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
                                        "example": "351-300404336"
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  },
                                  {
                                    "title": "SendSegment",
                                    "description": "Segments where the campaign will be sent",
                                    "required": [
                                      "type",
                                      "data"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "Use this segment type to send to specific segments",
                                        "type": "string",
                                        "enum": [
                                          "segment"
                                        ]
                                      },
                                      "data": {
                                        "description": "Array of segment IDs to send the campaign",
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Notify Users",
                            "description": "Users that will be notified",
                            "properties": {
                              "notify": {
                                "description": "Array of IDs of the users to notify",
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                }
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/sms/<string>/actions/send' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"list_id\":\"<integer>\",\"destination_field\":\"<string>\",\"segments\":{\"type\":\"<string>\"},\"notify\":[\"<integer>\",\"<integer>\"]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/sms/<string>/actions/send\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/sms/<string>/actions/send\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"list_id\":\"<integer>\",\"destination_field\":\"<string>\",\"segments\":{\"type\":\"<string>\"},\"notify\":[\"<integer>\",\"<integer>\"]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/sms/<string>/actions/send\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/sms/<string>/actions/send\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaigns/sms/<string>/actions/send\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/sms/<string>/actions/send\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/sms": {
      "post": {
        "tags": [
          "Sms"
        ],
        "summary": "Create new sms campaign",
        "description": "Create a new sms campaign",
        "operationId": "createSmsCampaign",
        "requestBody": {
          "description": "Parameters for the Sms Campaign",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Sms Campaign",
                "required": [
                  "list_id",
                  "internal_name",
                  "content"
                ],
                "properties": {
                  "list_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "internal_name": {
                    "description": "SMS campaign internal name",
                    "type": "string",
                    "example": "Internal Title"
                  },
                  "content": {
                    "title": "Campaign Content",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "text": "#/components/schemas/CampaignSmsContentText",
                        "template": "#/components/schemas/CampaignSmsContentTemplate"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "Campaign text",
                        "required": [
                          "type",
                          "message"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "text"
                            ]
                          },
                          "message": {
                            "description": "SMS campaign message",
                            "type": "string",
                            "example": "Campaign message"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Campaign template",
                        "required": [
                          "type",
                          "template_id"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "template"
                            ]
                          },
                          "template_id": {
                            "description": "ID of the template for this campaign",
                            "type": "integer"
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  "sender_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "options": {
                    "title": "Campaign Options",
                    "properties": {
                      "encoding": {
                        "type": "string",
                        "enum": [
                          "gsm",
                          "gsm_extended",
                          "unicode"
                        ],
                        "example": "gsm"
                      },
                      "max_messages": {
                        "type": "integer",
                        "maximum": 7,
                        "minimum": 1,
                        "example": 5
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Hashcode Campaign",
                  "description": "Hashcode campaign schema",
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/sms' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"list_id\":\"<integer>\",\"internal_name\":\"<string>\",\"content\":{\"type\":\"<string>\",\"message\":\"<string>\"},\"sender_id\":\"<integer>\",\"options\":{\"encoding\":\"<string>\",\"max_messages\":\"<integer>\"}}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/sms\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/sms\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"list_id\":\"<integer>\",\"internal_name\":\"<string>\",\"content\":{\"type\":\"<string>\",\"message\":\"<string>\"},\"sender_id\":\"<integer>\",\"options\":{\"encoding\":\"<string>\",\"max_messages\":\"<integer>\"}});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/sms\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/sms\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaigns/sms\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/sms\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/sms/{campaign_hash}": {
      "patch": {
        "tags": [
          "Sms"
        ],
        "summary": "Update a specific sms campaign",
        "description": "Update sms campaign",
        "operationId": "patchSmsCampaign",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Sms Campaign",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Sms Campaign",
                "properties": {
                  "internal_name": {
                    "description": "SMS campaign internal name",
                    "type": "string",
                    "example": "Internal Title"
                  },
                  "content": {
                    "properties": {
                      "message": {
                        "description": "SMS campaign message",
                        "type": "string",
                        "example": "Campaign message"
                      }
                    },
                    "type": "object"
                  },
                  "sender_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "options": {
                    "title": "Campaign Options",
                    "properties": {
                      "encoding": {
                        "type": "string",
                        "enum": [
                          "gsm",
                          "gsm_extended",
                          "unicode"
                        ],
                        "example": "gsm"
                      },
                      "max_messages": {
                        "type": "integer",
                        "maximum": 7,
                        "minimum": 1,
                        "example": 5
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Hashcode Campaign",
                  "description": "Hashcode campaign schema",
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PATCH 'api.egoiapp.com/campaigns/sms/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"internal_name\":\"<string>\",\"content\":{\"message\":\"<string>\"},\"sender_id\":\"<integer>\",\"options\":{\"encoding\":\"<string>\",\"max_messages\":\"<integer>\"}}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/sms/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/sms/<string>\")\n    .method(\"PATCH\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"internal_name\":\"<string>\",\"content\":{\"message\":\"<string>\"},\"sender_id\":\"<integer>\",\"options\":{\"encoding\":\"<string>\",\"max_messages\":\"<integer>\"}});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PATCH\", \"api.egoiapp.com/campaigns/sms/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/sms/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PATCH\",\n    CURLOPT_POSTFIELDS =>\"{\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PATCH\", \"/campaigns/sms/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/sms/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"message\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\",\\\"options\\\":{\\\"encoding\\\":\\\"<string>\\\",\\\"max_messages\\\":\\\"<integer>\\\"}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/voice/{campaign_hash}/actions/send": {
      "post": {
        "tags": [
          "Voice"
        ],
        "summary": "Send voice message",
        "description": "Deploys and sends an voice message",
        "operationId": "actionSendVoice",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the 'send voice' action",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Send Voice",
                "description": "Campaign voice send request schema",
                "type": "object",
                "oneOf": [
                  {
                    "title": "Send Voice",
                    "description": "Campaign voice abstract schema",
                    "required": [
                      "segments",
                      "list_id",
                      "destination_field"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "list_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "example": 1
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "destination_field": {
                            "description": "Destination field of this campaign",
                            "type": "string",
                            "enum": [
                              "phone",
                              "cellphone",
                              "phone_failsafe_cellphone",
                              "cellphone_failsafe_phone",
                              "cellphone_phone"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "unique_contacts_only": {
                            "description": "True to send the campaign only to unique contacts",
                            "type": "boolean",
                            "default": false
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Segments Object",
                        "description": "Object of contact limit",
                        "properties": {
                          "segments": {
                            "title": "Campaign Segments",
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type",
                              "mapping": {
                                "none": "#/components/schemas/SendNone",
                                "contact": "#/components/schemas/SendContact",
                                "segment": "#/components/schemas/SendSegment"
                              }
                            },
                            "oneOf": [
                              {
                                "title": "SendNone",
                                "description": "Sends the campaign to the whole list",
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to the whole list",
                                    "type": "string",
                                    "enum": [
                                      "none"
                                    ]
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              },
                              {
                                "title": "SendContact",
                                "description": "Contact to whom the campaign will be sent",
                                "required": [
                                  "type",
                                  "data"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to a specific contact",
                                    "type": "string",
                                    "enum": [
                                      "contact"
                                    ]
                                  },
                                  "data": {
                                    "description": "Contact to send the campaign",
                                    "type": "string"
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              },
                              {
                                "title": "SendSegment",
                                "description": "Segments where the campaign will be sent",
                                "required": [
                                  "type",
                                  "data"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to specific segments",
                                    "type": "string",
                                    "enum": [
                                      "segment"
                                    ]
                                  },
                                  "data": {
                                    "description": "Array of segment IDs to send the campaign",
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Notify Users",
                        "description": "Users that will be notified",
                        "properties": {
                          "notify": {
                            "description": "Array of IDs of the users to notify",
                            "type": "array",
                            "items": {
                              "type": "integer"
                            }
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Limit Contacts Object",
                        "description": "Object of contact limit",
                        "properties": {
                          "limit_contacts": {
                            "title": "Limit Contacts Object",
                            "description": "Object of contact limit",
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type",
                              "mapping": {
                                "percent": "#/components/schemas/LimitContactsPercentActionSend",
                                "value": "#/components/schemas/LimitContactsValueActionSend"
                              }
                            },
                            "example": {
                              "type": "percent",
                              "value": 30
                            },
                            "oneOf": [
                              {
                                "title": "Limit Contacts by percent Object",
                                "description": "Object of contact limit",
                                "properties": {
                                  "type": {
                                    "description": "Type of limit",
                                    "type": "string",
                                    "enum": [
                                      "percent"
                                    ]
                                  },
                                  "value": {
                                    "description": "Percent value",
                                    "type": "integer",
                                    "maximum": 100,
                                    "minimum": 10
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              },
                              {
                                "title": "Limit Contacts by absolute value Object",
                                "description": "Object of contact limit",
                                "properties": {
                                  "type": {
                                    "description": "Type of limit",
                                    "type": "string",
                                    "enum": [
                                      "value"
                                    ]
                                  },
                                  "value": {
                                    "description": "Absolute value",
                                    "type": "integer",
                                    "minimum": 10
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Hour limit",
                        "description": "Selection of hour interval",
                        "properties": {
                          "limit_hour": {
                            "description": "Hour limit to send the campaign",
                            "properties": {
                              "hour_start": {
                                "description": "Hour start limit",
                                "type": "string",
                                "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                                "example": "13:00"
                              },
                              "hour_end": {
                                "description": "Hour end limit",
                                "type": "string",
                                "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                                "example": "15:00"
                              }
                            },
                            "type": "object"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Speed limit",
                        "description": "Sending campaign speed",
                        "properties": {
                          "limit_speed": {
                            "description": "Speed limit to send the campaign",
                            "type": "integer",
                            "maximum": 10,
                            "minimum": 1
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "title": "Schedule Voice",
                    "description": "Campaign voice schedule request schema",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "schedule_date": {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Send Voice",
                        "description": "Campaign voice abstract schema",
                        "required": [
                          "segments",
                          "list_id",
                          "destination_field"
                        ],
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "list_id": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "example": 1
                              }
                            },
                            "type": "object"
                          },
                          {
                            "properties": {
                              "destination_field": {
                                "description": "Destination field of this campaign",
                                "type": "string",
                                "enum": [
                                  "phone",
                                  "cellphone",
                                  "phone_failsafe_cellphone",
                                  "cellphone_failsafe_phone",
                                  "cellphone_phone"
                                ]
                              }
                            },
                            "type": "object"
                          },
                          {
                            "properties": {
                              "unique_contacts_only": {
                                "description": "True to send the campaign only to unique contacts",
                                "type": "boolean",
                                "default": false
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Segments Object",
                            "description": "Object of contact limit",
                            "properties": {
                              "segments": {
                                "title": "Campaign Segments",
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type",
                                  "mapping": {
                                    "none": "#/components/schemas/SendNone",
                                    "contact": "#/components/schemas/SendContact",
                                    "segment": "#/components/schemas/SendSegment"
                                  }
                                },
                                "oneOf": [
                                  {
                                    "title": "SendNone",
                                    "description": "Sends the campaign to the whole list",
                                    "required": [
                                      "type"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "Use this segment type to send to the whole list",
                                        "type": "string",
                                        "enum": [
                                          "none"
                                        ]
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  },
                                  {
                                    "title": "SendContact",
                                    "description": "Contact to whom the campaign will be sent",
                                    "required": [
                                      "type",
                                      "data"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "Use this segment type to send to a specific contact",
                                        "type": "string",
                                        "enum": [
                                          "contact"
                                        ]
                                      },
                                      "data": {
                                        "description": "Contact to send the campaign",
                                        "type": "string"
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  },
                                  {
                                    "title": "SendSegment",
                                    "description": "Segments where the campaign will be sent",
                                    "required": [
                                      "type",
                                      "data"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "Use this segment type to send to specific segments",
                                        "type": "string",
                                        "enum": [
                                          "segment"
                                        ]
                                      },
                                      "data": {
                                        "description": "Array of segment IDs to send the campaign",
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Notify Users",
                            "description": "Users that will be notified",
                            "properties": {
                              "notify": {
                                "description": "Array of IDs of the users to notify",
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                }
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Limit Contacts Object",
                            "description": "Object of contact limit",
                            "properties": {
                              "limit_contacts": {
                                "title": "Limit Contacts Object",
                                "description": "Object of contact limit",
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type",
                                  "mapping": {
                                    "percent": "#/components/schemas/LimitContactsPercentActionSend",
                                    "value": "#/components/schemas/LimitContactsValueActionSend"
                                  }
                                },
                                "example": {
                                  "type": "percent",
                                  "value": 30
                                },
                                "oneOf": [
                                  {
                                    "title": "Limit Contacts by percent Object",
                                    "description": "Object of contact limit",
                                    "properties": {
                                      "type": {
                                        "description": "Type of limit",
                                        "type": "string",
                                        "enum": [
                                          "percent"
                                        ]
                                      },
                                      "value": {
                                        "description": "Percent value",
                                        "type": "integer",
                                        "maximum": 100,
                                        "minimum": 10
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  },
                                  {
                                    "title": "Limit Contacts by absolute value Object",
                                    "description": "Object of contact limit",
                                    "properties": {
                                      "type": {
                                        "description": "Type of limit",
                                        "type": "string",
                                        "enum": [
                                          "value"
                                        ]
                                      },
                                      "value": {
                                        "description": "Absolute value",
                                        "type": "integer",
                                        "minimum": 10
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Hour limit",
                            "description": "Selection of hour interval",
                            "properties": {
                              "limit_hour": {
                                "description": "Hour limit to send the campaign",
                                "properties": {
                                  "hour_start": {
                                    "description": "Hour start limit",
                                    "type": "string",
                                    "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                                    "example": "13:00"
                                  },
                                  "hour_end": {
                                    "description": "Hour end limit",
                                    "type": "string",
                                    "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                                    "example": "15:00"
                                  }
                                },
                                "type": "object"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Speed limit",
                            "description": "Sending campaign speed",
                            "properties": {
                              "limit_speed": {
                                "description": "Speed limit to send the campaign",
                                "type": "integer",
                                "maximum": 10,
                                "minimum": 1
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              "example": {
                "schedule_date": "2019-04-01 12:30:23",
                "list_id": 1,
                "segments": {
                  "type": "none"
                },
                "notify": [
                  0
                ],
                "destination_field": "cellphone",
                "unique_contacts_only": true,
                "limit_contacts": {
                  "type": "percent",
                  "value": 10
                },
                "limit_hour": {
                  "hour_start": "01:00",
                  "hour_end": "04:00"
                },
                "limit_speed": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/voice/<string>/actions/send' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"list_id\":\"<integer>\",\"destination_field\":\"<string>\",\"unique_contacts_only\":false,\"segments\":{\"type\":\"<string>\"},\"notify\":[\"<integer>\",\"<integer>\"],\"limit_contacts\":{\"type\":\"<string>\",\"value\":\"<integer>\"},\"limit_hour\":{\"hour_start\":\"<string>\",\"hour_end\":\"<string>\"},\"limit_speed\":\"<integer>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/voice/<string>/actions/send\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"unique_contacts_only\\\":false,\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"limit_contacts\\\":{\\\"type\\\":\\\"<string>\\\",\\\"value\\\":\\\"<integer>\\\"},\\\"limit_hour\\\":{\\\"hour_start\\\":\\\"<string>\\\",\\\"hour_end\\\":\\\"<string>\\\"},\\\"limit_speed\\\":\\\"<integer>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"unique_contacts_only\\\":false,\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"limit_contacts\\\":{\\\"type\\\":\\\"<string>\\\",\\\"value\\\":\\\"<integer>\\\"},\\\"limit_hour\\\":{\\\"hour_start\\\":\\\"<string>\\\",\\\"hour_end\\\":\\\"<string>\\\"},\\\"limit_speed\\\":\\\"<integer>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/voice/<string>/actions/send\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"list_id\":\"<integer>\",\"destination_field\":\"<string>\",\"unique_contacts_only\":false,\"segments\":{\"type\":\"<string>\"},\"notify\":[\"<integer>\",\"<integer>\"],\"limit_contacts\":{\"type\":\"<string>\",\"value\":\"<integer>\"},\"limit_hour\":{\"hour_start\":\"<string>\",\"hour_end\":\"<string>\"},\"limit_speed\":\"<integer>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/voice/<string>/actions/send\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/voice/<string>/actions/send\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"unique_contacts_only\\\":false,\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"limit_contacts\\\":{\\\"type\\\":\\\"<string>\\\",\\\"value\\\":\\\"<integer>\\\"},\\\"limit_hour\\\":{\\\"hour_start\\\":\\\"<string>\\\",\\\"hour_end\\\":\\\"<string>\\\"},\\\"limit_speed\\\":\\\"<integer>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"unique_contacts_only\\\":false,\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"limit_contacts\\\":{\\\"type\\\":\\\"<string>\\\",\\\"value\\\":\\\"<integer>\\\"},\\\"limit_hour\\\":{\\\"hour_start\\\":\\\"<string>\\\",\\\"hour_end\\\":\\\"<string>\\\"},\\\"limit_speed\\\":\\\"<integer>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaigns/voice/<string>/actions/send\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/voice/<string>/actions/send\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"destination_field\\\":\\\"<string>\\\",\\\"unique_contacts_only\\\":false,\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"limit_contacts\\\":{\\\"type\\\":\\\"<string>\\\",\\\"value\\\":\\\"<integer>\\\"},\\\"limit_hour\\\":{\\\"hour_start\\\":\\\"<string>\\\",\\\"hour_end\\\":\\\"<string>\\\"},\\\"limit_speed\\\":\\\"<integer>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/voice": {
      "post": {
        "tags": [
          "Voice"
        ],
        "summary": "Create new voice campaign",
        "description": "Create a new voice campaign",
        "operationId": "createVoiceCampaign",
        "requestBody": {
          "description": "Parameters for the Voice Campaign",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Voice Campaign",
                "description": "Voice campaign schema",
                "required": [
                  "list_id",
                  "internal_name",
                  "content",
                  "sender_id"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "internal_name": {
                        "description": "Voice campaign internal name",
                        "type": "string"
                      },
                      "list_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      },
                      "group_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      },
                      "content": {
                        "title": "Content",
                        "description": "Content schema",
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "none": "#/components/schemas/ContentVoiceAudio",
                            "segment": "#/components/schemas/ContentVoiceTemplate"
                          }
                        },
                        "example": {
                          "type": "template_id",
                          "template_id": 1
                        },
                        "oneOf": [
                          {
                            "description": "Audio schema",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "audio"
                                ],
                                "example": "audio"
                              },
                              "audio": {
                                "description": "Voice campaign audio",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "description": "Template_id schema",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "template_id"
                                ],
                                "example": "template_id"
                              },
                              "template_id": {
                                "description": "Voice campaign template_id",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      },
                      "sender_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "CampaignHash",
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/voice' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"internal_name\":\"<string>\",\"list_id\":\"<integer>\",\"group_id\":\"<integer>\",\"content\":{\"type\":\"<string>\",\"audio\":\"<string>\"},\"sender_id\":\"<integer>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/voice\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\",\\\"group_id\\\":\\\"<integer>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"audio\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\",\\\"group_id\\\":\\\"<integer>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"audio\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/voice\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"internal_name\":\"<string>\",\"list_id\":\"<integer>\",\"group_id\":\"<integer>\",\"content\":{\"type\":\"<string>\",\"audio\":\"<string>\"},\"sender_id\":\"<integer>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/voice\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/voice\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"internal_name\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\",\\\"group_id\\\":\\\"<integer>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"audio\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\",\\\"group_id\\\":\\\"<integer>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"audio\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaigns/voice\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/voice\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\",\\\"group_id\\\":\\\"<integer>\\\",\\\"content\\\":{\\\"type\\\":\\\"<string>\\\",\\\"audio\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/voice/{campaign_hash}": {
      "patch": {
        "tags": [
          "Voice"
        ],
        "summary": "Update a specific voice campaign",
        "description": "Update a voice campaign",
        "operationId": "patchVoiceCampaign",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Voice Campaign",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Voice Campaign",
                "description": "Voice campaign schema",
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "internal_name": {
                        "description": "Voice campaign internal name",
                        "type": "string"
                      },
                      "group_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      },
                      "message": {
                        "title": "Content",
                        "description": "Content schema",
                        "properties": {
                          "audio": {
                            "description": "Voice campaign audio",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "sender_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PATCH 'api.egoiapp.com/campaigns/voice/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"internal_name\":\"<string>\",\"group_id\":\"<integer>\",\"message\":{\"audio\":\"<string>\"},\"sender_id\":\"<integer>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/voice/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"group_id\\\":\\\"<integer>\\\",\\\"message\\\":{\\\"audio\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"group_id\\\":\\\"<integer>\\\",\\\"message\\\":{\\\"audio\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/voice/<string>\")\n    .method(\"PATCH\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"internal_name\":\"<string>\",\"group_id\":\"<integer>\",\"message\":{\"audio\":\"<string>\"},\"sender_id\":\"<integer>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PATCH\", \"api.egoiapp.com/campaigns/voice/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/voice/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PATCH\",\n    CURLOPT_POSTFIELDS =>\"{\\\"internal_name\\\":\\\"<string>\\\",\\\"group_id\\\":\\\"<integer>\\\",\\\"message\\\":{\\\"audio\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"group_id\\\":\\\"<integer>\\\",\\\"message\\\":{\\\"audio\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PATCH\", \"/campaigns/voice/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/voice/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"group_id\\\":\\\"<integer>\\\",\\\"message\\\":{\\\"audio\\\":\\\"<string>\\\"},\\\"sender_id\\\":\\\"<integer>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/web-push/{campaign_hash}/actions/send": {
      "post": {
        "tags": [
          "Webpush"
        ],
        "summary": "Send webpush message",
        "description": "Deploys and sends a webpush message",
        "operationId": "actionSendWebPush",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the 'send web-push' action",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Send Webpush",
                "description": "Campaign webpush send request schema",
                "type": "object",
                "oneOf": [
                  {
                    "title": "Send Webpush",
                    "required": [
                      "site_id",
                      "segments"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "site_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "example": 1
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Segments Object",
                        "description": "Object of contact limit",
                        "properties": {
                          "segments": {
                            "title": "Campaign Segments",
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type",
                              "mapping": {
                                "none": "#/components/schemas/SendNone",
                                "segment": "#/components/schemas/SendSegment"
                              }
                            },
                            "oneOf": [
                              {
                                "title": "SendNone",
                                "description": "Sends the campaign to the whole list",
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to the whole list",
                                    "type": "string",
                                    "enum": [
                                      "none"
                                    ]
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              },
                              {
                                "title": "SendSegment",
                                "description": "Segments where the campaign will be sent",
                                "required": [
                                  "type",
                                  "data"
                                ],
                                "properties": {
                                  "type": {
                                    "description": "Use this segment type to send to specific segments",
                                    "type": "string",
                                    "enum": [
                                      "segment"
                                    ]
                                  },
                                  "data": {
                                    "description": "Array of segment IDs to send the campaign",
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type"
                                }
                              }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Notify Users",
                        "description": "Users that will be notified",
                        "properties": {
                          "notify": {
                            "description": "Array of IDs of the users to notify",
                            "type": "array",
                            "items": {
                              "type": "integer"
                            }
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "title": "Schedule Webpush",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "schedule_date": {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Send Webpush",
                        "required": [
                          "site_id",
                          "segments"
                        ],
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "site_id": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "example": 1
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Segments Object",
                            "description": "Object of contact limit",
                            "properties": {
                              "segments": {
                                "title": "Campaign Segments",
                                "type": "object",
                                "discriminator": {
                                  "propertyName": "type",
                                  "mapping": {
                                    "none": "#/components/schemas/SendNone",
                                    "segment": "#/components/schemas/SendSegment"
                                  }
                                },
                                "oneOf": [
                                  {
                                    "title": "SendNone",
                                    "description": "Sends the campaign to the whole list",
                                    "required": [
                                      "type"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "Use this segment type to send to the whole list",
                                        "type": "string",
                                        "enum": [
                                          "none"
                                        ]
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  },
                                  {
                                    "title": "SendSegment",
                                    "description": "Segments where the campaign will be sent",
                                    "required": [
                                      "type",
                                      "data"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "Use this segment type to send to specific segments",
                                        "type": "string",
                                        "enum": [
                                          "segment"
                                        ]
                                      },
                                      "data": {
                                        "description": "Array of segment IDs to send the campaign",
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "type": "object",
                                    "discriminator": {
                                      "propertyName": "type"
                                    }
                                  }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Notify Users",
                            "description": "Users that will be notified",
                            "properties": {
                              "notify": {
                                "description": "Array of IDs of the users to notify",
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                }
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/web-push/<string>/actions/send' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"site_id\":\"<integer>\",\"segments\":{\"type\":\"<string>\"},\"notify\":[\"<integer>\",\"<integer>\"]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/web-push/<string>/actions/send\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"site_id\\\":\\\"<integer>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"site_id\\\":\\\"<integer>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/web-push/<string>/actions/send\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"site_id\":\"<integer>\",\"segments\":{\"type\":\"<string>\"},\"notify\":[\"<integer>\",\"<integer>\"]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/web-push/<string>/actions/send\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/web-push/<string>/actions/send\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"site_id\\\":\\\"<integer>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"site_id\\\":\\\"<integer>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaigns/web-push/<string>/actions/send\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/web-push/<string>/actions/send\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"site_id\\\":\\\"<integer>\\\",\\\"segments\\\":{\\\"type\\\":\\\"<string>\\\"},\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/web-push": {
      "post": {
        "tags": [
          "Webpush"
        ],
        "summary": "Create new webpush campaign",
        "description": "Create a new webpush campaign",
        "operationId": "createWebPushCampaign",
        "requestBody": {
          "description": "Parameters for the webpush campaign",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Webpush Campaign",
                "required": [
                  "site_id",
                  "internal_name",
                  "content"
                ],
                "properties": {
                  "site_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "internal_name": {
                    "description": "Webpush campaign internal title",
                    "type": "string"
                  },
                  "content": {
                    "title": "Campaign Content",
                    "required": [
                      "title",
                      "message",
                      "link"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "title": "Campaign Content",
                        "properties": {
                          "title": {
                            "description": "Webpush campaign title",
                            "type": "string"
                          },
                          "message": {
                            "description": "Campaign message",
                            "type": "string",
                            "example": "Campaign message"
                          },
                          "link": {
                            "description": "Webpush link",
                            "type": "string"
                          },
                          "icon": {
                            "description": "URL of Webpush campaign icon (up to 144x144 pixels)",
                            "type": "string"
                          },
                          "image": {
                            "description": "URL of Webpush campaign image (up to 360x180 pixels)",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  "actions": {
                    "title": "Webpush actions",
                    "type": "array",
                    "items": {
                      "properties": {
                        "title": {
                          "description": "Webpush action title",
                          "type": "string"
                        },
                        "link": {
                          "description": "Webpush action link",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "link_params": {
                    "title": "Webpush url link parameters",
                    "type": "array",
                    "items": {
                      "properties": {
                        "param_name": {
                          "description": "Parameter name",
                          "type": "string"
                        },
                        "value": {
                          "description": "Parameter value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "ttl": {
                    "description": "Webpush campaign time to live, in seconds",
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/web-push' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"site_id\":\"<integer>\",\"internal_name\":\"<string>\",\"content\":{\"title\":\"<string>\",\"message\":\"<string>\",\"link\":\"<string>\",\"icon\":\"<string>\",\"image\":\"<string>\"},\"actions\":[{\"title\":\"<string>\",\"link\":\"<string>\"},{\"title\":\"<string>\",\"link\":\"<string>\"}],\"link_params\":[{\"param_name\":\"<string>\",\"value\":\"<string>\"},{\"param_name\":\"<string>\",\"value\":\"<string>\"}],\"ttl\":\"<integer>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/web-push\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"site_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"title\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"icon\\\":\\\"<string>\\\",\\\"image\\\":\\\"<string>\\\"},\\\"actions\\\":[{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"},{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"}],\\\"link_params\\\":[{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"ttl\\\":\\\"<integer>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"site_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"title\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"icon\\\":\\\"<string>\\\",\\\"image\\\":\\\"<string>\\\"},\\\"actions\\\":[{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"},{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"}],\\\"link_params\\\":[{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"ttl\\\":\\\"<integer>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/web-push\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"site_id\":\"<integer>\",\"internal_name\":\"<string>\",\"content\":{\"title\":\"<string>\",\"message\":\"<string>\",\"link\":\"<string>\",\"icon\":\"<string>\",\"image\":\"<string>\"},\"actions\":[{\"title\":\"<string>\",\"link\":\"<string>\"},{\"title\":\"<string>\",\"link\":\"<string>\"}],\"link_params\":[{\"param_name\":\"<string>\",\"value\":\"<string>\"},{\"param_name\":\"<string>\",\"value\":\"<string>\"}],\"ttl\":\"<integer>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/web-push\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/web-push\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"site_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"title\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"icon\\\":\\\"<string>\\\",\\\"image\\\":\\\"<string>\\\"},\\\"actions\\\":[{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"},{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"}],\\\"link_params\\\":[{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"ttl\\\":\\\"<integer>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"site_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"title\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"icon\\\":\\\"<string>\\\",\\\"image\\\":\\\"<string>\\\"},\\\"actions\\\":[{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"},{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"}],\\\"link_params\\\":[{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"ttl\\\":\\\"<integer>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaigns/web-push\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/web-push\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"site_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"title\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"icon\\\":\\\"<string>\\\",\\\"image\\\":\\\"<string>\\\"},\\\"actions\\\":[{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"},{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"}],\\\"link_params\\\":[{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"ttl\\\":\\\"<integer>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/web-push/{campaign_hash}": {
      "patch": {
        "tags": [
          "Webpush"
        ],
        "summary": "Update a specific webpush campaign",
        "description": "Update a webpush campaign",
        "operationId": "patchWebPushCampaign",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Webpush Campaign",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Webpush Campaign",
                "properties": {
                  "internal_name": {
                    "description": "Webpush campaign internal title",
                    "type": "string"
                  },
                  "content": {
                    "title": "Campaign Content",
                    "properties": {
                      "title": {
                        "description": "Webpush campaign title",
                        "type": "string"
                      },
                      "message": {
                        "description": "Campaign message",
                        "type": "string",
                        "example": "Campaign message"
                      },
                      "link": {
                        "description": "Webpush link",
                        "type": "string"
                      },
                      "icon": {
                        "description": "URL of Webpush campaign icon (up to 144x144 pixels)",
                        "type": "string"
                      },
                      "image": {
                        "description": "URL of Webpush campaign image (up to 360x180 pixels)",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "actions": {
                    "title": "Webpush actions",
                    "type": "array",
                    "items": {
                      "properties": {
                        "title": {
                          "description": "Webpush action title",
                          "type": "string"
                        },
                        "link": {
                          "description": "Webpush action link",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "link_params": {
                    "title": "Webpush url link parameters",
                    "type": "array",
                    "items": {
                      "properties": {
                        "param_name": {
                          "description": "Parameter name",
                          "type": "string"
                        },
                        "value": {
                          "description": "Parameter value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PATCH 'api.egoiapp.com/campaigns/web-push/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"internal_name\":\"<string>\",\"content\":{\"title\":\"<string>\",\"message\":\"<string>\",\"link\":\"<string>\",\"icon\":\"<string>\",\"image\":\"<string>\"},\"actions\":[{\"title\":\"<string>\",\"link\":\"<string>\"},{\"title\":\"<string>\",\"link\":\"<string>\"}],\"link_params\":[{\"param_name\":\"<string>\",\"value\":\"<string>\"},{\"param_name\":\"<string>\",\"value\":\"<string>\"}]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/web-push/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"title\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"icon\\\":\\\"<string>\\\",\\\"image\\\":\\\"<string>\\\"},\\\"actions\\\":[{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"},{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"}],\\\"link_params\\\":[{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"title\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"icon\\\":\\\"<string>\\\",\\\"image\\\":\\\"<string>\\\"},\\\"actions\\\":[{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"},{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"}],\\\"link_params\\\":[{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/web-push/<string>\")\n    .method(\"PATCH\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"internal_name\":\"<string>\",\"content\":{\"title\":\"<string>\",\"message\":\"<string>\",\"link\":\"<string>\",\"icon\":\"<string>\",\"image\":\"<string>\"},\"actions\":[{\"title\":\"<string>\",\"link\":\"<string>\"},{\"title\":\"<string>\",\"link\":\"<string>\"}],\"link_params\":[{\"param_name\":\"<string>\",\"value\":\"<string>\"},{\"param_name\":\"<string>\",\"value\":\"<string>\"}]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PATCH\", \"api.egoiapp.com/campaigns/web-push/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/web-push/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PATCH\",\n    CURLOPT_POSTFIELDS =>\"{\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"title\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"icon\\\":\\\"<string>\\\",\\\"image\\\":\\\"<string>\\\"},\\\"actions\\\":[{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"},{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"}],\\\"link_params\\\":[{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"title\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"icon\\\":\\\"<string>\\\",\\\"image\\\":\\\"<string>\\\"},\\\"actions\\\":[{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"},{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"}],\\\"link_params\\\":[{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PATCH\", \"/campaigns/web-push/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/web-push/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"title\\\":\\\"<string>\\\",\\\"message\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"icon\\\":\\\"<string>\\\",\\\"image\\\":\\\"<string>\\\"},\\\"actions\\\":[{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"},{\\\"title\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\"}],\\\"link_params\\\":[{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"param_name\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/webpush/rss/{campaign_hash}/actions/enable": {
      "post": {
        "tags": [
          "Webpush"
        ],
        "summary": "Enable a rss webpush campaign",
        "description": "Enable rss webpush message",
        "operationId": "actionEnableWebPushRss",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/webpush/rss/<string>/actions/enable' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/webpush/rss/<string>/actions/enable\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/webpush/rss/<string>/actions/enable\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/webpush/rss/<string>/actions/enable\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/webpush/rss/<string>/actions/enable\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"POST\", \"/campaigns/webpush/rss/<string>/actions/enable\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/webpush/rss/<string>/actions/enable\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaigns/webpush/rss": {
      "post": {
        "tags": [
          "Webpush"
        ],
        "summary": "Create new webpush rss campaign",
        "description": "Create a new webpush rss campaign",
        "operationId": "createWebPushRssCampaign",
        "requestBody": {
          "description": "Parameters for the WebPush Campaign",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Webpush Rss Campaign",
                "required": [
                  "site_id",
                  "internal_name",
                  "content"
                ],
                "properties": {
                  "site_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "internal_name": {
                    "description": "Webpush campaign internal title",
                    "type": "string"
                  },
                  "content": {
                    "title": "Campaign Content",
                    "properties": {
                      "feed": {
                        "description": "Feed Rss Url",
                        "type": "string",
                        "example": "https://localhost/feed"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Hashcode Campaign",
                  "description": "Hashcode campaign schema",
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaigns/webpush/rss' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"site_id\":\"<integer>\",\"internal_name\":\"<string>\",\"content\":{\"feed\":\"<string>\"}}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaigns/webpush/rss\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"site_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"feed\\\":\\\"<string>\\\"}}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"site_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"feed\\\":\\\"<string>\\\"}}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaigns/webpush/rss\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"site_id\":\"<integer>\",\"internal_name\":\"<string>\",\"content\":{\"feed\":\"<string>\"}});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaigns/webpush/rss\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaigns/webpush/rss\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"site_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"feed\\\":\\\"<string>\\\"}}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"site_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"feed\\\":\\\"<string>\\\"}}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaigns/webpush/rss\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaigns/webpush/rss\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"site_id\\\":\\\"<integer>\\\",\\\"internal_name\\\":\\\"<string>\\\",\\\"content\\\":{\\\"feed\\\":\\\"<string>\\\"}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaign-groups": {
      "get": {
        "tags": [
          "Campaign Groups"
        ],
        "summary": "Get all campaign groups",
        "description": "Returns all campaign groups",
        "operationId": "getAllCampaignGroups",
        "parameters": [
          {
            "name": "group_id",
            "in": "query",
            "description": "Reference attribute to campaign group id",
            "required": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "Reference attribute to campaign group id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "CampaignGroupCollection",
                  "description": "Collection of campaign groups",
                  "properties": {
                    "total_items": {
                      "description": "Returned campaign groups",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned tags",
                      "type": "array",
                      "items": {
                        "title": "Campaign Group",
                        "description": "Campaign Group schema",
                        "required": [
                          "group_id",
                          "name"
                        ],
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "group_id": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "readOnly": true,
                                "example": 1
                              },
                              "name": {
                                "description": "Name of the campaign group",
                                "type": "string",
                                "example": "Your custom campaign group"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/campaign-groups?group_id=<integer>&name=<string>&limit=10&offset=<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaign-groups?group_id=<integer>&name=<string>&limit=10&offset=<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaign-groups?group_id=<integer>&name=<string>&limit=10&offset=<integer>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/campaign-groups?group_id=<integer>&name=<string>&limit=10&offset=<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaign-groups?group_id=<integer>&name=<string>&limit=10&offset=<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/campaign-groups?group_id=<integer>&name=<string>&limit=10&offset=<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaign-groups?group_id=<integer>&name=<string>&limit=10&offset=<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Campaign Groups"
        ],
        "summary": "Create new campaign group",
        "description": "Create a new campaign group",
        "operationId": "createCampaignGroup",
        "requestBody": {
          "description": "Parameters for the Campaign Group",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Campaign Group",
                "description": "Campaign Group schema",
                "required": [
                  "group_id",
                  "name"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "name": {
                        "description": "Name of the campaign group",
                        "type": "string",
                        "example": "Your custom campaign group"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Campaign Group",
                  "description": "Campaign Group schema",
                  "required": [
                    "group_id",
                    "name"
                  ],
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "group_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "readOnly": true,
                          "example": 1
                        },
                        "name": {
                          "description": "Name of the campaign group",
                          "type": "string",
                          "example": "Your custom campaign group"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/campaign-groups' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"name\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaign-groups\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"name\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaign-groups\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"name\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/campaign-groups\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaign-groups\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"name\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"name\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/campaign-groups\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaign-groups\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"name\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/campaign-groups/{group_id}": {
      "put": {
        "tags": [
          "Campaign Groups"
        ],
        "summary": "Update a specific campaign group",
        "description": "Update a campaign group",
        "operationId": "updateCampaignGroup",
        "parameters": [
          {
            "name": "group_id",
            "in": "path",
            "description": "ID of the Campaign Group",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "readOnly": true,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Campaign Group",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Campaign Group",
                "description": "Campaign Group schema",
                "required": [
                  "group_id",
                  "name"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "name": {
                        "description": "Name of the campaign group",
                        "type": "string",
                        "example": "Your custom campaign group"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Campaign Group",
                  "description": "Campaign Group schema",
                  "required": [
                    "group_id",
                    "name"
                  ],
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "group_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "readOnly": true,
                          "example": 1
                        },
                        "name": {
                          "description": "Name of the campaign group",
                          "type": "string",
                          "example": "Your custom campaign group"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PUT 'api.egoiapp.com/campaign-groups/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"name\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaign-groups/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"name\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaign-groups/<integer>\")\n    .method(\"PUT\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"name\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PUT\", \"api.egoiapp.com/campaign-groups/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaign-groups/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PUT\",\n    CURLOPT_POSTFIELDS =>\"{\\\"name\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"name\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PUT\", \"/campaign-groups/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaign-groups/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Put.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"name\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "delete": {
        "tags": [
          "Campaign Groups"
        ],
        "summary": "Remove Campaign Group",
        "description": "Remove campaign group information given its ID",
        "operationId": "deleteCampaignGroup",
        "parameters": [
          {
            "name": "group_id",
            "in": "path",
            "description": "ID of the Campaign Group",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "readOnly": true,
              "example": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/campaign-groups/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/campaign-groups/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/campaign-groups/<integer>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/campaign-groups/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/campaign-groups/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/campaign-groups/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/campaign-groups/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/connectedsites": {
      "get": {
        "tags": [
          "Connected Sites"
        ],
        "summary": "Get all Connected Sites",
        "description": "Returns all domains usable in Connected Sites",
        "operationId": "getAllConnectedSites",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Domain Collection",
                  "description": "Collection of Connected Sites",
                  "properties": {
                    "total_items": {
                      "description": "Returned domains",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned domains",
                      "type": "array",
                      "items": {
                        "title": "Domain",
                        "description": "Domain schema",
                        "properties": {
                          "domain": {
                            "description": "Domain",
                            "type": "string",
                            "example": "e-goi.com"
                          },
                          "list_id": {
                            "description": "List id",
                            "type": "string",
                            "example": 1
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/connectedsites' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/connectedsites\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/connectedsites\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/connectedsites\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/connectedsites\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/connectedsites\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/connectedsites\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Connected Sites"
        ],
        "summary": "Creates a Connected Site",
        "description": "Creates a domain usable in Connected Sites",
        "operationId": "createConnectedSites",
        "requestBody": {
          "description": "Parameters for new Connected Site",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Domain",
                "description": "Domain schema",
                "properties": {
                  "domain": {
                    "description": "Domain",
                    "type": "string",
                    "example": "e-goi.com"
                  },
                  "list_id": {
                    "description": "List id",
                    "type": "string",
                    "example": 1
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Domain",
                  "description": "Domain detail schema",
                  "properties": {
                    "domain": {
                      "description": "Domain",
                      "type": "string",
                      "example": "e-goi.com"
                    },
                    "list_id": {
                      "description": "List id",
                      "type": "string",
                      "example": 1
                    },
                    "code": {
                      "description": "Connected Sites Tracking Code",
                      "type": "string",
                      "example": "<script type='text/javascript'>var x=y;</script>"
                    },
                    "features": {
                      "description": "Available features",
                      "type": "array",
                      "items": {
                        "title": "Domain",
                        "description": "Connected Sites Products",
                        "properties": {
                          "track_and_engage": {
                            "title": "Connected Sites General Track and Engage Product Detail",
                            "description": "Connected Sites General Track and Engage Product Detail",
                            "properties": {
                              "enabled": {
                                "description": "Enabled",
                                "type": "boolean"
                              }
                            },
                            "type": "object"
                          },
                          "on_site_message": {
                            "title": "Connected Sites General Form Product Detail",
                            "description": "Connected Sites General Form Product Detail",
                            "properties": {
                              "enabled": {
                                "description": "Enabled",
                                "type": "boolean"
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "title": "Connected Sites General Form Product Detail",
                                  "description": "Connected Sites General Product Detail",
                                  "properties": {
                                    "internal_name": {
                                      "description": "Internal Name",
                                      "type": "string",
                                      "example": "Form Internal Name"
                                    },
                                    "form_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "readOnly": true,
                                      "example": 1
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          },
                          "popup_forms": {
                            "title": "Connected Sites General Form Product Detail",
                            "description": "Connected Sites General Form Product Detail",
                            "properties": {
                              "enabled": {
                                "description": "Enabled",
                                "type": "boolean"
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "title": "Connected Sites General Form Product Detail",
                                  "description": "Connected Sites General Product Detail",
                                  "properties": {
                                    "internal_name": {
                                      "description": "Internal Name",
                                      "type": "string",
                                      "example": "Form Internal Name"
                                    },
                                    "form_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "readOnly": true,
                                      "example": 1
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          },
                          "whatsapp": {
                            "title": "Connected Sites General Form Product Detail",
                            "description": "Connected Sites General Form Product Detail",
                            "properties": {
                              "enabled": {
                                "description": "Enabled",
                                "type": "boolean"
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "title": "Connected Sites General Form Product Detail",
                                  "description": "Connected Sites General Product Detail",
                                  "properties": {
                                    "internal_name": {
                                      "description": "Internal Name",
                                      "type": "string",
                                      "example": "Form Internal Name"
                                    },
                                    "form_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "readOnly": true,
                                      "example": 1
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          },
                          "web_push": {
                            "title": "Connected Sites General App Product Detail",
                            "description": "Connected Sites General App Product Detail",
                            "properties": {
                              "enabled": {
                                "description": "Enabled",
                                "type": "boolean"
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "title": "Connected Sites General App Product Detail",
                                  "description": "Connected Sites General App Product Detail",
                                  "properties": {
                                    "internal_name": {
                                      "description": "Internal Name",
                                      "type": "string",
                                      "example": "Web push Internal Name"
                                    },
                                    "site_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "readOnly": true,
                                      "example": 1
                                    },
                                    "app_code": {
                                      "description": "App code",
                                      "type": "string",
                                      "readOnly": true,
                                      "example": "7b89dfsb9a6ab6fbsfbasbd6f6"
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          },
                          "embed_forms": {
                            "title": "Connected Sites Embed Form Product Detail",
                            "description": "Connected Sites Embed Form Product Detail",
                            "properties": {
                              "enabled": {
                                "description": "Enabled",
                                "type": "boolean"
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "title": "Connected Sites Embed Form Product Detail",
                                  "description": "Connected Sites Embed Form Product Detail",
                                  "properties": {
                                    "internal_name": {
                                      "description": "Internal Name",
                                      "type": "string",
                                      "example": "Form Internal Name"
                                    },
                                    "form_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "readOnly": true,
                                      "example": 1
                                    },
                                    "form_hash": {
                                      "description": "Form Hash",
                                      "type": "string",
                                      "example": "2Ve45e1bKZ"
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          },
                          "associated_catalogs": {
                            "title": "Connected Sites Associated Catalogs Product Detail",
                            "description": "Connected Sites Associated Catalogs Product Detail",
                            "properties": {
                              "items": {
                                "type": "array",
                                "items": {
                                  "title": "Connected Sites Associated Catalogs Product Detail",
                                  "description": "Connected Sites Associated Catalogs Product Detail",
                                  "properties": {
                                    "catalog_id": {
                                      "description": "Catalog ID",
                                      "type": "string",
                                      "example": "27"
                                    },
                                    "title": {
                                      "description": "Catalog Title",
                                      "type": "string",
                                      "example": "Catalog Title"
                                    },
                                    "default": {
                                      "description": "Catalog Default",
                                      "type": "boolean",
                                      "example": "false"
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/connectedsites' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"domain\":\"<string>\",\"list_id\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/connectedsites\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"domain\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"domain\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/connectedsites\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"domain\":\"<string>\",\"list_id\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/connectedsites\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/connectedsites\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"domain\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"domain\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/connectedsites\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/connectedsites\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"domain\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/connectedsites/{domain}": {
      "get": {
        "tags": [
          "Connected Sites"
        ],
        "summary": "Get a Connected Site",
        "description": "Returns domain info in Connected Sites",
        "operationId": "getConnectedSites",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "description": "Domain or phisical store alias are accepted",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Domain",
                  "description": "Domain detail schema",
                  "properties": {
                    "domain": {
                      "description": "Domain",
                      "type": "string",
                      "example": "e-goi.com"
                    },
                    "list_id": {
                      "description": "List id",
                      "type": "string",
                      "example": 1
                    },
                    "code": {
                      "description": "Connected Sites Tracking Code",
                      "type": "string",
                      "example": "<script type='text/javascript'>var x=y;</script>"
                    },
                    "features": {
                      "description": "Available features",
                      "type": "array",
                      "items": {
                        "title": "Domain",
                        "description": "Connected Sites Products",
                        "properties": {
                          "track_and_engage": {
                            "title": "Connected Sites General Track and Engage Product Detail",
                            "description": "Connected Sites General Track and Engage Product Detail",
                            "properties": {
                              "enabled": {
                                "description": "Enabled",
                                "type": "boolean"
                              }
                            },
                            "type": "object"
                          },
                          "on_site_message": {
                            "title": "Connected Sites General Form Product Detail",
                            "description": "Connected Sites General Form Product Detail",
                            "properties": {
                              "enabled": {
                                "description": "Enabled",
                                "type": "boolean"
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "title": "Connected Sites General Form Product Detail",
                                  "description": "Connected Sites General Product Detail",
                                  "properties": {
                                    "internal_name": {
                                      "description": "Internal Name",
                                      "type": "string",
                                      "example": "Form Internal Name"
                                    },
                                    "form_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "readOnly": true,
                                      "example": 1
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          },
                          "popup_forms": {
                            "title": "Connected Sites General Form Product Detail",
                            "description": "Connected Sites General Form Product Detail",
                            "properties": {
                              "enabled": {
                                "description": "Enabled",
                                "type": "boolean"
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "title": "Connected Sites General Form Product Detail",
                                  "description": "Connected Sites General Product Detail",
                                  "properties": {
                                    "internal_name": {
                                      "description": "Internal Name",
                                      "type": "string",
                                      "example": "Form Internal Name"
                                    },
                                    "form_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "readOnly": true,
                                      "example": 1
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          },
                          "whatsapp": {
                            "title": "Connected Sites General Form Product Detail",
                            "description": "Connected Sites General Form Product Detail",
                            "properties": {
                              "enabled": {
                                "description": "Enabled",
                                "type": "boolean"
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "title": "Connected Sites General Form Product Detail",
                                  "description": "Connected Sites General Product Detail",
                                  "properties": {
                                    "internal_name": {
                                      "description": "Internal Name",
                                      "type": "string",
                                      "example": "Form Internal Name"
                                    },
                                    "form_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "readOnly": true,
                                      "example": 1
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          },
                          "web_push": {
                            "title": "Connected Sites General App Product Detail",
                            "description": "Connected Sites General App Product Detail",
                            "properties": {
                              "enabled": {
                                "description": "Enabled",
                                "type": "boolean"
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "title": "Connected Sites General App Product Detail",
                                  "description": "Connected Sites General App Product Detail",
                                  "properties": {
                                    "internal_name": {
                                      "description": "Internal Name",
                                      "type": "string",
                                      "example": "Web push Internal Name"
                                    },
                                    "site_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "readOnly": true,
                                      "example": 1
                                    },
                                    "app_code": {
                                      "description": "App code",
                                      "type": "string",
                                      "readOnly": true,
                                      "example": "7b89dfsb9a6ab6fbsfbasbd6f6"
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          },
                          "embed_forms": {
                            "title": "Connected Sites Embed Form Product Detail",
                            "description": "Connected Sites Embed Form Product Detail",
                            "properties": {
                              "enabled": {
                                "description": "Enabled",
                                "type": "boolean"
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "title": "Connected Sites Embed Form Product Detail",
                                  "description": "Connected Sites Embed Form Product Detail",
                                  "properties": {
                                    "internal_name": {
                                      "description": "Internal Name",
                                      "type": "string",
                                      "example": "Form Internal Name"
                                    },
                                    "form_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "readOnly": true,
                                      "example": 1
                                    },
                                    "form_hash": {
                                      "description": "Form Hash",
                                      "type": "string",
                                      "example": "2Ve45e1bKZ"
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          },
                          "associated_catalogs": {
                            "title": "Connected Sites Associated Catalogs Product Detail",
                            "description": "Connected Sites Associated Catalogs Product Detail",
                            "properties": {
                              "items": {
                                "type": "array",
                                "items": {
                                  "title": "Connected Sites Associated Catalogs Product Detail",
                                  "description": "Connected Sites Associated Catalogs Product Detail",
                                  "properties": {
                                    "catalog_id": {
                                      "description": "Catalog ID",
                                      "type": "string",
                                      "example": "27"
                                    },
                                    "title": {
                                      "description": "Catalog Title",
                                      "type": "string",
                                      "example": "Catalog Title"
                                    },
                                    "default": {
                                      "description": "Catalog Default",
                                      "type": "boolean",
                                      "example": "false"
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/connectedsites/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/connectedsites/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/connectedsites/<string>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/connectedsites/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/connectedsites/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/connectedsites/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/connectedsites/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "delete": {
        "tags": [
          "Connected Sites"
        ],
        "summary": "Deletes a Connected Site",
        "description": "Deletes a domain from Connected Sites",
        "operationId": "deleteConnectedSites",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "description": "Domain or phisical store alias are accepted",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/connectedsites/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/connectedsites/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/connectedsites/<string>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/connectedsites/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/connectedsites/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/connectedsites/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/connectedsites/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts/actions/activate": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "summary": "Activate contacts",
        "description": "Activates a collection of contacts (does not apply to removed contacts)",
        "operationId": "actionActivateContacts",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the request",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Activate Contacts Request",
                "description": "Activate contacts request schema",
                "required": [
                  "type"
                ],
                "type": "object",
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "all": "#/components/schemas/ActivateContactsAll",
                    "contacts": "#/components/schemas/ActivateContactsMany"
                  }
                },
                "oneOf": [
                  {
                    "title": "Activate Contacts All",
                    "properties": {
                      "type": {
                        "description": "Activates the contacts in the whole list (excluding removed contacts)",
                        "type": "string",
                        "enum": [
                          "all"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Activate Contacts Many",
                    "properties": {
                      "type": {
                        "description": "Activates the provided contacts (excluding removed contacts)",
                        "type": "string",
                        "enum": [
                          "contacts"
                        ]
                      },
                      "contacts": {
                        "description": "Array of contact IDs to activate",
                        "type": "array",
                        "items": {
                          "title": "Contact ID",
                          "type": "string",
                          "pattern": "[a-fA-F\\d]{10}",
                          "example": "8f3a27ef26"
                        },
                        "minItems": 1,
                        "uniqueItems": true
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/contacts/actions/activate' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"type\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/actions/activate\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"type\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"type\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/actions/activate\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"type\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/contacts/actions/activate\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/actions/activate\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"type\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"type\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/contacts/actions/activate\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/actions/activate\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"type\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts/actions/attach-tag": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "summary": "Attach tag to contact",
        "description": "Attaches a tag or multiple tags to the provided contacts.",
        "operationId": "actionAttachTag",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Tag",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Attach Tag Request",
                "description": "Attach tag to contact request schema",
                "type": "object",
                "oneOf": [
                  {
                    "title": "Attach by Contacts",
                    "required": [
                      "contacts",
                      "tag_id"
                    ],
                    "properties": {
                      "tag_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      },
                      "contacts": {
                        "description": "Array of contact IDs to attach the tag",
                        "type": "array",
                        "items": {
                          "title": "Contact ID",
                          "type": "string",
                          "pattern": "[a-fA-F\\d]{10}",
                          "example": "8f3a27ef26"
                        },
                        "minItems": 1,
                        "uniqueItems": true
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Attach by Segment",
                    "required": [
                      "segment_id",
                      "tag_id"
                    ],
                    "properties": {
                      "tag_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      },
                      "segment_id": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Attach by Field Id",
                    "required": [
                      "field_id",
                      "contacts",
                      "tag_id"
                    ],
                    "properties": {
                      "tag_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      },
                      "field_id": {
                        "title": "FieldId",
                        "type": "string",
                        "pattern": "[a-zA-Z0-9_-]*"
                      },
                      "contacts": {
                        "description": "Array of contacts to attach the tag",
                        "type": "array",
                        "items": {
                          "type": "string",
                          "example": "example"
                        },
                        "minItems": 1,
                        "uniqueItems": true
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Attach Tags by Contacts",
                    "required": [
                      "contacts",
                      "tags"
                    ],
                    "properties": {
                      "tags": {
                        "description": "Array of tag IDs to attach to the contacts",
                        "type": "array",
                        "items": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "minItems": 1,
                        "uniqueItems": true
                      },
                      "contacts": {
                        "description": "Array of contact IDs to attach the tags",
                        "type": "array",
                        "items": {
                          "title": "Contact ID",
                          "type": "string",
                          "pattern": "[a-fA-F\\d]{10}",
                          "example": "8f3a27ef26"
                        },
                        "minItems": 1,
                        "uniqueItems": true
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/contacts/actions/attach-tag' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"contacts\":[\"<string>\"],\"tag_id\":\"<integer>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/actions/attach-tag\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"contacts\\\":[\\\"<string>\\\"],\\\"tag_id\\\":\\\"<integer>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"contacts\\\":[\\\"<string>\\\"],\\\"tag_id\\\":\\\"<integer>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/actions/attach-tag\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"contacts\":[\"<string>\"],\"tag_id\":\"<integer>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/contacts/actions/attach-tag\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/actions/attach-tag\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"contacts\\\":[\\\"<string>\\\"],\\\"tag_id\\\":\\\"<integer>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"contacts\\\":[\\\"<string>\\\"],\\\"tag_id\\\":\\\"<integer>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/contacts/actions/attach-tag\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/actions/attach-tag\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"contacts\\\":[\\\"<string>\\\"],\\\"tag_id\\\":\\\"<integer>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts/actions/deactivate": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "summary": "Deactivate contacts",
        "description": "Deactivates a collection of contacts (does not apply to removed contacts)",
        "operationId": "actionDeactivateContacts",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the request",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Deactivate Contacts Request",
                "description": "Deactivate contacts request schema",
                "required": [
                  "type"
                ],
                "type": "object",
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "all": "#/components/schemas/DeactivateContactsAll",
                    "contacts": "#/components/schemas/DeactivateContactsMany"
                  }
                },
                "oneOf": [
                  {
                    "title": "Deactivate Contacts All",
                    "properties": {
                      "type": {
                        "description": "Deactivates the contacts in the whole list (excluding removed contacts)",
                        "type": "string",
                        "enum": [
                          "all"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Deactivate Contacts Many",
                    "properties": {
                      "type": {
                        "description": "Deactivates the provided contacts (excluding removed contacts)",
                        "type": "string",
                        "enum": [
                          "contacts"
                        ]
                      },
                      "contacts": {
                        "description": "Array of contact IDs to activate",
                        "type": "array",
                        "items": {
                          "title": "Contact ID",
                          "type": "string",
                          "pattern": "[a-fA-F\\d]{10}",
                          "example": "8f3a27ef26"
                        },
                        "minItems": 1,
                        "uniqueItems": true
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/contacts/actions/deactivate' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"type\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/actions/deactivate\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"type\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"type\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/actions/deactivate\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"type\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/contacts/actions/deactivate\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/actions/deactivate\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"type\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"type\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/contacts/actions/deactivate\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/actions/deactivate\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"type\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts/actions/detach-tag": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "summary": "Detach tag to contact",
        "description": "Detach a tag to the provided contacts",
        "operationId": "actionDetachTag",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Tag",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Detach Tag Request",
                "description": "Detach tag to contact request schema",
                "required": [
                  "tag_id"
                ],
                "properties": {
                  "tag_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  }
                },
                "type": "object",
                "oneOf": [
                  {
                    "title": "Detach by Contacts",
                    "required": [
                      "contacts"
                    ],
                    "properties": {
                      "contacts": {
                        "description": "Array of contact IDs to dettach the tag",
                        "type": "array",
                        "items": {
                          "title": "Contact ID",
                          "type": "string",
                          "pattern": "[a-fA-F\\d]{10}",
                          "example": "8f3a27ef26"
                        },
                        "minItems": 1,
                        "uniqueItems": true
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Detach by Segment",
                    "required": [
                      "segment_id"
                    ],
                    "properties": {
                      "segment_id": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Detach by Field Id",
                    "required": [
                      "field_id",
                      "contacts"
                    ],
                    "properties": {
                      "field_id": {
                        "title": "FieldId",
                        "type": "string",
                        "pattern": "[a-zA-Z0-9_-]*"
                      },
                      "contacts": {
                        "description": "Array of contacts to detach the tag",
                        "type": "array",
                        "items": {
                          "type": "string",
                          "example": "example"
                        },
                        "minItems": 1,
                        "uniqueItems": true
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/contacts/actions/detach-tag' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"contacts\":[\"<string>\"]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/actions/detach-tag\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"contacts\\\":[\\\"<string>\\\"]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"contacts\\\":[\\\"<string>\\\"]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/actions/detach-tag\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"contacts\":[\"<string>\"]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/contacts/actions/detach-tag\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/actions/detach-tag\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"contacts\\\":[\\\"<string>\\\"]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"contacts\\\":[\\\"<string>\\\"]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/contacts/actions/detach-tag\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/actions/detach-tag\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"contacts\\\":[\\\"<string>\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts/actions/export": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "summary": "Exports a list of contacts",
        "description": "Exports a list of contacts to the desired callback url",
        "operationId": "actionExportContacts",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for export",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "ContactExportRequest",
                "description": "Contact export request schema",
                "required": [
                  "format"
                ],
                "properties": {
                  "format": {
                    "description": "File extension to export contacts",
                    "type": "string",
                    "enum": [
                      "csv",
                      "xml"
                    ]
                  },
                  "callback_url": {
                    "description": "Url to receive the callback <a href='/usecases/callbacks/#exports-a-list-of-contacts' target='_blank'>[Go to callback documentation]</a>",
                    "type": "string",
                    "format": "uri"
                  },
                  "segments": {
                    "description": "Array of segment IDs to filter contacts to export. ***Note:*** segments of type ***auto*** and\n ***tag*** are not yet supported but they are expected to be supported soon!",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "fields": {
                    "description": "Array of field IDs to be displayed in the exported file",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "callbacks": {
          "ExportContacts": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "title": "ExportContactsWebhookData",
                        "description": "Accepted response schema",
                        "properties": {
                          "file": {
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "type": "object"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/contacts/actions/export' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"format\":\"<string>\",\"callback_url\":\"<uri>\",\"segments\":[\"<string>\",\"<string>\"],\"fields\":[\"<string>\",\"<string>\"]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/actions/export\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"format\\\":\\\"<string>\\\",\\\"callback_url\\\":\\\"<uri>\\\",\\\"segments\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"format\\\":\\\"<string>\\\",\\\"callback_url\\\":\\\"<uri>\\\",\\\"segments\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/actions/export\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"format\":\"<string>\",\"callback_url\":\"<uri>\",\"segments\":[\"<string>\",\"<string>\"],\"fields\":[\"<string>\",\"<string>\"]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/contacts/actions/export\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/actions/export\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"format\\\":\\\"<string>\\\",\\\"callback_url\\\":\\\"<uri>\\\",\\\"segments\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"format\\\":\\\"<string>\\\",\\\"callback_url\\\":\\\"<uri>\\\",\\\"segments\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/contacts/actions/export\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/actions/export\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"format\\\":\\\"<string>\\\",\\\"callback_url\\\":\\\"<uri>\\\",\\\"segments\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts/actions/forget": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "summary": "Forget contacts",
        "description": "Forgets a list of contacts",
        "operationId": "actionForgetContacts",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the action",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "ContactForgetRequest",
                "description": "Contact forget request schema",
                "required": [
                  "contacts"
                ],
                "properties": {
                  "contacts": {
                    "description": "Array of contact IDs to forget (Max: 1000)",
                    "type": "array",
                    "items": {
                      "title": "Contact ID",
                      "type": "string",
                      "pattern": "[a-fA-F\\d]{10}",
                      "example": "8f3a27ef26"
                    },
                    "minItems": 1,
                    "uniqueItems": true
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/contacts/actions/forget' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"contacts\":[\"<string>\"]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/actions/forget\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"contacts\\\":[\\\"<string>\\\"]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"contacts\\\":[\\\"<string>\\\"]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/actions/forget\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"contacts\":[\"<string>\"]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/contacts/actions/forget\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/actions/forget\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"contacts\\\":[\\\"<string>\\\"]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"contacts\\\":[\\\"<string>\\\"]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/contacts/actions/forget\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/actions/forget\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"contacts\\\":[\\\"<string>\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts/actions/import-bulk": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "summary": "Import collection of contacts",
        "description": "Imports a collection of contacts </br>\n     **DISCLAIMER:** stream limits applied. [view here](#section/Stream-Limits 'Stream Limits')<br> ***Notes:***<br>Minimum of 2 contacts to use this method. [Use Create new contact method instead](#operation/createContact 'Create new contact')<br>It defaults to ***Bulk object*** import.",
        "operationId": "actionImportBulk",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the bulk import",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Contact import Bulk",
                "description": "Contact import request schema",
                "type": "object",
                "oneOf": [
                  {
                    "title": "Bulk Object",
                    "description": "Contact import bulk request schema",
                    "required": [
                      "mode",
                      "compare_field",
                      "contacts"
                    ],
                    "properties": {
                      "mode": {
                        "description": "Add new contacts only ('add'), add and replace existing ones ('update') or only replace existing ones ('update_only')",
                        "type": "string",
                        "enum": [
                          "add",
                          "update",
                          "update_only"
                        ]
                      },
                      "compare_field": {
                        "description": "Field ID which will be mapped for comparison to prevent duplicates. Field must be set as unique in E-goi.",
                        "type": "string",
                        "example": "email"
                      },
                      "contacts": {
                        "description": "Array of contacts to import",
                        "type": "array",
                        "items": {
                          "title": "ContactBulk",
                          "description": "Contact schema",
                          "type": "object",
                          "allOf": [
                            {
                              "title": "Contact",
                              "description": "Contact Base and Extra schema",
                              "type": "object",
                              "allOf": [
                                {
                                  "title": "Contact",
                                  "description": "Contact base",
                                  "properties": {
                                    "base": {
                                      "description": "Contact base fields",
                                      "type": "object",
                                      "allOf": [
                                        {
                                          "properties": {
                                            "contact_id": {
                                              "title": "Contact ID",
                                              "type": "string",
                                              "pattern": "[a-fA-F\\d]{10}",
                                              "readOnly": true,
                                              "example": "8f3a27ef26"
                                            },
                                            "status": {
                                              "description": "Status of the contact",
                                              "type": "string",
                                              "default": "active",
                                              "enum": [
                                                "active",
                                                "inactive",
                                                "removed",
                                                "unconfirmed"
                                              ]
                                            },
                                            "consent": {
                                              "description": "Contact consent",
                                              "type": "string",
                                              "default": "consent",
                                              "enum": [
                                                "any",
                                                "consent",
                                                "contract",
                                                "legitimate_interest",
                                                "none",
                                                "protect_vital_interests",
                                                "public_interests",
                                                "required_by_law",
                                                "withdrawn"
                                              ],
                                              "readOnly": true
                                            },
                                            "consent_date": {
                                              "description": "Date and hour of the contact consent",
                                              "type": "string",
                                              "format": "date-time",
                                              "readOnly": true,
                                              "example": "2019-01-01 00:00:00"
                                            },
                                            "subscription_method": {
                                              "description": "Contact subscription method",
                                              "type": "string",
                                              "enum": [
                                                "manual",
                                                "form",
                                                "imported",
                                                "referral",
                                                "api"
                                              ],
                                              "readOnly": true
                                            },
                                            "subscription_date": {
                                              "description": "Date and hour of the contact subscription",
                                              "type": "string",
                                              "format": "date-time",
                                              "readOnly": true,
                                              "example": "2019-01-01 00:00:00"
                                            },
                                            "subscription_form": {
                                              "description": "Contact subscription form",
                                              "type": "integer",
                                              "minimum": 0,
                                              "readOnly": true
                                            },
                                            "unsubscription_method": {
                                              "description": "Contact unsubscription method",
                                              "type": "string",
                                              "enum": [
                                                "manual",
                                                "form",
                                                "unsubscribe_link",
                                                "bounce",
                                                "api",
                                                ""
                                              ],
                                              "readOnly": true
                                            },
                                            "unsubscription_reason": {
                                              "description": "Contact unsubscription reason",
                                              "type": "string",
                                              "enum": [
                                                "not_interested",
                                                "lack_of_time",
                                                "email_address_change",
                                                "spam",
                                                "other",
                                                ""
                                              ],
                                              "readOnly": true
                                            },
                                            "unsubscription_observation": {
                                              "description": "Contact unsubscription observation",
                                              "type": "string",
                                              "readOnly": true,
                                              "example": ""
                                            },
                                            "unsubscription_date": {
                                              "description": "Contact unsubscription date",
                                              "type": "string",
                                              "format": "date-time",
                                              "readOnly": true,
                                              "example": "0000-00-00 00:00:00"
                                            },
                                            "change_date": {
                                              "description": "Last modification date of the contact",
                                              "type": "string",
                                              "format": "date",
                                              "readOnly": true,
                                              "example": "0000-00-00 00:00:00"
                                            },
                                            "first_name": {
                                              "description": "First name of the contact",
                                              "type": "string",
                                              "example": "John"
                                            },
                                            "last_name": {
                                              "description": "Last name of the contact",
                                              "type": "string",
                                              "example": "Doe"
                                            },
                                            "birth_date": {
                                              "description": "Birth date of the contact",
                                              "type": "string",
                                              "format": "date",
                                              "example": "1975-01-10"
                                            },
                                            "language": {
                                              "title": "language",
                                              "description": "Current language",
                                              "type": "string",
                                              "default": "en",
                                              "enum": [
                                                "en",
                                                "pt",
                                                "br",
                                                "es",
                                                "de",
                                                "hu",
                                                "fr"
                                              ]
                                            },
                                            "email": {
                                              "description": "Email of the contact",
                                              "type": "string",
                                              "example": "example@e-goi.com"
                                            },
                                            "email_status": {
                                              "description": "Email channel status",
                                              "type": "string",
                                              "default": "active",
                                              "enum": [
                                                "active",
                                                "inactive"
                                              ],
                                              "readOnly": true
                                            },
                                            "cellphone": {
                                              "description": "Cellphone of the contact",
                                              "type": "string",
                                              "example": "351-300404336"
                                            },
                                            "cellphone_status": {
                                              "description": "Cellphone channel status",
                                              "type": "string",
                                              "default": "active",
                                              "enum": [
                                                "active",
                                                "inactive"
                                              ],
                                              "readOnly": true
                                            },
                                            "phone": {
                                              "description": "Phone of the contact",
                                              "type": "string",
                                              "example": "351-300404336"
                                            },
                                            "phone_status": {
                                              "description": "Phone channel status",
                                              "type": "string",
                                              "default": "active",
                                              "enum": [
                                                "active",
                                                "inactive"
                                              ],
                                              "readOnly": true
                                            },
                                            "push_token_android": {
                                              "description": "Android push token of the contact",
                                              "type": "array",
                                              "items": {
                                                "properties": {
                                                  "app_id": {
                                                    "title": "Push App Id",
                                                    "type": "string",
                                                    "pattern": "[a-zA-Z0-9_-]*"
                                                  },
                                                  "token": {
                                                    "description": "Android push app ID",
                                                    "type": "string"
                                                  }
                                                },
                                                "type": "object"
                                              }
                                            },
                                            "push_token_ios": {
                                              "description": "IOS push token of the contact",
                                              "type": "array",
                                              "items": {
                                                "properties": {
                                                  "app_id": {
                                                    "title": "Push App Id",
                                                    "type": "string",
                                                    "pattern": "[a-zA-Z0-9_-]*"
                                                  },
                                                  "token": {
                                                    "description": "Ios push app ID",
                                                    "type": "string"
                                                  }
                                                },
                                                "type": "object"
                                              }
                                            }
                                          },
                                          "type": "object"
                                        }
                                      ]
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "Contact",
                                  "description": "Contact Extra schema",
                                  "properties": {
                                    "extra": {
                                      "description": "Array of the contact's extra fields",
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "oneOf": [
                                          {
                                            "title": "ContactExtraFieldDate",
                                            "properties": {
                                              "field_id": {
                                                "title": "ID",
                                                "type": "integer",
                                                "minimum": 1,
                                                "example": 1
                                              },
                                              "format": {
                                                "description": "Extra field format",
                                                "type": "string",
                                                "enum": [
                                                  "date"
                                                ],
                                                "readOnly": true
                                              },
                                              "value": {
                                                "description": "Extra field value",
                                                "type": "string",
                                                "format": "date",
                                                "example": "2019-01-01"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          {
                                            "title": "ContactExtraFieldText",
                                            "properties": {
                                              "field_id": {
                                                "title": "ID",
                                                "type": "integer",
                                                "minimum": 1,
                                                "example": 1
                                              },
                                              "format": {
                                                "description": "Extra field format",
                                                "type": "string",
                                                "enum": [
                                                  "text"
                                                ],
                                                "readOnly": true
                                              },
                                              "value": {
                                                "description": "Extra field value",
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          {
                                            "title": "ContactExtraFieldCellphone",
                                            "properties": {
                                              "field_id": {
                                                "title": "ID",
                                                "type": "integer",
                                                "minimum": 1,
                                                "example": 1
                                              },
                                              "format": {
                                                "description": "Extra field format",
                                                "type": "string",
                                                "enum": [
                                                  "cellphone"
                                                ],
                                                "readOnly": true
                                              },
                                              "value": {
                                                "description": "Extra field value",
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          {
                                            "title": "ContactExtraFieldPhone",
                                            "properties": {
                                              "field_id": {
                                                "title": "ID",
                                                "type": "integer",
                                                "minimum": 1,
                                                "example": 1
                                              },
                                              "format": {
                                                "description": "Extra field format",
                                                "type": "string",
                                                "enum": [
                                                  "phone"
                                                ],
                                                "readOnly": true
                                              },
                                              "value": {
                                                "description": "Extra field value",
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          {
                                            "title": "ContactExtraFieldNumber",
                                            "properties": {
                                              "field_id": {
                                                "title": "ID",
                                                "type": "integer",
                                                "minimum": 1,
                                                "example": 1
                                              },
                                              "format": {
                                                "description": "Extra field format",
                                                "type": "string",
                                                "enum": [
                                                  "number"
                                                ],
                                                "readOnly": true
                                              },
                                              "value": {
                                                "description": "Extra field value",
                                                "type": "string",
                                                "example": "100"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          {
                                            "title": "ContactExtraFieldEmail",
                                            "properties": {
                                              "field_id": {
                                                "title": "ID",
                                                "type": "integer",
                                                "minimum": 1,
                                                "example": 1
                                              },
                                              "format": {
                                                "description": "Extra field format",
                                                "type": "string",
                                                "enum": [
                                                  "email"
                                                ],
                                                "readOnly": true
                                              },
                                              "value": {
                                                "description": "Extra field value",
                                                "type": "string"
                                              },
                                              "status": {
                                                "description": "Extra field status",
                                                "type": "string",
                                                "enum": [
                                                  "active",
                                                  "inactive"
                                                ]
                                              }
                                            },
                                            "type": "object"
                                          },
                                          {
                                            "title": "ContactExtraFieldOptions",
                                            "properties": {
                                              "field_id": {
                                                "title": "ID",
                                                "type": "integer",
                                                "minimum": 1,
                                                "example": 1
                                              },
                                              "format": {
                                                "description": "Extra field format",
                                                "type": "string",
                                                "enum": [
                                                  "options"
                                                ],
                                                "readOnly": true
                                              },
                                              "value": {
                                                "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                                "type": "array",
                                                "items": {
                                                  "type": "integer"
                                                },
                                                "example": [
                                                  1,
                                                  2
                                                ]
                                              }
                                            },
                                            "type": "object"
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "Contact",
                                  "description": "Contact Utm",
                                  "properties": {
                                    "utm": {
                                      "description": "Contact Urchin Tracking Module (utm) fields",
                                      "type": "object",
                                      "allOf": [
                                        {
                                          "properties": {
                                            "utm_source": {
                                              "description": "Utm source value",
                                              "type": "string",
                                              "example": "source"
                                            },
                                            "utm_medium": {
                                              "description": "Utm medium value",
                                              "type": "string",
                                              "example": "medium"
                                            },
                                            "utm_campaign": {
                                              "description": "Utm campaign value",
                                              "type": "string",
                                              "example": "campaign"
                                            },
                                            "utm_content": {
                                              "description": "Utm content value",
                                              "type": "string",
                                              "example": "content"
                                            },
                                            "utm_term": {
                                              "description": "Utm source value",
                                              "type": "string",
                                              "example": "term"
                                            }
                                          },
                                          "type": "object"
                                        }
                                      ]
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "Contact",
                                  "description": "Contact Referrer",
                                  "properties": {
                                    "referrer": {
                                      "description": "Contact referrer fields",
                                      "type": "object",
                                      "allOf": [
                                        {
                                          "properties": {
                                            "referrer": {
                                              "description": "Referrer value",
                                              "type": "string",
                                              "example": "referrer"
                                            }
                                          },
                                          "type": "object"
                                        }
                                      ]
                                    }
                                  },
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "properties": {
                                "tags": {
                                  "description": "Array of tags for this contact",
                                  "type": "array",
                                  "items": {
                                    "type": "integer"
                                  },
                                  "readOnly": true,
                                  "example": [
                                    1,
                                    2
                                  ]
                                }
                              },
                              "type": "object"
                            }
                          ]
                        }
                      },
                      "force_empty": {
                        "description": "If 'true' accepts empty values and erases those fields",
                        "type": "boolean",
                        "default": false
                      },
                      "notify": {
                        "description": "Array of IDs of the users to notify",
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      },
                      "callback_url": {
                        "description": "Url to receive the report <a href='/usecases/callbacks/#import-collection-of-contacts' target='_blank'>[Go to callback documentation]</a>",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "File",
                    "description": "Contact import bulk request schema",
                    "required": [
                      "mode",
                      "compare_field",
                      "file"
                    ],
                    "properties": {
                      "mode": {
                        "description": "Add new contacts only ('add'), add and replace existing ones ('update') or only replace existing ones ('update_only')",
                        "type": "string",
                        "enum": [
                          "add",
                          "update",
                          "update_only"
                        ]
                      },
                      "compare_field": {
                        "description": "Field ID which will be mapped for comparison to prevent duplicates. Field must be set as unique in E-goi.",
                        "type": "string",
                        "example": "email"
                      },
                      "file": {
                        "description": "File to import",
                        "type": "object",
                        "allOf": [
                          {
                            "title": "ContactBulkFile",
                            "description": "Contact File schema",
                            "type": "object",
                            "allOf": [
                              {
                                "required": [
                                  "url"
                                ],
                                "properties": {
                                  "url": {
                                    "description": "Url from wich we will download the csv file:\n *       Note: Only 'http' or 'https' protocols are supported",
                                    "type": "string",
                                    "example": "https://e-goi.com/file.csv"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "required": [
                                  "field_mapping"
                                ],
                                "properties": {
                                  "field_mapping": {
                                    "description": "Contact Import File Field Mapping",
                                    "type": "array",
                                    "items": {
                                      "title": "contactFieldMappingFileBulkSchema",
                                      "required": [
                                        "field_id",
                                        "column_name"
                                      ],
                                      "properties": {
                                        "field_id": {
                                          "title": "FieldId",
                                          "type": "string",
                                          "pattern": "[a-zA-Z0-9_-]*"
                                        },
                                        "column_name": {
                                          "description": "The column name as defined in your file",
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "separator": {
                                    "description": "Csv column separator (defaults to \")",
                                    "type": "string",
                                    "example": "\""
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "delimiter": {
                                    "description": "Csv column delimiter (defaults to ,)",
                                    "type": "string",
                                    "example": ","
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          }
                        ]
                      },
                      "force_empty": {
                        "description": "If 'true' accepts empty values and erases those fields",
                        "type": "boolean",
                        "default": false
                      },
                      "notify": {
                        "description": "Array of IDs of the users to notify",
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      },
                      "callback_url": {
                        "description": "Url to receive the report <a href='/usecases/callbacks/#import-collection-of-contacts' target='_blank'>[Go to callback documentation]</a>",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "413": {
            "description": "Request Entity Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Entity Too Large",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Entity Too Large"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 314
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is refusing to process a request because the request entity is larger than the server is willing or able to process."
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "callbacks": {
          "ImportBulk": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "title": "ImportContactsWebhookData",
                        "description": "Accepted response schema",
                        "properties": {
                          "imported": {
                            "type": "integer",
                            "minimum": 0,
                            "example": 100
                          },
                          "updated": {
                            "type": "integer",
                            "minimum": 0,
                            "example": 10
                          },
                          "ignored": {
                            "type": "integer",
                            "minimum": 0,
                            "example": 5
                          },
                          "invalid": {
                            "type": "integer",
                            "minimum": 0,
                            "example": 1
                          },
                          "file": {
                            "type": "string",
                            "example": "example.com"
                          }
                        },
                        "type": "object"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/contacts/actions/import-bulk' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"mode\":\"<string>\",\"compare_field\":\"<string>\",\"contacts\":[{\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"cellphone\":\"<string>\",\"phone\":\"<string>\",\"push_token_android\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}],\"push_token_ios\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}]},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}],\"utm\":{\"utm_source\":\"<string>\",\"utm_medium\":\"<string>\",\"utm_campaign\":\"<string>\",\"utm_content\":\"<string>\",\"utm_term\":\"<string>\"},\"referrer\":{\"referrer\":\"<string>\"}},{\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"cellphone\":\"<string>\",\"phone\":\"<string>\",\"push_token_android\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}],\"push_token_ios\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}]},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}],\"utm\":{\"utm_source\":\"<string>\",\"utm_medium\":\"<string>\",\"utm_campaign\":\"<string>\",\"utm_content\":\"<string>\",\"utm_term\":\"<string>\"},\"referrer\":{\"referrer\":\"<string>\"}}],\"force_empty\":false,\"notify\":[\"<integer>\",\"<integer>\"],\"callback_url\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/actions/import-bulk\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"mode\\\":\\\"<string>\\\",\\\"compare_field\\\":\\\"<string>\\\",\\\"contacts\\\":[{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"}},{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"}}],\\\"force_empty\\\":false,\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"callback_url\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"mode\\\":\\\"<string>\\\",\\\"compare_field\\\":\\\"<string>\\\",\\\"contacts\\\":[{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"}},{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"}}],\\\"force_empty\\\":false,\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"callback_url\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/actions/import-bulk\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"mode\":\"<string>\",\"compare_field\":\"<string>\",\"contacts\":[{\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"cellphone\":\"<string>\",\"phone\":\"<string>\",\"push_token_android\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}],\"push_token_ios\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}]},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}],\"utm\":{\"utm_source\":\"<string>\",\"utm_medium\":\"<string>\",\"utm_campaign\":\"<string>\",\"utm_content\":\"<string>\",\"utm_term\":\"<string>\"},\"referrer\":{\"referrer\":\"<string>\"}},{\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"cellphone\":\"<string>\",\"phone\":\"<string>\",\"push_token_android\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}],\"push_token_ios\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}]},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}],\"utm\":{\"utm_source\":\"<string>\",\"utm_medium\":\"<string>\",\"utm_campaign\":\"<string>\",\"utm_content\":\"<string>\",\"utm_term\":\"<string>\"},\"referrer\":{\"referrer\":\"<string>\"}}],\"force_empty\":false,\"notify\":[\"<integer>\",\"<integer>\"],\"callback_url\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/contacts/actions/import-bulk\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/actions/import-bulk\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"mode\\\":\\\"<string>\\\",\\\"compare_field\\\":\\\"<string>\\\",\\\"contacts\\\":[{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"}},{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"}}],\\\"force_empty\\\":false,\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"callback_url\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"mode\\\":\\\"<string>\\\",\\\"compare_field\\\":\\\"<string>\\\",\\\"contacts\\\":[{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"}},{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"}}],\\\"force_empty\\\":false,\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"callback_url\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/contacts/actions/import-bulk\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/actions/import-bulk\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"mode\\\":\\\"<string>\\\",\\\"compare_field\\\":\\\"<string>\\\",\\\"contacts\\\":[{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"}},{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"}}],\\\"force_empty\\\":false,\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"callback_url\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts/actions/unsubscribe": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "summary": "Unsubscribes contacts",
        "description": "Unsubscribes contacts",
        "operationId": "actionUnsubscribeContact",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the contact to unsubscribe",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Remove Request",
                "description": "Remove contact request schema",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "allOf": [
                        {
                          "properties": {
                            "contact_id": {
                              "title": "Contact ID",
                              "type": "string",
                              "pattern": "[a-fA-F\\d]{10}",
                              "example": "8f3a27ef26"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "unsubscription Object",
                          "properties": {
                            "unsubscription_method": {
                              "description": "Unsubcription Method",
                              "type": "string",
                              "enum": [
                                "manual",
                                "form",
                                "unsubscribe_link",
                                "bounce",
                                "api"
                              ]
                            },
                            "unsubscription_reason": {
                              "description": "Unsubcription Reason",
                              "type": "string",
                              "enum": [
                                "not_interested",
                                "lack_of_time",
                                "email_address_change",
                                "spam",
                                "other"
                              ]
                            },
                            "unsubscription_observation": {
                              "description": "Unsubcription Observation",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      ]
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Remove Response",
                  "description": "Remove contact response schema",
                  "properties": {
                    "success": {
                      "type": "array",
                      "items": {
                        "title": "Contact ID",
                        "type": "string",
                        "pattern": "[a-fA-F\\d]{10}",
                        "readOnly": true,
                        "example": "8f3a27ef26"
                      }
                    },
                    "errors": {
                      "properties": {
                        "invalid_unsubscription_reason": {
                          "type": "array",
                          "items": {
                            "title": "Contact ID",
                            "type": "string",
                            "pattern": "[a-fA-F\\d]{10}",
                            "readOnly": true,
                            "example": "8f3a27ef26"
                          },
                          "example": [
                            "cbb0077994",
                            "be9715c108",
                            "649a15f483"
                          ]
                        },
                        "invalid_unsubscription_method": {
                          "type": "array",
                          "items": {
                            "title": "Contact ID",
                            "type": "string",
                            "pattern": "[a-fA-F\\d]{10}",
                            "readOnly": true,
                            "example": "8f3a27ef26"
                          },
                          "example": [
                            "732711d708",
                            "ba5b2b14aa"
                          ]
                        },
                        "invalid_data_type": {
                          "type": "array",
                          "items": {
                            "title": "Contact ID",
                            "type": "string",
                            "pattern": "[a-fA-F\\d]{10}",
                            "readOnly": true,
                            "example": "8f3a27ef26"
                          },
                          "example": [
                            "44fc463242"
                          ]
                        },
                        "contact_not_in_list": {
                          "type": "array",
                          "items": {
                            "title": "Contact ID",
                            "type": "string",
                            "pattern": "[a-fA-F\\d]{10}",
                            "readOnly": true,
                            "example": "8f3a27ef26"
                          },
                          "example": [
                            "a47a947e2b"
                          ]
                        },
                        "contact_already_removed": {
                          "type": "array",
                          "items": {
                            "title": "Contact ID",
                            "type": "string",
                            "pattern": "[a-fA-F\\d]{10}",
                            "readOnly": true,
                            "example": "8f3a27ef26"
                          },
                          "example": [
                            "a41a247e21"
                          ]
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/contacts/actions/unsubscribe' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"data\":[{\"contact_id\":\"<string>\",\"unsubscription_method\":\"<string>\",\"unsubscription_reason\":\"<string>\",\"unsubscription_observation\":\"<string>\"},{\"contact_id\":\"<string>\",\"unsubscription_method\":\"<string>\",\"unsubscription_reason\":\"<string>\",\"unsubscription_observation\":\"<string>\"}]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/actions/unsubscribe\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"data\\\":[{\\\"contact_id\\\":\\\"<string>\\\",\\\"unsubscription_method\\\":\\\"<string>\\\",\\\"unsubscription_reason\\\":\\\"<string>\\\",\\\"unsubscription_observation\\\":\\\"<string>\\\"},{\\\"contact_id\\\":\\\"<string>\\\",\\\"unsubscription_method\\\":\\\"<string>\\\",\\\"unsubscription_reason\\\":\\\"<string>\\\",\\\"unsubscription_observation\\\":\\\"<string>\\\"}]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"data\\\":[{\\\"contact_id\\\":\\\"<string>\\\",\\\"unsubscription_method\\\":\\\"<string>\\\",\\\"unsubscription_reason\\\":\\\"<string>\\\",\\\"unsubscription_observation\\\":\\\"<string>\\\"},{\\\"contact_id\\\":\\\"<string>\\\",\\\"unsubscription_method\\\":\\\"<string>\\\",\\\"unsubscription_reason\\\":\\\"<string>\\\",\\\"unsubscription_observation\\\":\\\"<string>\\\"}]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/actions/unsubscribe\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"data\":[{\"contact_id\":\"<string>\",\"unsubscription_method\":\"<string>\",\"unsubscription_reason\":\"<string>\",\"unsubscription_observation\":\"<string>\"},{\"contact_id\":\"<string>\",\"unsubscription_method\":\"<string>\",\"unsubscription_reason\":\"<string>\",\"unsubscription_observation\":\"<string>\"}]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/contacts/actions/unsubscribe\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/actions/unsubscribe\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"data\\\":[{\\\"contact_id\\\":\\\"<string>\\\",\\\"unsubscription_method\\\":\\\"<string>\\\",\\\"unsubscription_reason\\\":\\\"<string>\\\",\\\"unsubscription_observation\\\":\\\"<string>\\\"},{\\\"contact_id\\\":\\\"<string>\\\",\\\"unsubscription_method\\\":\\\"<string>\\\",\\\"unsubscription_reason\\\":\\\"<string>\\\",\\\"unsubscription_observation\\\":\\\"<string>\\\"}]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"data\\\":[{\\\"contact_id\\\":\\\"<string>\\\",\\\"unsubscription_method\\\":\\\"<string>\\\",\\\"unsubscription_reason\\\":\\\"<string>\\\",\\\"unsubscription_observation\\\":\\\"<string>\\\"},{\\\"contact_id\\\":\\\"<string>\\\",\\\"unsubscription_method\\\":\\\"<string>\\\",\\\"unsubscription_reason\\\":\\\"<string>\\\",\\\"unsubscription_observation\\\":\\\"<string>\\\"}]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/contacts/actions/unsubscribe\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/actions/unsubscribe\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"data\\\":[{\\\"contact_id\\\":\\\"<string>\\\",\\\"unsubscription_method\\\":\\\"<string>\\\",\\\"unsubscription_reason\\\":\\\"<string>\\\",\\\"unsubscription_observation\\\":\\\"<string>\\\"},{\\\"contact_id\\\":\\\"<string>\\\",\\\"unsubscription_method\\\":\\\"<string>\\\",\\\"unsubscription_reason\\\":\\\"<string>\\\",\\\"unsubscription_observation\\\":\\\"<string>\\\"}]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts/actions/start-automation": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "summary": "Start automation",
        "description": "Start automation to the provided contacts",
        "operationId": "actionStartAutomation",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the operation to start automation",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Start Automation",
                "description": "Start automation to the provided contacts",
                "required": [
                  "automation_id",
                  "action_id",
                  "contacts"
                ],
                "properties": {
                  "automation_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "action_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "contacts": {
                    "description": "Array of contact IDs to start automation",
                    "type": "array",
                    "items": {
                      "title": "Contact ID",
                      "type": "string",
                      "pattern": "[a-fA-F\\d]{10}",
                      "example": "8f3a27ef26"
                    }
                  }
                },
                "type": "object",
                "example": {
                  "automation_id": 1,
                  "action_id": 1,
                  "contacts": [
                    "8f3a27ef26",
                    "aa3b21ef1a",
                    "7a5b21ca17"
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Start Automation",
                  "description": "Start automation to the provided contacts",
                  "properties": {
                    "automation_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "action_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "success": {
                      "description": "Array of contacts where the automation was successfully started",
                      "type": "array",
                      "items": {
                        "title": "Contact ID",
                        "type": "string",
                        "pattern": "[a-fA-F\\d]{10}",
                        "readOnly": true,
                        "example": "8f3a27ef26"
                      }
                    },
                    "error": {
                      "description": "Array of contacts where the automation was not successfully started",
                      "type": "array",
                      "items": {
                        "title": "Contact ID",
                        "type": "string",
                        "pattern": "[a-fA-F\\d]{10}",
                        "readOnly": true,
                        "example": "8f3a27ef26"
                      }
                    }
                  },
                  "type": "object",
                  "example": {
                    "automation_id": 1,
                    "action_id": 1,
                    "success": [
                      "8f3a27ef26",
                      "7a5b21ca17"
                    ],
                    "error": {
                      "already_in_queue": [
                        "aa3b21ef1a"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/contacts/actions/start-automation' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"automation_id\":\"<integer>\",\"action_id\":\"<integer>\",\"contacts\":[\"<string>\",\"<string>\"]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/actions/start-automation\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"automation_id\\\":\\\"<integer>\\\",\\\"action_id\\\":\\\"<integer>\\\",\\\"contacts\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"automation_id\\\":\\\"<integer>\\\",\\\"action_id\\\":\\\"<integer>\\\",\\\"contacts\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/actions/start-automation\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"automation_id\":\"<integer>\",\"action_id\":\"<integer>\",\"contacts\":[\"<string>\",\"<string>\"]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/contacts/actions/start-automation\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/actions/start-automation\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"automation_id\\\":\\\"<integer>\\\",\\\"action_id\\\":\\\"<integer>\\\",\\\"contacts\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"automation_id\\\":\\\"<integer>\\\",\\\"action_id\\\":\\\"<integer>\\\",\\\"contacts\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/contacts/actions/start-automation\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/actions/start-automation\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"automation_id\\\":\\\"<integer>\\\",\\\"action_id\\\":\\\"<integer>\\\",\\\"contacts\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts/actions/update": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "summary": "Updates contacts",
        "description": "Updates a collection of contacts (does not apply to removed contacts).\n\n    Note that all contacts will be updated with the same values and the existance of unique fields in the payload will trigger a 409 Conflict response.",
        "operationId": "actionUpdateContacts",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the request",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Updates contacts Request",
                "description": "Updates contacts request schema",
                "type": "object",
                "allOf": [
                  {
                    "title": "Updates contacts Request",
                    "description": "Updates contacts request schema",
                    "type": "object",
                    "oneOf": [
                      {
                        "title": "Update by Contact",
                        "required": [
                          "contacts",
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Updates the provided contacts (excluding removed contacts)",
                            "type": "string",
                            "enum": [
                              "contacts"
                            ]
                          },
                          "contacts": {
                            "title": "Update Contacts Request",
                            "description": "Array of contact IDs to update",
                            "type": "array",
                            "items": {
                              "title": "Contact ID",
                              "type": "string",
                              "pattern": "[a-fA-F\\d]{10}",
                              "example": "8f3a27ef26"
                            },
                            "minItems": 1,
                            "uniqueItems": true
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Update by Segment",
                        "description": "Segment ID to update contacts",
                        "required": [
                          "segment_id",
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Updates contacts in the selected segment (excluding removed contacts)",
                            "type": "string",
                            "enum": [
                              "segment"
                            ]
                          },
                          "segment_id": {
                            "title": "Update Contacts Channel Field Request by segment",
                            "description": "Segment ID to update channel field",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Update for All",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Updates the contacts in the whole list (excluding removed contacts)",
                            "type": "string",
                            "enum": [
                              "all"
                            ]
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "title": "Contact",
                    "description": "Contact base",
                    "properties": {
                      "base": {
                        "description": "Contact base fields",
                        "properties": {
                          "contact_id": {
                            "title": "Contact ID",
                            "type": "string",
                            "pattern": "[a-fA-F\\d]{10}",
                            "readOnly": true,
                            "example": "8f3a27ef26"
                          },
                          "status": {
                            "description": "Status of the contact",
                            "type": "string",
                            "default": "active",
                            "enum": [
                              "active",
                              "inactive",
                              "removed",
                              "unconfirmed"
                            ]
                          },
                          "consent": {
                            "description": "Contact consent",
                            "type": "string",
                            "enum": [
                              "any",
                              "consent",
                              "contract",
                              "legitimate_interest",
                              "none",
                              "protect_vital_interests",
                              "public_interests",
                              "required_by_law",
                              "withdrawn"
                            ]
                          },
                          "first_name": {
                            "description": "First name of the contact",
                            "type": "string",
                            "example": "John"
                          },
                          "last_name": {
                            "description": "Last name of the contact",
                            "type": "string",
                            "example": "Doe"
                          },
                          "birth_date": {
                            "description": "Birth date of the contact",
                            "type": "string",
                            "format": "date",
                            "example": "1975-01-10"
                          },
                          "language": {
                            "title": "language",
                            "description": "Current language",
                            "type": "string",
                            "default": "en",
                            "enum": [
                              "en",
                              "pt",
                              "br",
                              "es",
                              "de",
                              "hu",
                              "fr"
                            ]
                          },
                          "email": {
                            "description": "Email of the contact",
                            "type": "string",
                            "example": "example@e-goi.com"
                          },
                          "email_status": {
                            "description": "Email channel status",
                            "type": "string",
                            "enum": [
                              "active",
                              "inactive"
                            ]
                          },
                          "cellphone": {
                            "description": "Cellphone of the contact (country code followed by phone number, split by '-')",
                            "type": "string",
                            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                            "example": "351-300404336"
                          },
                          "cellphone_status": {
                            "description": "Cellphone channel status",
                            "type": "string",
                            "enum": [
                              "active",
                              "inactive"
                            ]
                          },
                          "phone": {
                            "description": "Phone of the contact (country code followed by phone number, split by '-')",
                            "type": "string",
                            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                            "example": "351-300404336"
                          },
                          "phone_status": {
                            "description": "Phone channel status",
                            "type": "string",
                            "enum": [
                              "active",
                              "inactive"
                            ]
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Contact",
                    "description": "Contact Extra schema",
                    "properties": {
                      "extra": {
                        "description": "Array of the contact's extra fields",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "oneOf": [
                            {
                              "title": "ContactExtraFieldDate",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "date"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string",
                                  "format": "date",
                                  "example": "2019-01-01"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldText",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "text"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldCellphone",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "cellphone"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                  "type": "string",
                                  "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                  "example": "351-300404336"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldPhone",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "phone"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Phone value (country code followed by phone number, split by '-')",
                                  "type": "string",
                                  "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                  "example": "351-300404336"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldNumber",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "number"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string",
                                  "example": "100"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldEmail",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "email"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldOptions",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "options"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                  "type": "array",
                                  "items": {
                                    "type": "integer"
                                  },
                                  "example": [
                                    1,
                                    2
                                  ]
                                }
                              },
                              "type": "object"
                            }
                          ]
                        }
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/contacts/actions/update' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"type\":\"<string>\",\"contacts\":[\"<string>\"],\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"consent\":\"<string>\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"email_status\":\"<string>\",\"cellphone\":\"<string>\",\"cellphone_status\":\"<string>\",\"phone\":\"<string>\",\"phone_status\":\"<string>\"},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/actions/update\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"type\\\":\\\"<string>\\\",\\\"contacts\\\":[\\\"<string>\\\"],\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\"},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"type\\\":\\\"<string>\\\",\\\"contacts\\\":[\\\"<string>\\\"],\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\"},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/actions/update\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"type\":\"<string>\",\"contacts\":[\"<string>\"],\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"consent\":\"<string>\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"email_status\":\"<string>\",\"cellphone\":\"<string>\",\"cellphone_status\":\"<string>\",\"phone\":\"<string>\",\"phone_status\":\"<string>\"},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/contacts/actions/update\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/actions/update\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"type\\\":\\\"<string>\\\",\\\"contacts\\\":[\\\"<string>\\\"],\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\"},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"type\\\":\\\"<string>\\\",\\\"contacts\\\":[\\\"<string>\\\"],\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\"},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/contacts/actions/update\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/actions/update\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"type\\\":\\\"<string>\\\",\\\"contacts\\\":[\\\"<string>\\\"],\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\"},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts/{contact_id}/activities": {
      "get": {
        "tags": [
          "Contacts"
        ],
        "summary": "Get all contact activities",
        "description": "Returns all contact activities",
        "operationId": "getAllContactActivities",
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "description": "ID of the Contact",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Contact ID",
              "type": "string",
              "pattern": "[a-fA-F\\d]{10}"
            }
          },
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "date_min",
            "in": "query",
            "description": "Start date",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "date_max",
            "in": "query",
            "description": "End date",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "action_name",
            "in": "query",
            "description": "Action data to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "email_open",
                "email_click",
                "forward",
                "conversion",
                "email_send",
                "sms_send",
                "voice_send",
                "mms_send",
                "sms_report",
                "voice_report",
                "invitation_send",
                "invitation_open",
                "mms_open",
                "unsubscribe",
                "email_soft_bounce",
                "email_hard_bounce",
                "subscription",
                "resubscription",
                "unsubscribe_reason",
                "facebook_like",
                "social_share",
                "unsubscribe_manual",
                "double_optin",
                "double_optin_resend",
                "email_spam_complaint",
                "email_field_disable",
                "cellphone_field_disable",
                "phone_field_disable",
                "unsubscribe_api",
                "email_field_enable",
                "cellphone_field_enable",
                "phone_field_enable",
                "edit_subscription",
                "double_optedit",
                "automation_event",
                "push_send",
                "push_open",
                "push_click",
                "push_received",
                "push_error",
                "push_canceled",
                "reply_to_email",
                "web_push_send",
                "web_push_delivered",
                "web_push_open",
                "web_push_bounce",
                "web_push_click",
                "web_push_subscription",
                "web_push_unsubscription",
                "add_push_contact",
                "remove_push_contact",
                "forget_subscription",
                "change_consent",
                "push_unsubscription",
                "voice_menu_event",
                "voice_redirect",
                "automation_action",
                "automation_trigger",
                "push_delivered",
                "attach_tag",
                "detach_tag",
                "smart_sms_send",
                "smart_sms_open",
                "smart_sms_click",
                "smart_sms_report"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "ActivityCollection",
                  "description": "Collection of contact activities",
                  "properties": {
                    "items": {
                      "description": "Returned contact activities",
                      "type": "array",
                      "items": {
                        "title": "Contact Activity",
                        "description": "Contact activity schema",
                        "type": "object",
                        "oneOf": [
                          {
                            "title": "Click Activities",
                            "description": "Contact click activity schema",
                            "type": "object",
                            "allOf": [
                              {
                                "properties": {
                                  "action_data": {
                                    "description": "Action data",
                                    "properties": {
                                      "campaign_hash": {
                                        "description": "campaign hash",
                                        "type": "string",
                                        "example": "97b5a6cecf"
                                      },
                                      "url": {
                                        "description": "url",
                                        "type": "string",
                                        "example": "example.com"
                                      }
                                    },
                                    "type": "object"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "Contact Activity",
                                "description": "Contact activity schema",
                                "properties": {
                                  "date": {
                                    "title": "date_time",
                                    "description": "The date and time",
                                    "type": "string",
                                    "format": "date-time",
                                    "example": "YYYY-MM-DD hh:mm:ss"
                                  },
                                  "action_name": {
                                    "description": "Action name",
                                    "type": "string",
                                    "enum": [
                                      "email_click",
                                      "push_click",
                                      "web_push_click",
                                      "smart_sms_click"
                                    ]
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          {
                            "title": "Campaign Activities",
                            "description": "Contact campaign activity schema",
                            "type": "object",
                            "allOf": [
                              {
                                "properties": {
                                  "action_data": {
                                    "description": "Action data",
                                    "properties": {
                                      "campaign_hash": {
                                        "description": "campaign hash",
                                        "type": "string",
                                        "example": "97b5a6cecf"
                                      }
                                    },
                                    "type": "object"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "Contact Activity",
                                "description": "Campaign contact activity schema",
                                "properties": {
                                  "date": {
                                    "title": "date_time",
                                    "description": "The date and time",
                                    "type": "string",
                                    "format": "date-time",
                                    "example": "YYYY-MM-DD hh:mm:ss"
                                  },
                                  "action_name": {
                                    "description": "Action name",
                                    "type": "string",
                                    "enum": [
                                      "email_open",
                                      "forward",
                                      "email_send",
                                      "sms_send",
                                      "voice_send",
                                      "sms_report",
                                      "voice_report",
                                      "invitation_send",
                                      "invitation_open",
                                      "email_soft_bounce",
                                      "email_hard_bounce",
                                      "double_optin",
                                      "double_optin_resend",
                                      "email_spam_complaint",
                                      "double_optedit",
                                      "push_send",
                                      "push_open",
                                      "push_received",
                                      "push_error",
                                      "push_canceled",
                                      "reply_to_email",
                                      "web_push_send",
                                      "web_push_delivered",
                                      "web_push_open",
                                      "web_push_bounce",
                                      "voice_menu_event",
                                      "voice_redirect",
                                      "push_delivered",
                                      "smart_sms_send",
                                      "smart_sms_open",
                                      "smart_sms_report"
                                    ]
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          {
                            "title": "Tag Activities",
                            "description": "Contact Tags activity schema",
                            "type": "object",
                            "allOf": [
                              {
                                "properties": {
                                  "action_data": {
                                    "description": "Action data",
                                    "properties": {
                                      "tag_id": {
                                        "title": "ID",
                                        "type": "integer",
                                        "minimum": 1,
                                        "readOnly": true,
                                        "example": 1
                                      }
                                    },
                                    "type": "object"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "Contact Activity",
                                "description": "Contact activity schema",
                                "properties": {
                                  "date": {
                                    "title": "date_time",
                                    "description": "The date and time",
                                    "type": "string",
                                    "format": "date-time",
                                    "example": "YYYY-MM-DD hh:mm:ss"
                                  },
                                  "action_name": {
                                    "description": "Action name",
                                    "type": "string",
                                    "enum": [
                                      "attach_tag",
                                      "detach_tag"
                                    ]
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          {
                            "title": "Automation Activities",
                            "description": "Contact Automation activity schema",
                            "type": "object",
                            "allOf": [
                              {
                                "properties": {
                                  "action_data": {
                                    "description": "Action data",
                                    "properties": {
                                      "automation_id": {
                                        "title": "ID",
                                        "type": "integer",
                                        "minimum": 1,
                                        "readOnly": true,
                                        "example": 1
                                      }
                                    },
                                    "type": "object"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "Contact Activity",
                                "description": "Contact activity schema",
                                "properties": {
                                  "date": {
                                    "title": "date_time",
                                    "description": "The date and time",
                                    "type": "string",
                                    "format": "date-time",
                                    "example": "YYYY-MM-DD hh:mm:ss"
                                  },
                                  "action_name": {
                                    "description": "Action name",
                                    "type": "string",
                                    "enum": [
                                      "automation_event",
                                      "automation_action",
                                      "automation_trigger"
                                    ]
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          {
                            "title": "Other Activities",
                            "description": "Other contact activity schema",
                            "properties": {
                              "date": {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              },
                              "action_name": {
                                "description": "Action name",
                                "type": "string",
                                "enum": [
                                  "subscription",
                                  "unsubscribe",
                                  "unsubscribe_api",
                                  "unsubscribe_manual",
                                  "unsubscribe_reason",
                                  "edit_subscription",
                                  "resubscription",
                                  "conversion",
                                  "facebook_like",
                                  "social_share",
                                  "cellphone_field_disable",
                                  "email_field_disable",
                                  "phone_field_disable",
                                  "email_field_enable",
                                  "cellphone_field_enable",
                                  "phone_field_enable",
                                  "web_push_subscription",
                                  "web_push_unsubscription",
                                  "add_push_contact",
                                  "remove_push_contact",
                                  "forget_subscription",
                                  "change_consent",
                                  "push_unsubscription"
                                ]
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/lists/<integer>/contacts/<string>/activities?offset=<integer>&limit=10&date_min=<dateTime>&date_max=<dateTime>&action_name=<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/<string>/activities?offset=<integer>&limit=10&date_min=<dateTime>&date_max=<dateTime>&action_name=<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/<string>/activities?offset=<integer>&limit=10&date_min=<dateTime>&date_max=<dateTime>&action_name=<string>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/lists/<integer>/contacts/<string>/activities?offset=<integer>&limit=10&date_min=<dateTime>&date_max=<dateTime>&action_name=<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/<string>/activities?offset=<integer>&limit=10&date_min=<dateTime>&date_max=<dateTime>&action_name=<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/lists/<integer>/contacts/<string>/activities?offset=<integer>&limit=10&date_min=<dateTime>&date_max=<dateTime>&action_name=<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/<string>/activities?offset=<integer>&limit=10&date_min=<dateTime>&date_max=<dateTime>&action_name=<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts/by-field": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "summary": "Updates a contact by field",
        "description": "Updates a contact by field, wich must be unique in list",
        "operationId": "updateContactByField",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the list where the contact belongs",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Contact Update by Field Id",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Contact",
                "description": "Contact Update by field Base and Extra schema",
                "type": "object",
                "allOf": [
                  {
                    "title": "Contact",
                    "description": "Contact By Field Id",
                    "properties": {
                      "compare_field": {
                        "description": "Contact compare fields",
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "field_id": {
                                "description": "Field Id from wich you wish to identify the contact (must be set as unique in list)",
                                "type": "string",
                                "example": "email"
                              },
                              "value": {
                                "description": "Value for identify the contact",
                                "type": "string",
                                "example": "example@e-goi.com"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "type": "object",
                    "x-sort-index": 1
                  },
                  {
                    "title": "Contact",
                    "description": "Contact base",
                    "properties": {
                      "base": {
                        "description": "Contact base fields",
                        "properties": {
                          "contact_id": {
                            "title": "Contact ID",
                            "type": "string",
                            "pattern": "[a-fA-F\\d]{10}",
                            "readOnly": true,
                            "example": "8f3a27ef26"
                          },
                          "status": {
                            "description": "Status of the contact",
                            "type": "string",
                            "default": "active",
                            "enum": [
                              "active",
                              "inactive",
                              "unconfirmed"
                            ]
                          },
                          "consent": {
                            "description": "Contact consent",
                            "type": "string",
                            "enum": [
                              "any",
                              "consent",
                              "contract",
                              "legitimate_interest",
                              "none",
                              "protect_vital_interests",
                              "public_interests",
                              "required_by_law",
                              "withdrawn"
                            ]
                          },
                          "first_name": {
                            "description": "First name of the contact",
                            "type": "string",
                            "example": "John"
                          },
                          "last_name": {
                            "description": "Last name of the contact",
                            "type": "string",
                            "example": "Doe"
                          },
                          "birth_date": {
                            "description": "Birth date of the contact",
                            "type": "string",
                            "format": "date",
                            "example": "1975-01-10"
                          },
                          "language": {
                            "title": "language",
                            "description": "Current language",
                            "type": "string",
                            "default": "en",
                            "enum": [
                              "en",
                              "pt",
                              "br",
                              "es",
                              "de",
                              "hu",
                              "fr"
                            ]
                          },
                          "email": {
                            "description": "Email of the contact",
                            "type": "string",
                            "example": "example@e-goi.com"
                          },
                          "email_status": {
                            "description": "Email channel status",
                            "type": "string",
                            "enum": [
                              "active",
                              "inactive"
                            ]
                          },
                          "cellphone": {
                            "description": "Cellphone of the contact (country code followed by phone number, split by '-')",
                            "type": "string",
                            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                            "example": "351-300404336"
                          },
                          "cellphone_status": {
                            "description": "Cellphone channel status",
                            "type": "string",
                            "enum": [
                              "active",
                              "inactive"
                            ]
                          },
                          "phone": {
                            "description": "Phone of the contact (country code followed by phone number, split by '-')",
                            "type": "string",
                            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                            "example": "351-300404336"
                          },
                          "phone_status": {
                            "description": "Phone channel status",
                            "type": "string",
                            "enum": [
                              "active",
                              "inactive"
                            ]
                          },
                          "push_token_android": {
                            "description": "Android push token of the contact",
                            "type": "array",
                            "items": {
                              "properties": {
                                "app_id": {
                                  "title": "Push App Id",
                                  "type": "string",
                                  "pattern": "[a-zA-Z0-9_-]*"
                                },
                                "token": {
                                  "description": "Android push app ID",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            }
                          },
                          "push_token_ios": {
                            "description": "IOS push token of the contact",
                            "type": "array",
                            "items": {
                              "properties": {
                                "app_id": {
                                  "title": "Push App Id",
                                  "type": "string",
                                  "pattern": "[a-zA-Z0-9_-]*"
                                },
                                "token": {
                                  "description": "Ios push app ID",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            }
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Contact",
                    "description": "Contact Extra schema",
                    "properties": {
                      "extra": {
                        "description": "Array of the contact's extra fields",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "oneOf": [
                            {
                              "title": "ContactExtraFieldDate",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "date"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string",
                                  "format": "date",
                                  "example": "2019-01-01"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldText",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "text"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldCellphone",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "cellphone"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                  "type": "string",
                                  "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                  "example": "351-300404336"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldPhone",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "phone"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Phone value (country code followed by phone number, split by '-')",
                                  "type": "string",
                                  "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                  "example": "351-300404336"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldNumber",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "number"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string",
                                  "example": "100"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldEmail",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "email"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldOptions",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "options"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                  "type": "array",
                                  "items": {
                                    "type": "integer"
                                  },
                                  "example": [
                                    1,
                                    2
                                  ]
                                }
                              },
                              "type": "object"
                            }
                          ]
                        }
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "CreateContactResponse",
                  "description": "Create contact response schema",
                  "properties": {
                    "contact_id": {
                      "title": "Contact ID",
                      "type": "string",
                      "pattern": "[a-fA-F\\d]{10}",
                      "readOnly": true,
                      "example": "8f3a27ef26"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "PostContactsConflict",
                  "description": "Error schema for post lists conflicts",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "unique_field_in_use",
                      "description": "Error schema for conflict when a provided field is already in use",
                      "properties": {
                        "errors": {
                          "properties": {
                            "unique_field_in_use": {
                              "description": "Occurs when a provided field is already in use",
                              "type": "string",
                              "enum": [
                                "A unique field is already being used"
                              ]
                            },
                            "field_id": {
                              "description": "Field ID",
                              "type": "string"
                            },
                            "contacts": {
                              "type": "array",
                              "items": {
                                "title": "Contact ID",
                                "type": "string",
                                "pattern": "[a-fA-F\\d]{10}",
                                "readOnly": true,
                                "example": "8f3a27ef26"
                              }
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/contacts/by-field' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"compare_field\":{\"field_id\":\"<string>\",\"value\":\"<string>\"},\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"consent\":\"<string>\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"email_status\":\"<string>\",\"cellphone\":\"<string>\",\"cellphone_status\":\"<string>\",\"phone\":\"<string>\",\"phone_status\":\"<string>\",\"push_token_android\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}],\"push_token_ios\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}]},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/by-field\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"compare_field\\\":{\\\"field_id\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"compare_field\\\":{\\\"field_id\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/by-field\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"compare_field\":{\"field_id\":\"<string>\",\"value\":\"<string>\"},\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"consent\":\"<string>\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"email_status\":\"<string>\",\"cellphone\":\"<string>\",\"cellphone_status\":\"<string>\",\"phone\":\"<string>\",\"phone_status\":\"<string>\",\"push_token_android\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}],\"push_token_ios\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}]},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/contacts/by-field\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/by-field\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"compare_field\\\":{\\\"field_id\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"compare_field\\\":{\\\"field_id\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/contacts/by-field\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/by-field\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"compare_field\\\":{\\\"field_id\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts": {
      "get": {
        "tags": [
          "Contacts"
        ],
        "summary": "Get all contacts",
        "description": "Returns all contacts",
        "operationId": "getAllContacts",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "first_name",
            "in": "query",
            "description": "First name of the contacts to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "last_name",
            "in": "query",
            "description": "Last name of the contacts to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "email",
            "in": "query",
            "description": "Email of the contacts to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "email_status",
            "in": "query",
            "description": "EmailStatus of the contacts to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "cellphone",
            "in": "query",
            "description": "Cellphone of the contacts to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cellphone_status",
            "in": "query",
            "description": "CellphoneStatus of the contacts to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "phone",
            "in": "query",
            "description": "Phone of the contacts to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "phone_status",
            "in": "query",
            "description": "PhoneStatus of the contacts to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "birth_date",
            "in": "query",
            "description": "Birth date of the contacts to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "date"
            }
          },
          {
            "name": "language",
            "in": "query",
            "description": "Language date of the contacts to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "pt",
                "en",
                "es",
                "br",
                "fr",
                "de"
              ]
            }
          },
          {
            "name": "extra_field_id",
            "in": "query",
            "description": "Extra field of contacts<div><span class='sc-cJSrbW cWGDGi'> Example: </span> <span class='sc-uJMKN cTkJKI'> 'extra_field_id[field_id]=value' </span></div>",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "properties": {
                "field_id": {
                  "description": "Extra field id",
                  "type": "string",
                  "example": "value"
                },
                "other_field_id": {
                  "description": "Extra field id",
                  "type": "string",
                  "example": "value"
                }
              },
              "type": "object"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "ContactCollection",
                  "description": "Collection of contacts",
                  "properties": {
                    "total_items": {
                      "description": "Total returned contacts",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned contacts",
                      "type": "array",
                      "items": {
                        "title": "Contact",
                        "description": "Contact schema",
                        "type": "object",
                        "allOf": [
                          {
                            "title": "Contact",
                            "description": "Contact Base and Extra schema",
                            "type": "object",
                            "allOf": [
                              {
                                "title": "Contact",
                                "description": "Contact base",
                                "properties": {
                                  "base": {
                                    "description": "Contact base fields",
                                    "type": "object",
                                    "allOf": [
                                      {
                                        "properties": {
                                          "contact_id": {
                                            "title": "Contact ID",
                                            "type": "string",
                                            "pattern": "[a-fA-F\\d]{10}",
                                            "readOnly": true,
                                            "example": "8f3a27ef26"
                                          },
                                          "status": {
                                            "description": "Status of the contact",
                                            "type": "string",
                                            "default": "active",
                                            "enum": [
                                              "active",
                                              "inactive",
                                              "removed",
                                              "unconfirmed"
                                            ]
                                          },
                                          "consent": {
                                            "description": "Contact consent",
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            },
                                            "example": [
                                              "none",
                                              "any",
                                              "consent",
                                              "contract",
                                              "legitimate_interest",
                                              "required_by_law",
                                              "protect_vital_interests",
                                              "public_interests",
                                              "withdrawn"
                                            ]
                                          },
                                          "consent_date": {
                                            "description": "Date and hour of the contact consent",
                                            "type": "string",
                                            "format": "date-time",
                                            "readOnly": true,
                                            "example": "2019-01-01 00:00:00"
                                          },
                                          "subscription_method": {
                                            "description": "Contact subscription method",
                                            "type": "string",
                                            "enum": [
                                              "manual",
                                              "form",
                                              "imported",
                                              "referral",
                                              "api"
                                            ],
                                            "readOnly": true
                                          },
                                          "subscription_date": {
                                            "description": "Date and hour of the contact subscription",
                                            "type": "string",
                                            "format": "date-time",
                                            "readOnly": true,
                                            "example": "2019-01-01 00:00:00"
                                          },
                                          "subscription_form": {
                                            "description": "Contact subscription form",
                                            "type": "integer",
                                            "minimum": 0,
                                            "readOnly": true
                                          },
                                          "unsubscription_method": {
                                            "description": "Contact unsubscription method",
                                            "type": "string",
                                            "enum": [
                                              "manual",
                                              "form",
                                              "unsubscribe_link",
                                              "bounce",
                                              "api",
                                              ""
                                            ],
                                            "readOnly": true
                                          },
                                          "unsubscription_reason": {
                                            "description": "Contact unsubscription reason",
                                            "type": "string",
                                            "enum": [
                                              "not_interested",
                                              "lack_of_time",
                                              "email_address_change",
                                              "spam",
                                              "other",
                                              ""
                                            ],
                                            "readOnly": true
                                          },
                                          "unsubscription_observation": {
                                            "description": "Contact unsubscription observation",
                                            "type": "string",
                                            "readOnly": true,
                                            "example": ""
                                          },
                                          "unsubscription_date": {
                                            "description": "Contact unsubscription date",
                                            "type": "string",
                                            "format": "date-time",
                                            "readOnly": true,
                                            "example": "0000-00-00 00:00:00"
                                          },
                                          "change_date": {
                                            "description": "Last modification date of the contact",
                                            "type": "string",
                                            "format": "date",
                                            "readOnly": true,
                                            "example": "0000-00-00 00:00:00"
                                          },
                                          "first_name": {
                                            "description": "First name of the contact",
                                            "type": "string",
                                            "example": "John"
                                          },
                                          "last_name": {
                                            "description": "Last name of the contact",
                                            "type": "string",
                                            "example": "Doe"
                                          },
                                          "birth_date": {
                                            "description": "Birth date of the contact",
                                            "type": "string",
                                            "format": "date",
                                            "example": "1975-01-10"
                                          },
                                          "language": {
                                            "title": "language",
                                            "description": "Current language",
                                            "type": "string",
                                            "default": "en",
                                            "enum": [
                                              "en",
                                              "pt",
                                              "br",
                                              "es",
                                              "de",
                                              "hu",
                                              "fr"
                                            ]
                                          },
                                          "email": {
                                            "description": "Email of the contact",
                                            "type": "string",
                                            "example": "example@e-goi.com"
                                          },
                                          "email_status": {
                                            "description": "Email channel status",
                                            "type": "string",
                                            "default": "active",
                                            "enum": [
                                              "active",
                                              "inactive"
                                            ],
                                            "readOnly": true
                                          },
                                          "cellphone": {
                                            "description": "Cellphone of the contact",
                                            "type": "string",
                                            "example": "351-300404336"
                                          },
                                          "cellphone_status": {
                                            "description": "Cellphone channel status",
                                            "type": "string",
                                            "default": "active",
                                            "enum": [
                                              "active",
                                              "inactive"
                                            ],
                                            "readOnly": true
                                          },
                                          "phone": {
                                            "description": "Phone of the contact",
                                            "type": "string",
                                            "example": "351-300404336"
                                          },
                                          "phone_status": {
                                            "description": "Phone channel status",
                                            "type": "string",
                                            "default": "active",
                                            "enum": [
                                              "active",
                                              "inactive"
                                            ],
                                            "readOnly": true
                                          },
                                          "push_token_android": {
                                            "description": "Android push token of the contact",
                                            "type": "array",
                                            "items": {
                                              "properties": {
                                                "app_id": {
                                                  "title": "Push App Id",
                                                  "type": "string",
                                                  "pattern": "[a-zA-Z0-9_-]*"
                                                },
                                                "token": {
                                                  "description": "Android push app ID",
                                                  "type": "string"
                                                }
                                              },
                                              "type": "object"
                                            }
                                          },
                                          "push_token_ios": {
                                            "description": "IOS push token of the contact",
                                            "type": "array",
                                            "items": {
                                              "properties": {
                                                "app_id": {
                                                  "title": "Push App Id",
                                                  "type": "string",
                                                  "pattern": "[a-zA-Z0-9_-]*"
                                                },
                                                "token": {
                                                  "description": "Ios push app ID",
                                                  "type": "string"
                                                }
                                              },
                                              "type": "object"
                                            }
                                          }
                                        },
                                        "type": "object"
                                      }
                                    ]
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "Contact",
                                "description": "Contact Extra schema",
                                "properties": {
                                  "extra": {
                                    "description": "Array of the contact's extra fields",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "oneOf": [
                                        {
                                          "title": "ContactExtraFieldDate",
                                          "properties": {
                                            "field_id": {
                                              "title": "ID",
                                              "type": "integer",
                                              "minimum": 1,
                                              "example": 1
                                            },
                                            "format": {
                                              "description": "Extra field format",
                                              "type": "string",
                                              "enum": [
                                                "date"
                                              ],
                                              "readOnly": true
                                            },
                                            "value": {
                                              "description": "Extra field value",
                                              "type": "string",
                                              "format": "date",
                                              "example": "2019-01-01"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        {
                                          "title": "ContactExtraFieldText",
                                          "properties": {
                                            "field_id": {
                                              "title": "ID",
                                              "type": "integer",
                                              "minimum": 1,
                                              "example": 1
                                            },
                                            "format": {
                                              "description": "Extra field format",
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ],
                                              "readOnly": true
                                            },
                                            "value": {
                                              "description": "Extra field value",
                                              "type": "string"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        {
                                          "title": "ContactExtraFieldCellphone",
                                          "properties": {
                                            "field_id": {
                                              "title": "ID",
                                              "type": "integer",
                                              "minimum": 1,
                                              "example": 1
                                            },
                                            "format": {
                                              "description": "Extra field format",
                                              "type": "string",
                                              "enum": [
                                                "cellphone"
                                              ],
                                              "readOnly": true
                                            },
                                            "value": {
                                              "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                              "type": "string",
                                              "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                              "example": "351-300404336"
                                            },
                                            "status": {
                                              "description": "Extra field status",
                                              "type": "string",
                                              "enum": [
                                                "active",
                                                "inactive"
                                              ]
                                            }
                                          },
                                          "type": "object"
                                        },
                                        {
                                          "title": "ContactExtraFieldPhone",
                                          "properties": {
                                            "field_id": {
                                              "title": "ID",
                                              "type": "integer",
                                              "minimum": 1,
                                              "example": 1
                                            },
                                            "format": {
                                              "description": "Extra field format",
                                              "type": "string",
                                              "enum": [
                                                "phone"
                                              ],
                                              "readOnly": true
                                            },
                                            "value": {
                                              "description": "Phone value (country code followed by phone number, split by '-')",
                                              "type": "string",
                                              "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                              "example": "351-300404336"
                                            },
                                            "status": {
                                              "description": "Extra field status",
                                              "type": "string",
                                              "enum": [
                                                "active",
                                                "inactive"
                                              ]
                                            }
                                          },
                                          "type": "object"
                                        },
                                        {
                                          "title": "ContactExtraFieldNumber",
                                          "properties": {
                                            "field_id": {
                                              "title": "ID",
                                              "type": "integer",
                                              "minimum": 1,
                                              "example": 1
                                            },
                                            "format": {
                                              "description": "Extra field format",
                                              "type": "string",
                                              "enum": [
                                                "number"
                                              ],
                                              "readOnly": true
                                            },
                                            "value": {
                                              "description": "Extra field value",
                                              "type": "string",
                                              "example": "100"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        {
                                          "title": "ContactExtraFieldEmail",
                                          "properties": {
                                            "field_id": {
                                              "title": "ID",
                                              "type": "integer",
                                              "minimum": 1,
                                              "example": 1
                                            },
                                            "format": {
                                              "description": "Extra field format",
                                              "type": "string",
                                              "enum": [
                                                "email"
                                              ],
                                              "readOnly": true
                                            },
                                            "value": {
                                              "description": "Extra field value",
                                              "type": "string"
                                            },
                                            "status": {
                                              "description": "Extra field status",
                                              "type": "string",
                                              "enum": [
                                                "active",
                                                "inactive"
                                              ]
                                            }
                                          },
                                          "type": "object"
                                        },
                                        {
                                          "title": "ContactExtraFieldOptions",
                                          "properties": {
                                            "field_id": {
                                              "title": "ID",
                                              "type": "integer",
                                              "minimum": 1,
                                              "example": 1
                                            },
                                            "format": {
                                              "description": "Extra field format",
                                              "type": "string",
                                              "enum": [
                                                "options"
                                              ],
                                              "readOnly": true
                                            },
                                            "value": {
                                              "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                              "type": "array",
                                              "items": {
                                                "type": "integer"
                                              },
                                              "example": [
                                                1,
                                                2
                                              ]
                                            }
                                          },
                                          "type": "object"
                                        }
                                      ]
                                    }
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          {
                            "properties": {
                              "tags": {
                                "description": "Array of tags for this contact",
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                },
                                "readOnly": true,
                                "example": [
                                  1,
                                  2
                                ]
                              }
                            },
                            "type": "object"
                          }
                        ],
                        "x-sort-index": 1
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/lists/<integer>/contacts?offset=<integer>&limit=10&first_name=<string>&last_name=<string>&email=<string>&email_status=<boolean>&cellphone=<string>&cellphone_status=<boolean>&phone=<string>&phone_status=<boolean>&birth_date=<date>&language=<string>&extra_field_id={\"field_id\":\"<string>\",\"other_field_id\":\"<string>\"}' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts?offset=<integer>&limit=10&first_name=<string>&last_name=<string>&email=<string>&email_status=<boolean>&cellphone=<string>&cellphone_status=<boolean>&phone=<string>&phone_status=<boolean>&birth_date=<date>&language=<string>&extra_field_id={\\\"field_id\\\":\\\"<string>\\\",\\\"other_field_id\\\":\\\"<string>\\\"}\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts?offset=<integer>&limit=10&first_name=<string>&last_name=<string>&email=<string>&email_status=<boolean>&cellphone=<string>&cellphone_status=<boolean>&phone=<string>&phone_status=<boolean>&birth_date=<date>&language=<string>&extra_field_id={\\\"field_id\\\":\\\"<string>\\\",\\\"other_field_id\\\":\\\"<string>\\\"}\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/lists/<integer>/contacts?offset=<integer>&limit=10&first_name=<string>&last_name=<string>&email=<string>&email_status=<boolean>&cellphone=<string>&cellphone_status=<boolean>&phone=<string>&phone_status=<boolean>&birth_date=<date>&language=<string>&extra_field_id={\"field_id\":\"<string>\",\"other_field_id\":\"<string>\"}\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts?offset=<integer>&limit=10&first_name=<string>&last_name=<string>&email=<string>&email_status=<boolean>&cellphone=<string>&cellphone_status=<boolean>&phone=<string>&phone_status=<boolean>&birth_date=<date>&language=<string>&extra_field_id={\"field_id\":\"<string>\",\"other_field_id\":\"<string>\"}\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/lists/<integer>/contacts?offset=<integer>&limit=10&first_name=<string>&last_name=<string>&email=<string>&email_status=<boolean>&cellphone=<string>&cellphone_status=<boolean>&phone=<string>&phone_status=<boolean>&birth_date=<date>&language=<string>&extra_field_id={\\\"field_id\\\":\\\"<string>\\\",\\\"other_field_id\\\":\\\"<string>\\\"}\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts?offset=<integer>&limit=10&first_name=<string>&last_name=<string>&email=<string>&email_status=<boolean>&cellphone=<string>&cellphone_status=<boolean>&phone=<string>&phone_status=<boolean>&birth_date=<date>&language=<string>&extra_field_id={\\\"field_id\\\":\\\"<string>\\\",\\\"other_field_id\\\":\\\"<string>\\\"}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Contacts"
        ],
        "summary": "Create new contact",
        "description": "Create a new contact",
        "operationId": "createContact",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the list where the contact belongs",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Contact",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Contact",
                "description": "Contact Base and Extra schema",
                "type": "object",
                "allOf": [
                  {
                    "title": "Contact",
                    "description": "Contact base",
                    "properties": {
                      "base": {
                        "description": "Contact base fields",
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "contact_id": {
                                "title": "Contact ID",
                                "type": "string",
                                "pattern": "[a-fA-F\\d]{10}",
                                "readOnly": true,
                                "example": "8f3a27ef26"
                              },
                              "status": {
                                "description": "Status of the contact",
                                "type": "string",
                                "default": "active",
                                "enum": [
                                  "active",
                                  "inactive",
                                  "removed",
                                  "unconfirmed"
                                ]
                              },
                              "first_name": {
                                "description": "First name of the contact",
                                "type": "string",
                                "example": "John"
                              },
                              "last_name": {
                                "description": "Last name of the contact",
                                "type": "string",
                                "example": "Doe"
                              },
                              "birth_date": {
                                "description": "Birth date of the contact",
                                "type": "string",
                                "format": "date",
                                "example": "1975-01-10"
                              },
                              "language": {
                                "title": "language",
                                "description": "Current language",
                                "type": "string",
                                "default": "en",
                                "enum": [
                                  "en",
                                  "pt",
                                  "br",
                                  "es",
                                  "de",
                                  "hu",
                                  "fr"
                                ]
                              },
                              "email": {
                                "description": "Email of the contact",
                                "type": "string",
                                "example": "example@e-goi.com"
                              },
                              "email_status": {
                                "description": "Email channel status",
                                "type": "string",
                                "enum": [
                                  "active",
                                  "inactive"
                                ]
                              },
                              "cellphone": {
                                "description": "Cellphone of the contact (country code followed by phone number, split by '-')",
                                "type": "string",
                                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                "example": "351-300404336"
                              },
                              "cellphone_status": {
                                "description": "Cellphone channel status",
                                "type": "string",
                                "enum": [
                                  "active",
                                  "inactive"
                                ]
                              },
                              "phone": {
                                "description": "Phone of the contact (country code followed by phone number, split by '-')",
                                "type": "string",
                                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                "example": "351-300404336"
                              },
                              "phone_status": {
                                "description": "Phone channel status",
                                "type": "string",
                                "enum": [
                                  "active",
                                  "inactive"
                                ]
                              },
                              "push_token_android": {
                                "description": "Android push token of the contact",
                                "type": "array",
                                "items": {
                                  "properties": {
                                    "app_id": {
                                      "title": "Push App Id",
                                      "type": "string",
                                      "pattern": "[a-zA-Z0-9_-]*"
                                    },
                                    "token": {
                                      "description": "Android push app ID",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              },
                              "push_token_ios": {
                                "description": "IOS push token of the contact",
                                "type": "array",
                                "items": {
                                  "properties": {
                                    "app_id": {
                                      "title": "Push App Id",
                                      "type": "string",
                                      "pattern": "[a-zA-Z0-9_-]*"
                                    },
                                    "token": {
                                      "description": "Ios push app ID",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "type": "object",
                    "x-sort-index": 1
                  },
                  {
                    "title": "Contact",
                    "description": "Contact Extra schema",
                    "properties": {
                      "extra": {
                        "description": "Array of the contact's extra fields",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "oneOf": [
                            {
                              "title": "ContactExtraFieldDate",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "date"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string",
                                  "format": "date",
                                  "example": "2019-01-01"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldText",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "text"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldCellphone",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "cellphone"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                  "type": "string",
                                  "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                  "example": "351-300404336"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldPhone",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "phone"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Phone value (country code followed by phone number, split by '-')",
                                  "type": "string",
                                  "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                  "example": "351-300404336"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldNumber",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "number"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string",
                                  "example": "100"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldEmail",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "email"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldOptions",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "options"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                  "type": "array",
                                  "items": {
                                    "type": "integer"
                                  },
                                  "example": [
                                    1,
                                    2
                                  ]
                                }
                              },
                              "type": "object"
                            }
                          ]
                        }
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Contact",
                    "description": "UTM, Referrer and Advertising parameters for the Contact",
                    "type": "object",
                    "allOf": [
                      {
                        "title": "Contact",
                        "description": "Contact Utm",
                        "properties": {
                          "utm": {
                            "description": "Contact Urchin Tracking Module (utm) fields",
                            "type": "object",
                            "allOf": [
                              {
                                "properties": {
                                  "utm_source": {
                                    "description": "Utm source value",
                                    "type": "string",
                                    "example": "source"
                                  },
                                  "utm_medium": {
                                    "description": "Utm medium value",
                                    "type": "string",
                                    "example": "medium"
                                  },
                                  "utm_campaign": {
                                    "description": "Utm campaign value",
                                    "type": "string",
                                    "example": "campaign"
                                  },
                                  "utm_content": {
                                    "description": "Utm content value",
                                    "type": "string",
                                    "example": "content"
                                  },
                                  "utm_term": {
                                    "description": "Utm source value",
                                    "type": "string",
                                    "example": "term"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Contact",
                        "description": "Contact Referrer",
                        "properties": {
                          "referrer": {
                            "description": "Contact referrer fields",
                            "type": "object",
                            "allOf": [
                              {
                                "properties": {
                                  "referrer": {
                                    "description": "Referrer value",
                                    "type": "string",
                                    "example": "referrer"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Contact",
                        "description": "Contact Advertising",
                        "properties": {
                          "advertising": {
                            "description": "Contact advertising fields",
                            "type": "object",
                            "allOf": [
                              {
                                "properties": {
                                  "gclid": {
                                    "description": "Identifier that Google uses in Google Ads",
                                    "type": "string",
                                    "example": "google"
                                  },
                                  "msclkid": {
                                    "description": "Identifier that Microsoft uses in Microsoft Ads",
                                    "type": "string",
                                    "example": "microsoft"
                                  },
                                  "fbclid": {
                                    "description": "Identifier that Facebook uses in Facebook Ads",
                                    "type": "string",
                                    "example": "facebook"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "CreateContactResponse",
                  "description": "Create contact response schema",
                  "properties": {
                    "contact_id": {
                      "title": "Contact ID",
                      "type": "string",
                      "pattern": "[a-fA-F\\d]{10}",
                      "readOnly": true,
                      "example": "8f3a27ef26"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "PostContactsConflict",
                  "description": "Error schema for post lists conflicts",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "unique_field_in_use",
                      "description": "Error schema for conflict when a provided field is already in use",
                      "properties": {
                        "errors": {
                          "properties": {
                            "unique_field_in_use": {
                              "description": "Occurs when a provided field is already in use",
                              "type": "string",
                              "enum": [
                                "A unique field is already being used"
                              ]
                            },
                            "field_id": {
                              "description": "Field ID",
                              "type": "string"
                            },
                            "contacts": {
                              "type": "array",
                              "items": {
                                "title": "Contact ID",
                                "type": "string",
                                "pattern": "[a-fA-F\\d]{10}",
                                "readOnly": true,
                                "example": "8f3a27ef26"
                              }
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/contacts' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"email_status\":\"<string>\",\"cellphone\":\"<string>\",\"cellphone_status\":\"<string>\",\"phone\":\"<string>\",\"phone_status\":\"<string>\",\"push_token_android\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}],\"push_token_ios\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}]},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}],\"utm\":{\"utm_source\":\"<string>\",\"utm_medium\":\"<string>\",\"utm_campaign\":\"<string>\",\"utm_content\":\"<string>\",\"utm_term\":\"<string>\"},\"referrer\":{\"referrer\":\"<string>\"},\"advertising\":{\"gclid\":\"<string>\",\"msclkid\":\"<string>\",\"fbclid\":\"<string>\"}}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"},\\\"advertising\\\":{\\\"gclid\\\":\\\"<string>\\\",\\\"msclkid\\\":\\\"<string>\\\",\\\"fbclid\\\":\\\"<string>\\\"}}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"},\\\"advertising\\\":{\\\"gclid\\\":\\\"<string>\\\",\\\"msclkid\\\":\\\"<string>\\\",\\\"fbclid\\\":\\\"<string>\\\"}}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"email_status\":\"<string>\",\"cellphone\":\"<string>\",\"cellphone_status\":\"<string>\",\"phone\":\"<string>\",\"phone_status\":\"<string>\",\"push_token_android\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}],\"push_token_ios\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}]},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}],\"utm\":{\"utm_source\":\"<string>\",\"utm_medium\":\"<string>\",\"utm_campaign\":\"<string>\",\"utm_content\":\"<string>\",\"utm_term\":\"<string>\"},\"referrer\":{\"referrer\":\"<string>\"},\"advertising\":{\"gclid\":\"<string>\",\"msclkid\":\"<string>\",\"fbclid\":\"<string>\"}});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/contacts\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"},\\\"advertising\\\":{\\\"gclid\\\":\\\"<string>\\\",\\\"msclkid\\\":\\\"<string>\\\",\\\"fbclid\\\":\\\"<string>\\\"}}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"},\\\"advertising\\\":{\\\"gclid\\\":\\\"<string>\\\",\\\"msclkid\\\":\\\"<string>\\\",\\\"fbclid\\\":\\\"<string>\\\"}}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/contacts\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}],\\\"utm\\\":{\\\"utm_source\\\":\\\"<string>\\\",\\\"utm_medium\\\":\\\"<string>\\\",\\\"utm_campaign\\\":\\\"<string>\\\",\\\"utm_content\\\":\\\"<string>\\\",\\\"utm_term\\\":\\\"<string>\\\"},\\\"referrer\\\":{\\\"referrer\\\":\\\"<string>\\\"},\\\"advertising\\\":{\\\"gclid\\\":\\\"<string>\\\",\\\"msclkid\\\":\\\"<string>\\\",\\\"fbclid\\\":\\\"<string>\\\"}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts/{contact_id}": {
      "patch": {
        "tags": [
          "Contacts"
        ],
        "summary": "Update a specific contact",
        "description": "Update contact",
        "operationId": "patchContact",
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "description": "ID of the Contact",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Contact ID",
              "type": "string",
              "pattern": "[a-fA-F\\d]{10}"
            }
          },
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the contact",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Contact",
                "description": "Contact schema",
                "type": "object",
                "allOf": [
                  {
                    "title": "Contact",
                    "description": "Contact base",
                    "properties": {
                      "base": {
                        "description": "Contact base fields",
                        "properties": {
                          "contact_id": {
                            "title": "Contact ID",
                            "type": "string",
                            "pattern": "[a-fA-F\\d]{10}",
                            "readOnly": true,
                            "example": "8f3a27ef26"
                          },
                          "status": {
                            "description": "Status of the contact",
                            "type": "string",
                            "default": "active",
                            "enum": [
                              "active",
                              "inactive",
                              "unconfirmed"
                            ]
                          },
                          "consent": {
                            "description": "Contact consent",
                            "type": "string",
                            "enum": [
                              "any",
                              "consent",
                              "contract",
                              "legitimate_interest",
                              "none",
                              "protect_vital_interests",
                              "public_interests",
                              "required_by_law",
                              "withdrawn"
                            ]
                          },
                          "first_name": {
                            "description": "First name of the contact",
                            "type": "string",
                            "example": "John"
                          },
                          "last_name": {
                            "description": "Last name of the contact",
                            "type": "string",
                            "example": "Doe"
                          },
                          "birth_date": {
                            "description": "Birth date of the contact",
                            "type": "string",
                            "format": "date",
                            "example": "1975-01-10"
                          },
                          "language": {
                            "title": "language",
                            "description": "Current language",
                            "type": "string",
                            "default": "en",
                            "enum": [
                              "en",
                              "pt",
                              "br",
                              "es",
                              "de",
                              "hu",
                              "fr"
                            ]
                          },
                          "email": {
                            "description": "Email of the contact",
                            "type": "string",
                            "example": "example@e-goi.com"
                          },
                          "email_status": {
                            "description": "Email channel status",
                            "type": "string",
                            "enum": [
                              "active",
                              "inactive"
                            ]
                          },
                          "cellphone": {
                            "description": "Cellphone of the contact (country code followed by phone number, split by '-')",
                            "type": "string",
                            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                            "example": "351-300404336"
                          },
                          "cellphone_status": {
                            "description": "Cellphone channel status",
                            "type": "string",
                            "enum": [
                              "active",
                              "inactive"
                            ]
                          },
                          "phone": {
                            "description": "Phone of the contact (country code followed by phone number, split by '-')",
                            "type": "string",
                            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                            "example": "351-300404336"
                          },
                          "phone_status": {
                            "description": "Phone channel status",
                            "type": "string",
                            "enum": [
                              "active",
                              "inactive"
                            ]
                          },
                          "push_token_android": {
                            "description": "Android push token of the contact",
                            "type": "array",
                            "items": {
                              "properties": {
                                "app_id": {
                                  "title": "Push App Id",
                                  "type": "string",
                                  "pattern": "[a-zA-Z0-9_-]*"
                                },
                                "token": {
                                  "description": "Android push app ID",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            }
                          },
                          "push_token_ios": {
                            "description": "IOS push token of the contact",
                            "type": "array",
                            "items": {
                              "properties": {
                                "app_id": {
                                  "title": "Push App Id",
                                  "type": "string",
                                  "pattern": "[a-zA-Z0-9_-]*"
                                },
                                "token": {
                                  "description": "Ios push app ID",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            }
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Contact",
                    "description": "Contact Extra schema",
                    "properties": {
                      "extra": {
                        "description": "Array of the contact's extra fields",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "oneOf": [
                            {
                              "title": "ContactExtraFieldDate",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "date"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string",
                                  "format": "date",
                                  "example": "2019-01-01"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldText",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "text"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldCellphone",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "cellphone"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                  "type": "string",
                                  "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                  "example": "351-300404336"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldPhone",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "phone"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Phone value (country code followed by phone number, split by '-')",
                                  "type": "string",
                                  "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                  "example": "351-300404336"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldNumber",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "number"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string",
                                  "example": "100"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldEmail",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "email"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldOptions",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "options"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                  "type": "array",
                                  "items": {
                                    "type": "integer"
                                  },
                                  "example": [
                                    1,
                                    2
                                  ]
                                }
                              },
                              "type": "object"
                            }
                          ]
                        }
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "CreateContactResponse",
                  "description": "Create contact response schema",
                  "properties": {
                    "contact_id": {
                      "title": "Contact ID",
                      "type": "string",
                      "pattern": "[a-fA-F\\d]{10}",
                      "readOnly": true,
                      "example": "8f3a27ef26"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PATCH 'api.egoiapp.com/lists/<integer>/contacts/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"consent\":\"<string>\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"email_status\":\"<string>\",\"cellphone\":\"<string>\",\"cellphone_status\":\"<string>\",\"phone\":\"<string>\",\"phone_status\":\"<string>\",\"push_token_android\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}],\"push_token_ios\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}]},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/<string>\")\n    .method(\"PATCH\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"consent\":\"<string>\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"email_status\":\"<string>\",\"cellphone\":\"<string>\",\"cellphone_status\":\"<string>\",\"phone\":\"<string>\",\"phone_status\":\"<string>\",\"push_token_android\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}],\"push_token_ios\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}]},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PATCH\", \"api.egoiapp.com/lists/<integer>/contacts/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PATCH\",\n    CURLOPT_POSTFIELDS =>\"{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PATCH\", \"/lists/<integer>/contacts/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"consent\\\":\\\"<string>\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"email_status\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"cellphone_status\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"phone_status\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "get": {
        "tags": [
          "Contacts"
        ],
        "summary": "Get contact",
        "description": "Returns contact information given its ID",
        "operationId": "getContact",
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "description": "ID of the Contact",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Contact ID",
              "type": "string",
              "pattern": "[a-fA-F\\d]{10}"
            }
          },
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "ComplexContact",
                  "description": "Complex contact schema",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "Contact",
                      "description": "Contact schema",
                      "type": "object",
                      "allOf": [
                        {
                          "title": "Contact",
                          "description": "Contact Base and Extra schema",
                          "type": "object",
                          "allOf": [
                            {
                              "title": "Contact",
                              "description": "Contact base",
                              "properties": {
                                "base": {
                                  "description": "Contact base fields",
                                  "type": "object",
                                  "allOf": [
                                    {
                                      "properties": {
                                        "contact_id": {
                                          "title": "Contact ID",
                                          "type": "string",
                                          "pattern": "[a-fA-F\\d]{10}",
                                          "readOnly": true,
                                          "example": "8f3a27ef26"
                                        },
                                        "status": {
                                          "description": "Status of the contact",
                                          "type": "string",
                                          "default": "active",
                                          "enum": [
                                            "active",
                                            "inactive",
                                            "removed",
                                            "unconfirmed"
                                          ]
                                        },
                                        "consent": {
                                          "description": "Contact consent",
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          },
                                          "example": [
                                            "none",
                                            "any",
                                            "consent",
                                            "contract",
                                            "legitimate_interest",
                                            "required_by_law",
                                            "protect_vital_interests",
                                            "public_interests",
                                            "withdrawn"
                                          ]
                                        },
                                        "consent_date": {
                                          "description": "Date and hour of the contact consent",
                                          "type": "string",
                                          "format": "date-time",
                                          "readOnly": true,
                                          "example": "2019-01-01 00:00:00"
                                        },
                                        "subscription_method": {
                                          "description": "Contact subscription method",
                                          "type": "string",
                                          "enum": [
                                            "manual",
                                            "form",
                                            "imported",
                                            "referral",
                                            "api"
                                          ],
                                          "readOnly": true
                                        },
                                        "subscription_date": {
                                          "description": "Date and hour of the contact subscription",
                                          "type": "string",
                                          "format": "date-time",
                                          "readOnly": true,
                                          "example": "2019-01-01 00:00:00"
                                        },
                                        "subscription_form": {
                                          "description": "Contact subscription form",
                                          "type": "integer",
                                          "minimum": 0,
                                          "readOnly": true
                                        },
                                        "unsubscription_method": {
                                          "description": "Contact unsubscription method",
                                          "type": "string",
                                          "enum": [
                                            "manual",
                                            "form",
                                            "unsubscribe_link",
                                            "bounce",
                                            "api",
                                            ""
                                          ],
                                          "readOnly": true
                                        },
                                        "unsubscription_reason": {
                                          "description": "Contact unsubscription reason",
                                          "type": "string",
                                          "enum": [
                                            "not_interested",
                                            "lack_of_time",
                                            "email_address_change",
                                            "spam",
                                            "other",
                                            ""
                                          ],
                                          "readOnly": true
                                        },
                                        "unsubscription_observation": {
                                          "description": "Contact unsubscription observation",
                                          "type": "string",
                                          "readOnly": true,
                                          "example": ""
                                        },
                                        "unsubscription_date": {
                                          "description": "Contact unsubscription date",
                                          "type": "string",
                                          "format": "date-time",
                                          "readOnly": true,
                                          "example": "0000-00-00 00:00:00"
                                        },
                                        "change_date": {
                                          "description": "Last modification date of the contact",
                                          "type": "string",
                                          "format": "date",
                                          "readOnly": true,
                                          "example": "0000-00-00 00:00:00"
                                        },
                                        "first_name": {
                                          "description": "First name of the contact",
                                          "type": "string",
                                          "example": "John"
                                        },
                                        "last_name": {
                                          "description": "Last name of the contact",
                                          "type": "string",
                                          "example": "Doe"
                                        },
                                        "birth_date": {
                                          "description": "Birth date of the contact",
                                          "type": "string",
                                          "format": "date",
                                          "example": "1975-01-10"
                                        },
                                        "language": {
                                          "title": "language",
                                          "description": "Current language",
                                          "type": "string",
                                          "default": "en",
                                          "enum": [
                                            "en",
                                            "pt",
                                            "br",
                                            "es",
                                            "de",
                                            "hu",
                                            "fr"
                                          ]
                                        },
                                        "email": {
                                          "description": "Email of the contact",
                                          "type": "string",
                                          "example": "example@e-goi.com"
                                        },
                                        "email_status": {
                                          "description": "Email channel status",
                                          "type": "string",
                                          "default": "active",
                                          "enum": [
                                            "active",
                                            "inactive"
                                          ],
                                          "readOnly": true
                                        },
                                        "cellphone": {
                                          "description": "Cellphone of the contact",
                                          "type": "string",
                                          "example": "351-300404336"
                                        },
                                        "cellphone_status": {
                                          "description": "Cellphone channel status",
                                          "type": "string",
                                          "default": "active",
                                          "enum": [
                                            "active",
                                            "inactive"
                                          ],
                                          "readOnly": true
                                        },
                                        "phone": {
                                          "description": "Phone of the contact",
                                          "type": "string",
                                          "example": "351-300404336"
                                        },
                                        "phone_status": {
                                          "description": "Phone channel status",
                                          "type": "string",
                                          "default": "active",
                                          "enum": [
                                            "active",
                                            "inactive"
                                          ],
                                          "readOnly": true
                                        },
                                        "push_token_android": {
                                          "description": "Android push token of the contact",
                                          "type": "array",
                                          "items": {
                                            "properties": {
                                              "app_id": {
                                                "title": "Push App Id",
                                                "type": "string",
                                                "pattern": "[a-zA-Z0-9_-]*"
                                              },
                                              "token": {
                                                "description": "Android push app ID",
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          }
                                        },
                                        "push_token_ios": {
                                          "description": "IOS push token of the contact",
                                          "type": "array",
                                          "items": {
                                            "properties": {
                                              "app_id": {
                                                "title": "Push App Id",
                                                "type": "string",
                                                "pattern": "[a-zA-Z0-9_-]*"
                                              },
                                              "token": {
                                                "description": "Ios push app ID",
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          }
                                        }
                                      },
                                      "type": "object"
                                    }
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "Contact",
                              "description": "Contact Extra schema",
                              "properties": {
                                "extra": {
                                  "description": "Array of the contact's extra fields",
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "oneOf": [
                                      {
                                        "title": "ContactExtraFieldDate",
                                        "properties": {
                                          "field_id": {
                                            "title": "ID",
                                            "type": "integer",
                                            "minimum": 1,
                                            "example": 1
                                          },
                                          "format": {
                                            "description": "Extra field format",
                                            "type": "string",
                                            "enum": [
                                              "date"
                                            ],
                                            "readOnly": true
                                          },
                                          "value": {
                                            "description": "Extra field value",
                                            "type": "string",
                                            "format": "date",
                                            "example": "2019-01-01"
                                          }
                                        },
                                        "type": "object"
                                      },
                                      {
                                        "title": "ContactExtraFieldText",
                                        "properties": {
                                          "field_id": {
                                            "title": "ID",
                                            "type": "integer",
                                            "minimum": 1,
                                            "example": 1
                                          },
                                          "format": {
                                            "description": "Extra field format",
                                            "type": "string",
                                            "enum": [
                                              "text"
                                            ],
                                            "readOnly": true
                                          },
                                          "value": {
                                            "description": "Extra field value",
                                            "type": "string"
                                          }
                                        },
                                        "type": "object"
                                      },
                                      {
                                        "title": "ContactExtraFieldCellphone",
                                        "properties": {
                                          "field_id": {
                                            "title": "ID",
                                            "type": "integer",
                                            "minimum": 1,
                                            "example": 1
                                          },
                                          "format": {
                                            "description": "Extra field format",
                                            "type": "string",
                                            "enum": [
                                              "cellphone"
                                            ],
                                            "readOnly": true
                                          },
                                          "value": {
                                            "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                            "type": "string",
                                            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                            "example": "351-300404336"
                                          },
                                          "status": {
                                            "description": "Extra field status",
                                            "type": "string",
                                            "enum": [
                                              "active",
                                              "inactive"
                                            ]
                                          }
                                        },
                                        "type": "object"
                                      },
                                      {
                                        "title": "ContactExtraFieldPhone",
                                        "properties": {
                                          "field_id": {
                                            "title": "ID",
                                            "type": "integer",
                                            "minimum": 1,
                                            "example": 1
                                          },
                                          "format": {
                                            "description": "Extra field format",
                                            "type": "string",
                                            "enum": [
                                              "phone"
                                            ],
                                            "readOnly": true
                                          },
                                          "value": {
                                            "description": "Phone value (country code followed by phone number, split by '-')",
                                            "type": "string",
                                            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                            "example": "351-300404336"
                                          },
                                          "status": {
                                            "description": "Extra field status",
                                            "type": "string",
                                            "enum": [
                                              "active",
                                              "inactive"
                                            ]
                                          }
                                        },
                                        "type": "object"
                                      },
                                      {
                                        "title": "ContactExtraFieldNumber",
                                        "properties": {
                                          "field_id": {
                                            "title": "ID",
                                            "type": "integer",
                                            "minimum": 1,
                                            "example": 1
                                          },
                                          "format": {
                                            "description": "Extra field format",
                                            "type": "string",
                                            "enum": [
                                              "number"
                                            ],
                                            "readOnly": true
                                          },
                                          "value": {
                                            "description": "Extra field value",
                                            "type": "string",
                                            "example": "100"
                                          }
                                        },
                                        "type": "object"
                                      },
                                      {
                                        "title": "ContactExtraFieldEmail",
                                        "properties": {
                                          "field_id": {
                                            "title": "ID",
                                            "type": "integer",
                                            "minimum": 1,
                                            "example": 1
                                          },
                                          "format": {
                                            "description": "Extra field format",
                                            "type": "string",
                                            "enum": [
                                              "email"
                                            ],
                                            "readOnly": true
                                          },
                                          "value": {
                                            "description": "Extra field value",
                                            "type": "string"
                                          },
                                          "status": {
                                            "description": "Extra field status",
                                            "type": "string",
                                            "enum": [
                                              "active",
                                              "inactive"
                                            ]
                                          }
                                        },
                                        "type": "object"
                                      },
                                      {
                                        "title": "ContactExtraFieldOptions",
                                        "properties": {
                                          "field_id": {
                                            "title": "ID",
                                            "type": "integer",
                                            "minimum": 1,
                                            "example": 1
                                          },
                                          "format": {
                                            "description": "Extra field format",
                                            "type": "string",
                                            "enum": [
                                              "options"
                                            ],
                                            "readOnly": true
                                          },
                                          "value": {
                                            "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                            "type": "array",
                                            "items": {
                                              "type": "integer"
                                            },
                                            "example": [
                                              1,
                                              2
                                            ]
                                          }
                                        },
                                        "type": "object"
                                      }
                                    ]
                                  }
                                }
                              },
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "properties": {
                            "tags": {
                              "description": "Array of tags for this contact",
                              "type": "array",
                              "items": {
                                "type": "integer"
                              },
                              "readOnly": true,
                              "example": [
                                1,
                                2
                              ]
                            }
                          },
                          "type": "object"
                        }
                      ],
                      "x-sort-index": 1
                    },
                    {
                      "title": "Contact stats",
                      "description": "Contact stats",
                      "properties": {
                        "email_stats": {
                          "description": "Email stats of the contact",
                          "properties": {
                            "sent": {
                              "description": "Emails sent to the contact",
                              "type": "integer",
                              "example": 20
                            },
                            "opens": {
                              "description": "Emails opened by the contact",
                              "type": "integer",
                              "example": 2
                            },
                            "clicks": {
                              "description": "Total number of clicks made by the contact",
                              "type": "integer",
                              "example": 4
                            },
                            "soft_bounces": {
                              "description": "Soft bounces for the contact",
                              "type": "integer",
                              "example": 5
                            },
                            "hard_bounces": {
                              "description": "Hard bounces for the contact",
                              "type": "integer",
                              "example": 5
                            },
                            "forwards": {
                              "description": "Emails forwarded by the contact",
                              "type": "integer",
                              "example": 2
                            },
                            "conversions": {
                              "description": "Total of conversions",
                              "type": "integer",
                              "example": 1
                            },
                            "social_actions": {
                              "description": "Total of social actions for the contact",
                              "type": "integer",
                              "example": 1
                            },
                            "last_send_date": {
                              "description": "Date of the last email sent to the contact",
                              "type": "string",
                              "format": "date-time",
                              "example": "2019-01-01 00:00:00",
                              "nullable": true
                            },
                            "last_open_date": {
                              "description": "Date of the last email open of the contact",
                              "type": "string",
                              "format": "date-time",
                              "example": "2019-01-01 00:00:00",
                              "nullable": true
                            },
                            "last_click_date": {
                              "description": "Date of the last email click of the contact",
                              "type": "string",
                              "format": "date-time",
                              "example": "2019-01-01 00:00:00",
                              "nullable": true
                            },
                            "last_open_country": {
                              "description": "Country where the last email for that contact was opened",
                              "type": "string",
                              "example": "Portugal",
                              "nullable": true
                            },
                            "last_open_region": {
                              "description": "Region where the last email for that contact was opened",
                              "type": "string",
                              "example": "Porto",
                              "nullable": true
                            },
                            "last_open_city": {
                              "description": "City where the last email for that contact was opened",
                              "type": "string",
                              "example": "Matosinhos",
                              "nullable": true
                            }
                          },
                          "type": "object",
                          "readOnly": true
                        },
                        "sms_stats": {
                          "description": "SMS stats of the contact",
                          "properties": {
                            "sent": {
                              "description": "SMS sent to the contact",
                              "type": "integer",
                              "example": 5
                            },
                            "delivered": {
                              "description": "SMS delivered to the contact",
                              "type": "integer",
                              "example": 5
                            }
                          },
                          "type": "object",
                          "readOnly": true,
                          "x-sort-index": 3
                        },
                        "push_stats": {
                          "description": "Push stats of the contact",
                          "properties": {
                            "sent": {
                              "description": "Push messages sent to the contact",
                              "type": "integer",
                              "example": 5
                            },
                            "delivered": {
                              "description": "Push messages delivered to the contact",
                              "type": "integer",
                              "example": 5
                            },
                            "not_delivered": {
                              "description": "Push messages that were not delivered to the contact",
                              "type": "integer",
                              "example": 0
                            },
                            "views": {
                              "description": "Push messages that were viewed by the contact",
                              "type": "integer",
                              "example": 4
                            },
                            "clicks": {
                              "description": "Total number of clicks made by the contact",
                              "type": "integer",
                              "example": 3
                            },
                            "last_view_date": {
                              "description": "Date of the last push message view of the contact",
                              "type": "string",
                              "format": "date-time",
                              "example": "2019-01-01 00:00:00",
                              "nullable": true
                            }
                          },
                          "type": "object",
                          "readOnly": true,
                          "x-sort-index": 4
                        },
                        "webpush_stats": {
                          "description": "Webpush stats of the contact",
                          "properties": {
                            "sent": {
                              "description": "Webpush messages sent to the contact",
                              "type": "integer",
                              "example": 7
                            },
                            "delivered": {
                              "description": "Webpush messages delivered to the contact",
                              "type": "integer",
                              "example": 7
                            },
                            "clicks": {
                              "description": "Total number of clicks made by the contact",
                              "type": "integer",
                              "example": 2
                            },
                            "bounces": {
                              "description": "Bounces for the contact",
                              "type": "integer",
                              "example": 0
                            },
                            "last_send_date": {
                              "description": "Date of the last webpush message sent to the contact",
                              "type": "string",
                              "format": "date-time",
                              "example": "2019-01-01 00:00:00"
                            },
                            "last_delivery_date": {
                              "description": "Date of the last webpush message delivered to the contact",
                              "type": "string",
                              "format": "date-time",
                              "example": "2019-01-01 00:00:00"
                            },
                            "last_click_date": {
                              "description": "Date of the last webpush message clicked by the contact",
                              "type": "string",
                              "format": "date-time",
                              "example": "2019-01-01 00:00:00"
                            },
                            "last_bounce_date": {
                              "description": "Date of the last webpush bounce for the contact",
                              "type": "string",
                              "format": "date-time",
                              "example": "2019-01-01 00:00:00"
                            }
                          },
                          "type": "object",
                          "readOnly": true,
                          "x-sort-index": 5
                        },
                        "voice_stats": {
                          "description": "Voice stats of the contact",
                          "properties": {
                            "sent": {
                              "description": "Voice campaigns sent to the contact",
                              "type": "integer",
                              "example": 20
                            },
                            "answered": {
                              "description": "Voice campaigns answered by the contact",
                              "type": "integer",
                              "example": 10
                            }
                          },
                          "type": "object",
                          "readOnly": true,
                          "x-sort-index": 6
                        },
                        "traffic_stats": {
                          "description": "Traffic stats of the contact",
                          "properties": {
                            "utm": {
                              "description": "Voice campaigns sent to the contact",
                              "properties": {
                                "utm_source": {
                                  "description": "Utm source value",
                                  "type": "string",
                                  "example": "source"
                                },
                                "utm_medium": {
                                  "description": "Utm medium value",
                                  "type": "string",
                                  "example": "medium"
                                },
                                "utm_campaign": {
                                  "description": "Utm campaign value",
                                  "type": "string",
                                  "example": "campaign"
                                },
                                "utm_content": {
                                  "description": "Utm content value",
                                  "type": "string",
                                  "example": "content"
                                },
                                "utm_term": {
                                  "description": "Utm source value",
                                  "type": "string",
                                  "example": "term"
                                }
                              },
                              "type": "object",
                              "readOnly": true
                            },
                            "referrer": {
                              "description": "Contact referrer fields",
                              "properties": {
                                "referrer": {
                                  "description": "Contact referrer value",
                                  "type": "string",
                                  "example": "referrer"
                                }
                              },
                              "type": "object",
                              "readOnly": true
                            },
                            "advertising": {
                              "description": "Contact advertising fields",
                              "properties": {
                                "gclid": {
                                  "description": "Google Ads value",
                                  "type": "string",
                                  "example": "gclid"
                                },
                                "msclkid": {
                                  "description": "Microsoft Ads value",
                                  "type": "string",
                                  "example": "msclkid"
                                },
                                "fbclid": {
                                  "description": "Facebook Ads value",
                                  "type": "string",
                                  "example": "fbclid"
                                }
                              },
                              "type": "object",
                              "readOnly": true
                            }
                          },
                          "type": "object",
                          "readOnly": true,
                          "x-sort-index": 7
                        }
                      },
                      "type": "object",
                      "x-sort-index": 2
                    }
                  ],
                  "x-sort-index": 1
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-sort-index": 1,
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/lists/<integer>/contacts/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/<string>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/lists/<integer>/contacts/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/lists/<integer>/contacts/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/contacts/search": {
      "get": {
        "tags": [
          "Contacts"
        ],
        "summary": "Search contact",
        "description": "Searches a contact across all lists and returns a collection of contacts found",
        "operationId": "searchContacts",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "Type of contact to search (defaults to 'email')",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "email",
              "enum": [
                "email",
                "cellphone",
                "phone"
              ]
            }
          },
          {
            "name": "contact",
            "in": "query",
            "description": "Contact to search",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Collection of contacts",
                  "properties": {
                    "items": {
                      "description": "Returned contacts",
                      "type": "array",
                      "items": {
                        "title": "Contact Search Response",
                        "description": "Returned contacts",
                        "properties": {
                          "contact_id": {
                            "title": "Contact ID",
                            "type": "string",
                            "pattern": "[a-fA-F\\d]{10}",
                            "readOnly": true,
                            "example": "8f3a27ef26"
                          },
                          "list_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/contacts/search?type=email&contact=<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/contacts/search?type=email&contact=<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/contacts/search?type=email&contact=<string>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/contacts/search?type=email&contact=<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/contacts/search?type=email&contact=<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/contacts/search?type=email&contact=<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/contacts/search?type=email&contact=<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/contacts/segment/{segment_id}": {
      "get": {
        "tags": [
          "Contacts"
        ],
        "summary": "Get all contacts by Segment Id",
        "description": "Returns all contacts filtered by Segment Id",
        "operationId": "getAllContactsBySegment",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "segment_id",
            "in": "path",
            "description": "ID of the Segment",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "show_removed",
            "in": "query",
            "description": "Show removed contacts",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "Show removed contacts",
              "type": "boolean",
              "default": false,
              "example": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "ContactCollection",
                  "description": "Collection of contacts",
                  "properties": {
                    "total_items": {
                      "description": "Total returned contacts",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned contacts",
                      "type": "array",
                      "items": {
                        "title": "Contact",
                        "description": "Contact schema",
                        "type": "object",
                        "allOf": [
                          {
                            "title": "Contact",
                            "description": "Contact Base and Extra schema",
                            "type": "object",
                            "allOf": [
                              {
                                "title": "Contact",
                                "description": "Contact base",
                                "properties": {
                                  "base": {
                                    "description": "Contact base fields",
                                    "type": "object",
                                    "allOf": [
                                      {
                                        "properties": {
                                          "contact_id": {
                                            "title": "Contact ID",
                                            "type": "string",
                                            "pattern": "[a-fA-F\\d]{10}",
                                            "readOnly": true,
                                            "example": "8f3a27ef26"
                                          },
                                          "status": {
                                            "description": "Status of the contact",
                                            "type": "string",
                                            "default": "active",
                                            "enum": [
                                              "active",
                                              "inactive",
                                              "removed",
                                              "unconfirmed"
                                            ]
                                          },
                                          "consent": {
                                            "description": "Contact consent",
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            },
                                            "example": [
                                              "none",
                                              "any",
                                              "consent",
                                              "contract",
                                              "legitimate_interest",
                                              "required_by_law",
                                              "protect_vital_interests",
                                              "public_interests",
                                              "withdrawn"
                                            ]
                                          },
                                          "consent_date": {
                                            "description": "Date and hour of the contact consent",
                                            "type": "string",
                                            "format": "date-time",
                                            "readOnly": true,
                                            "example": "2019-01-01 00:00:00"
                                          },
                                          "subscription_method": {
                                            "description": "Contact subscription method",
                                            "type": "string",
                                            "enum": [
                                              "manual",
                                              "form",
                                              "imported",
                                              "referral",
                                              "api"
                                            ],
                                            "readOnly": true
                                          },
                                          "subscription_date": {
                                            "description": "Date and hour of the contact subscription",
                                            "type": "string",
                                            "format": "date-time",
                                            "readOnly": true,
                                            "example": "2019-01-01 00:00:00"
                                          },
                                          "subscription_form": {
                                            "description": "Contact subscription form",
                                            "type": "integer",
                                            "minimum": 0,
                                            "readOnly": true
                                          },
                                          "unsubscription_method": {
                                            "description": "Contact unsubscription method",
                                            "type": "string",
                                            "enum": [
                                              "manual",
                                              "form",
                                              "unsubscribe_link",
                                              "bounce",
                                              "api",
                                              ""
                                            ],
                                            "readOnly": true
                                          },
                                          "unsubscription_reason": {
                                            "description": "Contact unsubscription reason",
                                            "type": "string",
                                            "enum": [
                                              "not_interested",
                                              "lack_of_time",
                                              "email_address_change",
                                              "spam",
                                              "other",
                                              ""
                                            ],
                                            "readOnly": true
                                          },
                                          "unsubscription_observation": {
                                            "description": "Contact unsubscription observation",
                                            "type": "string",
                                            "readOnly": true,
                                            "example": ""
                                          },
                                          "unsubscription_date": {
                                            "description": "Contact unsubscription date",
                                            "type": "string",
                                            "format": "date-time",
                                            "readOnly": true,
                                            "example": "0000-00-00 00:00:00"
                                          },
                                          "change_date": {
                                            "description": "Last modification date of the contact",
                                            "type": "string",
                                            "format": "date",
                                            "readOnly": true,
                                            "example": "0000-00-00 00:00:00"
                                          },
                                          "first_name": {
                                            "description": "First name of the contact",
                                            "type": "string",
                                            "example": "John"
                                          },
                                          "last_name": {
                                            "description": "Last name of the contact",
                                            "type": "string",
                                            "example": "Doe"
                                          },
                                          "birth_date": {
                                            "description": "Birth date of the contact",
                                            "type": "string",
                                            "format": "date",
                                            "example": "1975-01-10"
                                          },
                                          "language": {
                                            "title": "language",
                                            "description": "Current language",
                                            "type": "string",
                                            "default": "en",
                                            "enum": [
                                              "en",
                                              "pt",
                                              "br",
                                              "es",
                                              "de",
                                              "hu",
                                              "fr"
                                            ]
                                          },
                                          "email": {
                                            "description": "Email of the contact",
                                            "type": "string",
                                            "example": "example@e-goi.com"
                                          },
                                          "email_status": {
                                            "description": "Email channel status",
                                            "type": "string",
                                            "default": "active",
                                            "enum": [
                                              "active",
                                              "inactive"
                                            ],
                                            "readOnly": true
                                          },
                                          "cellphone": {
                                            "description": "Cellphone of the contact",
                                            "type": "string",
                                            "example": "351-300404336"
                                          },
                                          "cellphone_status": {
                                            "description": "Cellphone channel status",
                                            "type": "string",
                                            "default": "active",
                                            "enum": [
                                              "active",
                                              "inactive"
                                            ],
                                            "readOnly": true
                                          },
                                          "phone": {
                                            "description": "Phone of the contact",
                                            "type": "string",
                                            "example": "351-300404336"
                                          },
                                          "phone_status": {
                                            "description": "Phone channel status",
                                            "type": "string",
                                            "default": "active",
                                            "enum": [
                                              "active",
                                              "inactive"
                                            ],
                                            "readOnly": true
                                          },
                                          "push_token_android": {
                                            "description": "Android push token of the contact",
                                            "type": "array",
                                            "items": {
                                              "properties": {
                                                "app_id": {
                                                  "title": "Push App Id",
                                                  "type": "string",
                                                  "pattern": "[a-zA-Z0-9_-]*"
                                                },
                                                "token": {
                                                  "description": "Android push app ID",
                                                  "type": "string"
                                                }
                                              },
                                              "type": "object"
                                            }
                                          },
                                          "push_token_ios": {
                                            "description": "IOS push token of the contact",
                                            "type": "array",
                                            "items": {
                                              "properties": {
                                                "app_id": {
                                                  "title": "Push App Id",
                                                  "type": "string",
                                                  "pattern": "[a-zA-Z0-9_-]*"
                                                },
                                                "token": {
                                                  "description": "Ios push app ID",
                                                  "type": "string"
                                                }
                                              },
                                              "type": "object"
                                            }
                                          }
                                        },
                                        "type": "object"
                                      }
                                    ]
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "Contact",
                                "description": "Contact Extra schema",
                                "properties": {
                                  "extra": {
                                    "description": "Array of the contact's extra fields",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "oneOf": [
                                        {
                                          "title": "ContactExtraFieldDate",
                                          "properties": {
                                            "field_id": {
                                              "title": "ID",
                                              "type": "integer",
                                              "minimum": 1,
                                              "example": 1
                                            },
                                            "format": {
                                              "description": "Extra field format",
                                              "type": "string",
                                              "enum": [
                                                "date"
                                              ],
                                              "readOnly": true
                                            },
                                            "value": {
                                              "description": "Extra field value",
                                              "type": "string",
                                              "format": "date",
                                              "example": "2019-01-01"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        {
                                          "title": "ContactExtraFieldText",
                                          "properties": {
                                            "field_id": {
                                              "title": "ID",
                                              "type": "integer",
                                              "minimum": 1,
                                              "example": 1
                                            },
                                            "format": {
                                              "description": "Extra field format",
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ],
                                              "readOnly": true
                                            },
                                            "value": {
                                              "description": "Extra field value",
                                              "type": "string"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        {
                                          "title": "ContactExtraFieldCellphone",
                                          "properties": {
                                            "field_id": {
                                              "title": "ID",
                                              "type": "integer",
                                              "minimum": 1,
                                              "example": 1
                                            },
                                            "format": {
                                              "description": "Extra field format",
                                              "type": "string",
                                              "enum": [
                                                "cellphone"
                                              ],
                                              "readOnly": true
                                            },
                                            "value": {
                                              "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                              "type": "string",
                                              "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                              "example": "351-300404336"
                                            },
                                            "status": {
                                              "description": "Extra field status",
                                              "type": "string",
                                              "enum": [
                                                "active",
                                                "inactive"
                                              ]
                                            }
                                          },
                                          "type": "object"
                                        },
                                        {
                                          "title": "ContactExtraFieldPhone",
                                          "properties": {
                                            "field_id": {
                                              "title": "ID",
                                              "type": "integer",
                                              "minimum": 1,
                                              "example": 1
                                            },
                                            "format": {
                                              "description": "Extra field format",
                                              "type": "string",
                                              "enum": [
                                                "phone"
                                              ],
                                              "readOnly": true
                                            },
                                            "value": {
                                              "description": "Phone value (country code followed by phone number, split by '-')",
                                              "type": "string",
                                              "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                              "example": "351-300404336"
                                            },
                                            "status": {
                                              "description": "Extra field status",
                                              "type": "string",
                                              "enum": [
                                                "active",
                                                "inactive"
                                              ]
                                            }
                                          },
                                          "type": "object"
                                        },
                                        {
                                          "title": "ContactExtraFieldNumber",
                                          "properties": {
                                            "field_id": {
                                              "title": "ID",
                                              "type": "integer",
                                              "minimum": 1,
                                              "example": 1
                                            },
                                            "format": {
                                              "description": "Extra field format",
                                              "type": "string",
                                              "enum": [
                                                "number"
                                              ],
                                              "readOnly": true
                                            },
                                            "value": {
                                              "description": "Extra field value",
                                              "type": "string",
                                              "example": "100"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        {
                                          "title": "ContactExtraFieldEmail",
                                          "properties": {
                                            "field_id": {
                                              "title": "ID",
                                              "type": "integer",
                                              "minimum": 1,
                                              "example": 1
                                            },
                                            "format": {
                                              "description": "Extra field format",
                                              "type": "string",
                                              "enum": [
                                                "email"
                                              ],
                                              "readOnly": true
                                            },
                                            "value": {
                                              "description": "Extra field value",
                                              "type": "string"
                                            },
                                            "status": {
                                              "description": "Extra field status",
                                              "type": "string",
                                              "enum": [
                                                "active",
                                                "inactive"
                                              ]
                                            }
                                          },
                                          "type": "object"
                                        },
                                        {
                                          "title": "ContactExtraFieldOptions",
                                          "properties": {
                                            "field_id": {
                                              "title": "ID",
                                              "type": "integer",
                                              "minimum": 1,
                                              "example": 1
                                            },
                                            "format": {
                                              "description": "Extra field format",
                                              "type": "string",
                                              "enum": [
                                                "options"
                                              ],
                                              "readOnly": true
                                            },
                                            "value": {
                                              "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                              "type": "array",
                                              "items": {
                                                "type": "integer"
                                              },
                                              "example": [
                                                1,
                                                2
                                              ]
                                            }
                                          },
                                          "type": "object"
                                        }
                                      ]
                                    }
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          {
                            "properties": {
                              "tags": {
                                "description": "Array of tags for this contact",
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                },
                                "readOnly": true,
                                "example": [
                                  1,
                                  2
                                ]
                              }
                            },
                            "type": "object"
                          }
                        ],
                        "x-sort-index": 1
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/lists/<integer>/contacts/segment/<string>?offset=<integer>&limit=10&show_removed=false' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/contacts/segment/<string>?offset=<integer>&limit=10&show_removed=false\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/contacts/segment/<string>?offset=<integer>&limit=10&show_removed=false\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/lists/<integer>/contacts/segment/<string>?offset=<integer>&limit=10&show_removed=false\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/contacts/segment/<string>?offset=<integer>&limit=10&show_removed=false\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/lists/<integer>/contacts/segment/<string>?offset=<integer>&limit=10&show_removed=false\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/contacts/segment/<string>?offset=<integer>&limit=10&show_removed=false\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/cnames": {
      "get": {
        "tags": [
          "CNames"
        ],
        "summary": "Get All CNames",
        "description": "Returns all cnames",
        "operationId": "getAllCNames",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "CNamesCollection",
                  "description": "Collection of cnames",
                  "properties": {
                    "total_items": {
                      "description": "Total number of cnames returned",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned cnames",
                      "type": "array",
                      "items": {
                        "title": "CName",
                        "description": "CName schema",
                        "properties": {
                          "cname_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "value": {
                            "description": "CName value",
                            "type": "string",
                            "example": "mkt.example.com"
                          },
                          "status": {
                            "description": "CName status",
                            "type": "string",
                            "enum": [
                              "verified",
                              "unverified",
                              "recent",
                              "invalid",
                              "private"
                            ],
                            "readOnly": true
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/cnames' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/cnames\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/cnames\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/cnames\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/cnames\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/cnames\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/cnames\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "CNames"
        ],
        "summary": "Create cname",
        "description": "Creates a cnames",
        "operationId": "createCName",
        "requestBody": {
          "description": "Parameters for the cname",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "CName",
                "description": "CName schema",
                "properties": {
                  "value": {
                    "description": "CName value",
                    "type": "string",
                    "example": "mkt.example.com"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "CName",
                  "description": "CName schema",
                  "properties": {
                    "cname_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "value": {
                      "description": "CName value",
                      "type": "string",
                      "example": "mkt.example.com"
                    },
                    "status": {
                      "description": "CName status",
                      "type": "string",
                      "enum": [
                        "verified",
                        "unverified",
                        "recent",
                        "invalid",
                        "private"
                      ],
                      "readOnly": true
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "PostCNameConflict",
                  "description": "Error schema for post lists conflicts",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "cname_exists",
                      "description": "Error schema for conflict when the provided cname already exists",
                      "properties": {
                        "errors": {
                          "properties": {
                            "cname_exists": {
                              "description": "Occurs when the provided cname already exists",
                              "type": "string",
                              "enum": [
                                "The provided cname already exists"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/cnames' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"value\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/cnames\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"value\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"value\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/cnames\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"value\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/cnames\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/cnames\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"value\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"value\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/cnames\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/cnames\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"value\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/{domain}/carts": {
      "post": {
        "tags": [
          "Ecommerce"
        ],
        "summary": "Create cart",
        "description": "Creates a new cart. If ***contact_id*** is specified, order will be atached to the contact, if the contact propreties are specified, we'll create the user, if its already in your list it will get the correct contact (**make sure you are sending atleast all configured list's unique fields**). This same logic is also applied to the **product_identifier**.",
        "operationId": "createCart",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "description": "Domain or phisical store alias are accepted",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Carts",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Cart",
                "description": "Cart schema",
                "properties": {
                  "cart_id": {
                    "description": "Cart ID is any non-empty unique string",
                    "type": "string",
                    "example": "cart1"
                  },
                  "cart_total": {
                    "description": "Ecommerce cart total",
                    "type": "number",
                    "format": "double",
                    "example": 1
                  },
                  "cart_url": {
                    "description": "Valid url for a this cart recovery",
                    "type": "string",
                    "example": "https://example.com/?recover=1&cart_id=8f3a27ef26"
                  },
                  "contact": {
                    "title": "Contact",
                    "description": "Contact",
                    "type": "object",
                    "allOf": [
                      {
                        "title": "Contact",
                        "description": "Contact Base and Extra schema with contact_id",
                        "type": "object",
                        "allOf": [
                          {
                            "title": "Contact",
                            "description": "Contact base with contact_id",
                            "properties": {
                              "base": {
                                "description": "Contact base fields with contact_id",
                                "type": "object",
                                "allOf": [
                                  {
                                    "properties": {
                                      "contact_id": {
                                        "type": "string",
                                        "pattern": "[a-fA-F\\d]{10}",
                                        "example": "8f3a27ef26"
                                      },
                                      "status": {
                                        "description": "Status of the contact",
                                        "type": "string",
                                        "default": "active",
                                        "enum": [
                                          "active",
                                          "inactive",
                                          "removed",
                                          "unconfirmed"
                                        ]
                                      },
                                      "consent": {
                                        "description": "Contact consent",
                                        "type": "string",
                                        "default": "consent",
                                        "enum": [
                                          "any",
                                          "consent",
                                          "contract",
                                          "legitimate_interest",
                                          "none",
                                          "protect_vital_interests",
                                          "public_interests",
                                          "required_by_law",
                                          "withdrawn"
                                        ],
                                        "readOnly": true
                                      },
                                      "consent_date": {
                                        "description": "Date and hour of the contact consent",
                                        "type": "string",
                                        "format": "date-time",
                                        "readOnly": true,
                                        "example": "2019-01-01 00:00:00"
                                      },
                                      "subscription_method": {
                                        "description": "Contact subscription method",
                                        "type": "string",
                                        "enum": [
                                          "manual",
                                          "form",
                                          "imported",
                                          "referral",
                                          "api"
                                        ],
                                        "readOnly": true
                                      },
                                      "subscription_date": {
                                        "description": "Date and hour of the contact subscription",
                                        "type": "string",
                                        "format": "date-time",
                                        "readOnly": true,
                                        "example": "2019-01-01 00:00:00"
                                      },
                                      "subscription_form": {
                                        "description": "Contact subscription form",
                                        "type": "integer",
                                        "minimum": 0,
                                        "readOnly": true
                                      },
                                      "unsubscription_method": {
                                        "description": "Contact unsubscription method",
                                        "type": "string",
                                        "enum": [
                                          "manual",
                                          "form",
                                          "unsubscribe_link",
                                          "bounce",
                                          "api",
                                          ""
                                        ],
                                        "readOnly": true
                                      },
                                      "unsubscription_reason": {
                                        "description": "Contact unsubscription reason",
                                        "type": "string",
                                        "enum": [
                                          "not_interested",
                                          "lack_of_time",
                                          "email_address_change",
                                          "spam",
                                          "other",
                                          ""
                                        ],
                                        "readOnly": true
                                      },
                                      "unsubscription_observation": {
                                        "description": "Contact unsubscription observation",
                                        "type": "string",
                                        "readOnly": true,
                                        "example": ""
                                      },
                                      "unsubscription_date": {
                                        "description": "Contact unsubscription date",
                                        "type": "string",
                                        "format": "date-time",
                                        "readOnly": true,
                                        "example": "0000-00-00 00:00:00"
                                      },
                                      "change_date": {
                                        "description": "Last modification date of the contact",
                                        "type": "string",
                                        "format": "date",
                                        "readOnly": true,
                                        "example": "0000-00-00 00:00:00"
                                      },
                                      "first_name": {
                                        "description": "First name of the contact",
                                        "type": "string",
                                        "example": "John"
                                      },
                                      "last_name": {
                                        "description": "Last name of the contact",
                                        "type": "string",
                                        "example": "Doe"
                                      },
                                      "birth_date": {
                                        "description": "Birth date of the contact",
                                        "type": "string",
                                        "format": "date",
                                        "example": "1975-01-10"
                                      },
                                      "language": {
                                        "title": "language",
                                        "description": "Current language",
                                        "type": "string",
                                        "default": "en",
                                        "enum": [
                                          "en",
                                          "pt",
                                          "br",
                                          "es",
                                          "de",
                                          "hu",
                                          "fr"
                                        ]
                                      },
                                      "email": {
                                        "description": "Email of the contact",
                                        "type": "string",
                                        "example": "example@e-goi.com"
                                      },
                                      "email_status": {
                                        "description": "Email channel status",
                                        "type": "string",
                                        "default": "active",
                                        "enum": [
                                          "active",
                                          "inactive"
                                        ],
                                        "readOnly": true
                                      },
                                      "cellphone": {
                                        "description": "Cellphone of the contact",
                                        "type": "string",
                                        "example": "351-300404336"
                                      },
                                      "cellphone_status": {
                                        "description": "Cellphone channel status",
                                        "type": "string",
                                        "default": "active",
                                        "enum": [
                                          "active",
                                          "inactive"
                                        ],
                                        "readOnly": true
                                      },
                                      "phone": {
                                        "description": "Phone of the contact",
                                        "type": "string",
                                        "example": "351-300404336"
                                      },
                                      "phone_status": {
                                        "description": "Phone channel status",
                                        "type": "string",
                                        "default": "active",
                                        "enum": [
                                          "active",
                                          "inactive"
                                        ],
                                        "readOnly": true
                                      },
                                      "push_token_android": {
                                        "description": "Android push token of the contact",
                                        "type": "array",
                                        "items": {
                                          "properties": {
                                            "app_id": {
                                              "title": "Push App Id",
                                              "type": "string",
                                              "pattern": "[a-zA-Z0-9_-]*"
                                            },
                                            "token": {
                                              "description": "Android push app ID",
                                              "type": "string"
                                            }
                                          },
                                          "type": "object"
                                        }
                                      },
                                      "push_token_ios": {
                                        "description": "IOS push token of the contact",
                                        "type": "array",
                                        "items": {
                                          "properties": {
                                            "app_id": {
                                              "title": "Push App Id",
                                              "type": "string",
                                              "pattern": "[a-zA-Z0-9_-]*"
                                            },
                                            "token": {
                                              "description": "Ios push app ID",
                                              "type": "string"
                                            }
                                          },
                                          "type": "object"
                                        }
                                      }
                                    },
                                    "type": "object"
                                  }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Contact",
                            "description": "Contact Extra schema",
                            "properties": {
                              "extra": {
                                "description": "Array of the contact's extra fields",
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "oneOf": [
                                    {
                                      "title": "ContactExtraFieldDate",
                                      "properties": {
                                        "field_id": {
                                          "title": "ID",
                                          "type": "integer",
                                          "minimum": 1,
                                          "example": 1
                                        },
                                        "format": {
                                          "description": "Extra field format",
                                          "type": "string",
                                          "enum": [
                                            "date"
                                          ],
                                          "readOnly": true
                                        },
                                        "value": {
                                          "description": "Extra field value",
                                          "type": "string",
                                          "format": "date",
                                          "example": "2019-01-01"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "title": "ContactExtraFieldText",
                                      "properties": {
                                        "field_id": {
                                          "title": "ID",
                                          "type": "integer",
                                          "minimum": 1,
                                          "example": 1
                                        },
                                        "format": {
                                          "description": "Extra field format",
                                          "type": "string",
                                          "enum": [
                                            "text"
                                          ],
                                          "readOnly": true
                                        },
                                        "value": {
                                          "description": "Extra field value",
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "title": "ContactExtraFieldCellphone",
                                      "properties": {
                                        "field_id": {
                                          "title": "ID",
                                          "type": "integer",
                                          "minimum": 1,
                                          "example": 1
                                        },
                                        "format": {
                                          "description": "Extra field format",
                                          "type": "string",
                                          "enum": [
                                            "cellphone"
                                          ],
                                          "readOnly": true
                                        },
                                        "value": {
                                          "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                          "type": "string",
                                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                          "example": "351-300404336"
                                        },
                                        "status": {
                                          "description": "Extra field status",
                                          "type": "string",
                                          "enum": [
                                            "active",
                                            "inactive"
                                          ]
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "title": "ContactExtraFieldPhone",
                                      "properties": {
                                        "field_id": {
                                          "title": "ID",
                                          "type": "integer",
                                          "minimum": 1,
                                          "example": 1
                                        },
                                        "format": {
                                          "description": "Extra field format",
                                          "type": "string",
                                          "enum": [
                                            "phone"
                                          ],
                                          "readOnly": true
                                        },
                                        "value": {
                                          "description": "Phone value (country code followed by phone number, split by '-')",
                                          "type": "string",
                                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                          "example": "351-300404336"
                                        },
                                        "status": {
                                          "description": "Extra field status",
                                          "type": "string",
                                          "enum": [
                                            "active",
                                            "inactive"
                                          ]
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "title": "ContactExtraFieldNumber",
                                      "properties": {
                                        "field_id": {
                                          "title": "ID",
                                          "type": "integer",
                                          "minimum": 1,
                                          "example": 1
                                        },
                                        "format": {
                                          "description": "Extra field format",
                                          "type": "string",
                                          "enum": [
                                            "number"
                                          ],
                                          "readOnly": true
                                        },
                                        "value": {
                                          "description": "Extra field value",
                                          "type": "string",
                                          "example": "100"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "title": "ContactExtraFieldEmail",
                                      "properties": {
                                        "field_id": {
                                          "title": "ID",
                                          "type": "integer",
                                          "minimum": 1,
                                          "example": 1
                                        },
                                        "format": {
                                          "description": "Extra field format",
                                          "type": "string",
                                          "enum": [
                                            "email"
                                          ],
                                          "readOnly": true
                                        },
                                        "value": {
                                          "description": "Extra field value",
                                          "type": "string"
                                        },
                                        "status": {
                                          "description": "Extra field status",
                                          "type": "string",
                                          "enum": [
                                            "active",
                                            "inactive"
                                          ]
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "title": "ContactExtraFieldOptions",
                                      "properties": {
                                        "field_id": {
                                          "title": "ID",
                                          "type": "integer",
                                          "minimum": 1,
                                          "example": 1
                                        },
                                        "format": {
                                          "description": "Extra field format",
                                          "type": "string",
                                          "enum": [
                                            "options"
                                          ],
                                          "readOnly": true
                                        },
                                        "value": {
                                          "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                          "type": "array",
                                          "items": {
                                            "type": "integer"
                                          },
                                          "example": [
                                            1,
                                            2
                                          ]
                                        }
                                      },
                                      "type": "object"
                                    }
                                  ]
                                }
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    ]
                  },
                  "products": {
                    "description": "List of products",
                    "type": "array",
                    "items": {
                      "title": "Product",
                      "description": "Product schema",
                      "type": "object",
                      "allOf": [
                        {
                          "properties": {
                            "categories": {
                              "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                                syntax",
                              "type": "array",
                              "items": {
                                "type": "string",
                                "example": "Clothing>Women>Blue Jeans"
                              }
                            },
                            "related_products": {
                              "description": "Related products, array of 'product_identifier'",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "custom_attributes": {
                              "description": "Custom attributes",
                              "type": "array",
                              "items": {
                                "title": "Product Custom Attributes",
                                "description": "Product Custom Attributes",
                                "properties": {
                                  "alias": {
                                    "description": "Custom attribute key (lower case without spaces)",
                                    "type": "string",
                                    "example": "sale_price_5"
                                  },
                                  "value": {
                                    "description": "Custom attribute value",
                                    "type": "string",
                                    "example": "15.45"
                                  }
                                },
                                "type": "object"
                              }
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "BasicProduct",
                          "description": "Basic Product schema",
                          "properties": {
                            "product_identifier": {
                              "description": "The ID of the product in your store",
                              "type": "string",
                              "pattern": "[a-zA-Z0-9\\_\\-.]"
                            },
                            "catalog_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "readOnly": true,
                              "example": 1
                            },
                            "name": {
                              "description": "Name of the product",
                              "type": "string",
                              "example": "Product name"
                            },
                            "description": {
                              "description": "Description of the product",
                              "type": "string",
                              "example": "Product description"
                            },
                            "sku": {
                              "description": "Stock Keeping Unit",
                              "type": "string"
                            },
                            "upc": {
                              "description": "Universal Product Code",
                              "type": "string"
                            },
                            "ean": {
                              "description": "European Article Numbering",
                              "type": "string"
                            },
                            "gtin": {
                              "description": "Global Trade Item Number",
                              "type": "string"
                            },
                            "mpn": {
                              "description": "Manufacturer Part Number",
                              "type": "string"
                            },
                            "link": {
                              "description": "Link for the product",
                              "type": "string"
                            },
                            "image_link": {
                              "description": "Link for the product image",
                              "type": "string"
                            },
                            "price": {
                              "description": "Price of the product",
                              "type": "number",
                              "format": "double",
                              "default": 0,
                              "example": 10
                            },
                            "sale_price": {
                              "description": "Sale price of the product",
                              "type": "number",
                              "format": "double",
                              "default": 0,
                              "example": 10
                            },
                            "brand": {
                              "description": "Brand of the product",
                              "type": "string"
                            },
                            "in_stock": {
                              "description": "Stock of the product",
                              "type": "boolean"
                            }
                          },
                          "type": "object"
                        }
                      ]
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/<string>/carts' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"cart_id\":\"<string>\",\"cart_total\":\"<double>\",\"cart_url\":\"<string>\",\"contact\":{\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"cellphone\":\"<string>\",\"phone\":\"<string>\",\"push_token_android\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}],\"push_token_ios\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}]},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}]},\"products\":[{\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}],\"product_identifier\":\"<string>\",\"catalog_id\":\"<integer>\",\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"in_stock\":\"<boolean>\"},{\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}],\"product_identifier\":\"<string>\",\"catalog_id\":\"<integer>\",\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"in_stock\":\"<boolean>\"}]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/<string>/carts\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"cart_id\\\":\\\"<string>\\\",\\\"cart_total\\\":\\\"<double>\\\",\\\"cart_url\\\":\\\"<string>\\\",\\\"contact\\\":{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]},\\\"products\\\":[{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"},{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"cart_id\\\":\\\"<string>\\\",\\\"cart_total\\\":\\\"<double>\\\",\\\"cart_url\\\":\\\"<string>\\\",\\\"contact\\\":{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]},\\\"products\\\":[{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"},{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/<string>/carts\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"cart_id\":\"<string>\",\"cart_total\":\"<double>\",\"cart_url\":\"<string>\",\"contact\":{\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"cellphone\":\"<string>\",\"phone\":\"<string>\",\"push_token_android\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}],\"push_token_ios\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}]},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}]},\"products\":[{\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}],\"product_identifier\":\"<string>\",\"catalog_id\":\"<integer>\",\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"in_stock\":\"<boolean>\"},{\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}],\"product_identifier\":\"<string>\",\"catalog_id\":\"<integer>\",\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"in_stock\":\"<boolean>\"}]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/<string>/carts\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/<string>/carts\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"cart_id\\\":\\\"<string>\\\",\\\"cart_total\\\":\\\"<double>\\\",\\\"cart_url\\\":\\\"<string>\\\",\\\"contact\\\":{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]},\\\"products\\\":[{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"},{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"cart_id\\\":\\\"<string>\\\",\\\"cart_total\\\":\\\"<double>\\\",\\\"cart_url\\\":\\\"<string>\\\",\\\"contact\\\":{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]},\\\"products\\\":[{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"},{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/<string>/carts\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/<string>/carts\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"cart_id\\\":\\\"<string>\\\",\\\"cart_total\\\":\\\"<double>\\\",\\\"cart_url\\\":\\\"<string>\\\",\\\"contact\\\":{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]},\\\"products\\\":[{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"},{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/catalogs": {
      "get": {
        "tags": [
          "Ecommerce"
        ],
        "summary": "Get all catalogs",
        "description": "Returns all catalogs",
        "operationId": "getAllCatalogs",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "CatalogCollection",
                  "description": "Collection of catalogs",
                  "properties": {
                    "total_items": {
                      "description": "Total of returned catalogs",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "List of catalogs",
                      "type": "array",
                      "items": {
                        "title": "Catalog",
                        "description": "Catalog schema",
                        "properties": {
                          "catalog_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "title": {
                            "description": "Title of the catalog",
                            "type": "string",
                            "example": "Catalog title"
                          },
                          "default": {
                            "description": "Default catalog",
                            "type": "boolean",
                            "example": "false"
                          },
                          "domain": {
                            "description": "Domain or phisical store alias",
                            "type": "string",
                            "example": "egoi.com"
                          },
                          "language": {
                            "description": "Language of the catalog",
                            "type": "string",
                            "example": "en"
                          },
                          "currency": {
                            "description": "Currency of the catalog",
                            "type": "string",
                            "example": "eur"
                          },
                          "created": {
                            "readOnly": true,
                            "allOf": [
                              {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              }
                            ]
                          },
                          "updated": {
                            "readOnly": true,
                            "allOf": [
                              {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              }
                            ]
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/catalogs' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/catalogs\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/catalogs\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/catalogs\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/catalogs\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/catalogs\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/catalogs\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Ecommerce"
        ],
        "summary": "Create new catalog",
        "description": "Creates a new catalog",
        "operationId": "createCatalog",
        "requestBody": {
          "description": "Parameters for the Catalog",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "CatalogPostRequest",
                "description": "Catalog post request schema",
                "required": [
                  "title",
                  "language",
                  "currency"
                ],
                "type": "object",
                "allOf": [
                  {
                    "title": "Catalog",
                    "description": "Catalog schema",
                    "properties": {
                      "title": {
                        "description": "Title of the catalog",
                        "type": "string",
                        "example": "Catalog title"
                      },
                      "language": {
                        "description": "Language of the catalog",
                        "type": "string",
                        "example": "en"
                      },
                      "currency": {
                        "description": "Currency of the catalog",
                        "type": "string",
                        "example": "eur"
                      },
                      "default": {
                        "description": "Default catalog",
                        "type": "boolean",
                        "example": "false"
                      },
                      "domain": {
                        "description": "Domain or phisical store alias are accepted",
                        "type": "string",
                        "example": "eur"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Catalog",
                  "description": "Catalog schema",
                  "properties": {
                    "catalog_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "title": {
                      "description": "Title of the catalog",
                      "type": "string",
                      "example": "Catalog title"
                    },
                    "default": {
                      "description": "Default catalog",
                      "type": "boolean",
                      "example": "false"
                    },
                    "domain": {
                      "description": "Domain or phisical store alias",
                      "type": "string",
                      "example": "egoi.com"
                    },
                    "language": {
                      "description": "Language of the catalog",
                      "type": "string",
                      "example": "en"
                    },
                    "currency": {
                      "description": "Currency of the catalog",
                      "type": "string",
                      "example": "eur"
                    },
                    "created": {
                      "readOnly": true,
                      "allOf": [
                        {
                          "title": "date_time",
                          "description": "The date and time",
                          "type": "string",
                          "format": "date-time",
                          "example": "YYYY-MM-DD hh:mm:ss"
                        }
                      ]
                    },
                    "updated": {
                      "readOnly": true,
                      "allOf": [
                        {
                          "title": "date_time",
                          "description": "The date and time",
                          "type": "string",
                          "format": "date-time",
                          "example": "YYYY-MM-DD hh:mm:ss"
                        }
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/catalogs' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"description\":\"Default catalog\",\"type\":\"boolean\",\"example\":\"false\",\"default\":\"<boolean>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/catalogs\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"description\\\":\\\"Default catalog\\\",\\\"type\\\":\\\"boolean\\\",\\\"example\\\":\\\"false\\\",\\\"default\\\":\\\"<boolean>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"description\\\":\\\"Default catalog\\\",\\\"type\\\":\\\"boolean\\\",\\\"example\\\":\\\"false\\\",\\\"default\\\":\\\"<boolean>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/catalogs\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"description\":\"Default catalog\",\"type\":\"boolean\",\"example\":\"false\",\"default\":\"<boolean>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/catalogs\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/catalogs\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"description\\\":\\\"Default catalog\\\",\\\"type\\\":\\\"boolean\\\",\\\"example\\\":\\\"false\\\",\\\"default\\\":\\\"<boolean>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"description\\\":\\\"Default catalog\\\",\\\"type\\\":\\\"boolean\\\",\\\"example\\\":\\\"false\\\",\\\"default\\\":\\\"<boolean>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/catalogs\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/catalogs\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"description\\\":\\\"Default catalog\\\",\\\"type\\\":\\\"boolean\\\",\\\"example\\\":\\\"false\\\",\\\"default\\\":\\\"<boolean>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/catalogs/{catalog_id}": {
      "delete": {
        "tags": [
          "Ecommerce"
        ],
        "summary": "Remove catalog",
        "description": "Remove catalog information given its ID",
        "operationId": "deleteCatalog",
        "parameters": [
          {
            "name": "catalog_id",
            "in": "path",
            "description": "ID of the Catalog",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/catalogs/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/catalogs/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/catalogs/<integer>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/catalogs/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/catalogs/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/catalogs/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/catalogs/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/{domain}/orders": {
      "post": {
        "tags": [
          "Ecommerce"
        ],
        "summary": "Create order",
        "description": "Creates a new order. If **contact_id** is specified, order will be atached to the contact, if the contact propreties are specified, we'll create the user, if its already in your list it will get the correct contact (***make sure you are sending atleast all configured list's unique fields***). This same logic is also applied to the **product_identifier**.",
        "operationId": "CreateOrder",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "description": "Domain or phisical store alias are accepted",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Orders",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "CreateOrder",
                "description": "Create data",
                "required": [
                  "order_id"
                ],
                "properties": {
                  "order_total": {
                    "description": "Ecommerce cart total",
                    "type": "number",
                    "format": "double",
                    "example": 1
                  },
                  "order_id": {
                    "description": "Order ID is any non-empty unique string",
                    "type": "string",
                    "example": "100"
                  },
                  "cart_id": {
                    "description": "Cart ID that originated this order",
                    "type": "string",
                    "example": "cart1"
                  },
                  "order_date": {
                    "description": "Date and hour of the order",
                    "type": "string",
                    "format": "date-time",
                    "example": "2019-01-01 00:00:00"
                  },
                  "order_status": {
                    "description": "Status of the order",
                    "type": "string",
                    "default": "unknown",
                    "enum": [
                      "created",
                      "pending",
                      "canceled",
                      "completed",
                      "unknown",
                      "shipped",
                      "payment_pending",
                      "payment_failed",
                      "paid"
                    ]
                  },
                  "contact": {
                    "title": "Contact",
                    "description": "Contact",
                    "type": "object",
                    "allOf": [
                      {
                        "title": "Contact",
                        "description": "Contact Base and Extra schema with contact_id",
                        "type": "object",
                        "allOf": [
                          {
                            "title": "Contact",
                            "description": "Contact base with contact_id",
                            "properties": {
                              "base": {
                                "description": "Contact base fields with contact_id",
                                "type": "object",
                                "allOf": [
                                  {
                                    "properties": {
                                      "contact_id": {
                                        "type": "string",
                                        "pattern": "[a-fA-F\\d]{10}",
                                        "example": "8f3a27ef26"
                                      },
                                      "status": {
                                        "description": "Status of the contact",
                                        "type": "string",
                                        "default": "active",
                                        "enum": [
                                          "active",
                                          "inactive",
                                          "removed",
                                          "unconfirmed"
                                        ]
                                      },
                                      "consent": {
                                        "description": "Contact consent",
                                        "type": "string",
                                        "default": "consent",
                                        "enum": [
                                          "any",
                                          "consent",
                                          "contract",
                                          "legitimate_interest",
                                          "none",
                                          "protect_vital_interests",
                                          "public_interests",
                                          "required_by_law",
                                          "withdrawn"
                                        ],
                                        "readOnly": true
                                      },
                                      "consent_date": {
                                        "description": "Date and hour of the contact consent",
                                        "type": "string",
                                        "format": "date-time",
                                        "readOnly": true,
                                        "example": "2019-01-01 00:00:00"
                                      },
                                      "subscription_method": {
                                        "description": "Contact subscription method",
                                        "type": "string",
                                        "enum": [
                                          "manual",
                                          "form",
                                          "imported",
                                          "referral",
                                          "api"
                                        ],
                                        "readOnly": true
                                      },
                                      "subscription_date": {
                                        "description": "Date and hour of the contact subscription",
                                        "type": "string",
                                        "format": "date-time",
                                        "readOnly": true,
                                        "example": "2019-01-01 00:00:00"
                                      },
                                      "subscription_form": {
                                        "description": "Contact subscription form",
                                        "type": "integer",
                                        "minimum": 0,
                                        "readOnly": true
                                      },
                                      "unsubscription_method": {
                                        "description": "Contact unsubscription method",
                                        "type": "string",
                                        "enum": [
                                          "manual",
                                          "form",
                                          "unsubscribe_link",
                                          "bounce",
                                          "api",
                                          ""
                                        ],
                                        "readOnly": true
                                      },
                                      "unsubscription_reason": {
                                        "description": "Contact unsubscription reason",
                                        "type": "string",
                                        "enum": [
                                          "not_interested",
                                          "lack_of_time",
                                          "email_address_change",
                                          "spam",
                                          "other",
                                          ""
                                        ],
                                        "readOnly": true
                                      },
                                      "unsubscription_observation": {
                                        "description": "Contact unsubscription observation",
                                        "type": "string",
                                        "readOnly": true,
                                        "example": ""
                                      },
                                      "unsubscription_date": {
                                        "description": "Contact unsubscription date",
                                        "type": "string",
                                        "format": "date-time",
                                        "readOnly": true,
                                        "example": "0000-00-00 00:00:00"
                                      },
                                      "change_date": {
                                        "description": "Last modification date of the contact",
                                        "type": "string",
                                        "format": "date",
                                        "readOnly": true,
                                        "example": "0000-00-00 00:00:00"
                                      },
                                      "first_name": {
                                        "description": "First name of the contact",
                                        "type": "string",
                                        "example": "John"
                                      },
                                      "last_name": {
                                        "description": "Last name of the contact",
                                        "type": "string",
                                        "example": "Doe"
                                      },
                                      "birth_date": {
                                        "description": "Birth date of the contact",
                                        "type": "string",
                                        "format": "date",
                                        "example": "1975-01-10"
                                      },
                                      "language": {
                                        "title": "language",
                                        "description": "Current language",
                                        "type": "string",
                                        "default": "en",
                                        "enum": [
                                          "en",
                                          "pt",
                                          "br",
                                          "es",
                                          "de",
                                          "hu",
                                          "fr"
                                        ]
                                      },
                                      "email": {
                                        "description": "Email of the contact",
                                        "type": "string",
                                        "example": "example@e-goi.com"
                                      },
                                      "email_status": {
                                        "description": "Email channel status",
                                        "type": "string",
                                        "default": "active",
                                        "enum": [
                                          "active",
                                          "inactive"
                                        ],
                                        "readOnly": true
                                      },
                                      "cellphone": {
                                        "description": "Cellphone of the contact",
                                        "type": "string",
                                        "example": "351-300404336"
                                      },
                                      "cellphone_status": {
                                        "description": "Cellphone channel status",
                                        "type": "string",
                                        "default": "active",
                                        "enum": [
                                          "active",
                                          "inactive"
                                        ],
                                        "readOnly": true
                                      },
                                      "phone": {
                                        "description": "Phone of the contact",
                                        "type": "string",
                                        "example": "351-300404336"
                                      },
                                      "phone_status": {
                                        "description": "Phone channel status",
                                        "type": "string",
                                        "default": "active",
                                        "enum": [
                                          "active",
                                          "inactive"
                                        ],
                                        "readOnly": true
                                      },
                                      "push_token_android": {
                                        "description": "Android push token of the contact",
                                        "type": "array",
                                        "items": {
                                          "properties": {
                                            "app_id": {
                                              "title": "Push App Id",
                                              "type": "string",
                                              "pattern": "[a-zA-Z0-9_-]*"
                                            },
                                            "token": {
                                              "description": "Android push app ID",
                                              "type": "string"
                                            }
                                          },
                                          "type": "object"
                                        }
                                      },
                                      "push_token_ios": {
                                        "description": "IOS push token of the contact",
                                        "type": "array",
                                        "items": {
                                          "properties": {
                                            "app_id": {
                                              "title": "Push App Id",
                                              "type": "string",
                                              "pattern": "[a-zA-Z0-9_-]*"
                                            },
                                            "token": {
                                              "description": "Ios push app ID",
                                              "type": "string"
                                            }
                                          },
                                          "type": "object"
                                        }
                                      }
                                    },
                                    "type": "object"
                                  }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Contact",
                            "description": "Contact Extra schema",
                            "properties": {
                              "extra": {
                                "description": "Array of the contact's extra fields",
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "oneOf": [
                                    {
                                      "title": "ContactExtraFieldDate",
                                      "properties": {
                                        "field_id": {
                                          "title": "ID",
                                          "type": "integer",
                                          "minimum": 1,
                                          "example": 1
                                        },
                                        "format": {
                                          "description": "Extra field format",
                                          "type": "string",
                                          "enum": [
                                            "date"
                                          ],
                                          "readOnly": true
                                        },
                                        "value": {
                                          "description": "Extra field value",
                                          "type": "string",
                                          "format": "date",
                                          "example": "2019-01-01"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "title": "ContactExtraFieldText",
                                      "properties": {
                                        "field_id": {
                                          "title": "ID",
                                          "type": "integer",
                                          "minimum": 1,
                                          "example": 1
                                        },
                                        "format": {
                                          "description": "Extra field format",
                                          "type": "string",
                                          "enum": [
                                            "text"
                                          ],
                                          "readOnly": true
                                        },
                                        "value": {
                                          "description": "Extra field value",
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "title": "ContactExtraFieldCellphone",
                                      "properties": {
                                        "field_id": {
                                          "title": "ID",
                                          "type": "integer",
                                          "minimum": 1,
                                          "example": 1
                                        },
                                        "format": {
                                          "description": "Extra field format",
                                          "type": "string",
                                          "enum": [
                                            "cellphone"
                                          ],
                                          "readOnly": true
                                        },
                                        "value": {
                                          "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                          "type": "string",
                                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                          "example": "351-300404336"
                                        },
                                        "status": {
                                          "description": "Extra field status",
                                          "type": "string",
                                          "enum": [
                                            "active",
                                            "inactive"
                                          ]
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "title": "ContactExtraFieldPhone",
                                      "properties": {
                                        "field_id": {
                                          "title": "ID",
                                          "type": "integer",
                                          "minimum": 1,
                                          "example": 1
                                        },
                                        "format": {
                                          "description": "Extra field format",
                                          "type": "string",
                                          "enum": [
                                            "phone"
                                          ],
                                          "readOnly": true
                                        },
                                        "value": {
                                          "description": "Phone value (country code followed by phone number, split by '-')",
                                          "type": "string",
                                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                          "example": "351-300404336"
                                        },
                                        "status": {
                                          "description": "Extra field status",
                                          "type": "string",
                                          "enum": [
                                            "active",
                                            "inactive"
                                          ]
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "title": "ContactExtraFieldNumber",
                                      "properties": {
                                        "field_id": {
                                          "title": "ID",
                                          "type": "integer",
                                          "minimum": 1,
                                          "example": 1
                                        },
                                        "format": {
                                          "description": "Extra field format",
                                          "type": "string",
                                          "enum": [
                                            "number"
                                          ],
                                          "readOnly": true
                                        },
                                        "value": {
                                          "description": "Extra field value",
                                          "type": "string",
                                          "example": "100"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "title": "ContactExtraFieldEmail",
                                      "properties": {
                                        "field_id": {
                                          "title": "ID",
                                          "type": "integer",
                                          "minimum": 1,
                                          "example": 1
                                        },
                                        "format": {
                                          "description": "Extra field format",
                                          "type": "string",
                                          "enum": [
                                            "email"
                                          ],
                                          "readOnly": true
                                        },
                                        "value": {
                                          "description": "Extra field value",
                                          "type": "string"
                                        },
                                        "status": {
                                          "description": "Extra field status",
                                          "type": "string",
                                          "enum": [
                                            "active",
                                            "inactive"
                                          ]
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "title": "ContactExtraFieldOptions",
                                      "properties": {
                                        "field_id": {
                                          "title": "ID",
                                          "type": "integer",
                                          "minimum": 1,
                                          "example": 1
                                        },
                                        "format": {
                                          "description": "Extra field format",
                                          "type": "string",
                                          "enum": [
                                            "options"
                                          ],
                                          "readOnly": true
                                        },
                                        "value": {
                                          "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                          "type": "array",
                                          "items": {
                                            "type": "integer"
                                          },
                                          "example": [
                                            1,
                                            2
                                          ]
                                        }
                                      },
                                      "type": "object"
                                    }
                                  ]
                                }
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    ]
                  },
                  "products": {
                    "description": "List of products",
                    "type": "array",
                    "items": {
                      "title": "OrderProduct",
                      "description": "Order Product schema",
                      "properties": {
                        "product_identifier": {
                          "description": "The ID of the product in your store",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9\\_\\-.]"
                        },
                        "catalog_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "readOnly": true,
                          "example": 1
                        },
                        "name": {
                          "description": "Name of the product",
                          "type": "string",
                          "example": "Product name"
                        },
                        "description": {
                          "description": "Description of the product",
                          "type": "string",
                          "example": "Product description"
                        },
                        "sku": {
                          "description": "Stock Keeping Unit",
                          "type": "string"
                        },
                        "upc": {
                          "description": "Universal Product Code",
                          "type": "string"
                        },
                        "ean": {
                          "description": "European Article Numbering",
                          "type": "string"
                        },
                        "gtin": {
                          "description": "Global Trade Item Number",
                          "type": "string"
                        },
                        "mpn": {
                          "description": "Manufacturer Part Number",
                          "type": "string"
                        },
                        "link": {
                          "description": "Link for the product",
                          "type": "string"
                        },
                        "image_link": {
                          "description": "Link for the product image",
                          "type": "string"
                        },
                        "price": {
                          "description": "Price of the product",
                          "type": "number",
                          "format": "double",
                          "default": 0,
                          "example": 10
                        },
                        "sale_price": {
                          "description": "Sale price of the product",
                          "type": "number",
                          "format": "double",
                          "default": 0,
                          "example": 10
                        },
                        "brand": {
                          "description": "Brand of the product",
                          "type": "string"
                        },
                        "quantity": {
                          "description": "Quantity of the product",
                          "type": "number",
                          "format": "double",
                          "default": 0
                        },
                        "categories": {
                          "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb syntax",
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "Clothing>Women>Blue Jeans"
                          }
                        },
                        "related_products": {
                          "description": "Related products, array of 'product_identifier'",
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "custom_attributes": {
                          "description": "Custom attributes",
                          "type": "array",
                          "items": {
                            "title": "Product Custom Attributes",
                            "description": "Product Custom Attributes",
                            "properties": {
                              "alias": {
                                "description": "Custom attribute key (lower case without spaces)",
                                "type": "string",
                                "example": "sale_price_5"
                              },
                              "value": {
                                "description": "Custom attribute value",
                                "type": "string",
                                "example": "15.45"
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "413": {
            "description": "Request Entity Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Entity Too Large",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Entity Too Large"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 314
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is refusing to process a request because the request entity is larger than the server is willing or able to process."
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/<string>/orders' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"order_id\":\"<string>\",\"order_total\":\"<double>\",\"cart_id\":\"<string>\",\"order_date\":\"<dateTime>\",\"order_status\":\"unknown\",\"contact\":{\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"cellphone\":\"<string>\",\"phone\":\"<string>\",\"push_token_android\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}],\"push_token_ios\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}]},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}]},\"products\":[{\"product_identifier\":\"<string>\",\"catalog_id\":\"<integer>\",\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"quantity\":0,\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}]},{\"product_identifier\":\"<string>\",\"catalog_id\":\"<integer>\",\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"quantity\":0,\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}]}]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/<string>/orders\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"order_id\\\":\\\"<string>\\\",\\\"order_total\\\":\\\"<double>\\\",\\\"cart_id\\\":\\\"<string>\\\",\\\"order_date\\\":\\\"<dateTime>\\\",\\\"order_status\\\":\\\"unknown\\\",\\\"contact\\\":{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]},\\\"products\\\":[{\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"quantity\\\":0,\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]},{\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"quantity\\\":0,\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"order_id\\\":\\\"<string>\\\",\\\"order_total\\\":\\\"<double>\\\",\\\"cart_id\\\":\\\"<string>\\\",\\\"order_date\\\":\\\"<dateTime>\\\",\\\"order_status\\\":\\\"unknown\\\",\\\"contact\\\":{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]},\\\"products\\\":[{\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"quantity\\\":0,\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]},{\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"quantity\\\":0,\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/<string>/orders\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"order_id\":\"<string>\",\"order_total\":\"<double>\",\"cart_id\":\"<string>\",\"order_date\":\"<dateTime>\",\"order_status\":\"unknown\",\"contact\":{\"base\":{\"contact_id\":\"<string>\",\"status\":\"active\",\"first_name\":\"<string>\",\"last_name\":\"<string>\",\"birth_date\":\"<date>\",\"language\":\"en\",\"email\":\"<string>\",\"cellphone\":\"<string>\",\"phone\":\"<string>\",\"push_token_android\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}],\"push_token_ios\":[{\"app_id\":\"<string>\",\"token\":\"<string>\"},{\"app_id\":\"<string>\",\"token\":\"<string>\"}]},\"extra\":[{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"},{\"field_id\":\"<integer>\",\"format\":\"<string>\",\"value\":\"<date>\"}]},\"products\":[{\"product_identifier\":\"<string>\",\"catalog_id\":\"<integer>\",\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"quantity\":0,\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}]},{\"product_identifier\":\"<string>\",\"catalog_id\":\"<integer>\",\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"quantity\":0,\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}]}]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/<string>/orders\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/<string>/orders\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"order_id\\\":\\\"<string>\\\",\\\"order_total\\\":\\\"<double>\\\",\\\"cart_id\\\":\\\"<string>\\\",\\\"order_date\\\":\\\"<dateTime>\\\",\\\"order_status\\\":\\\"unknown\\\",\\\"contact\\\":{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]},\\\"products\\\":[{\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"quantity\\\":0,\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]},{\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"quantity\\\":0,\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"order_id\\\":\\\"<string>\\\",\\\"order_total\\\":\\\"<double>\\\",\\\"cart_id\\\":\\\"<string>\\\",\\\"order_date\\\":\\\"<dateTime>\\\",\\\"order_status\\\":\\\"unknown\\\",\\\"contact\\\":{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]},\\\"products\\\":[{\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"quantity\\\":0,\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]},{\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"quantity\\\":0,\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/<string>/orders\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/<string>/orders\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"order_id\\\":\\\"<string>\\\",\\\"order_total\\\":\\\"<double>\\\",\\\"cart_id\\\":\\\"<string>\\\",\\\"order_date\\\":\\\"<dateTime>\\\",\\\"order_status\\\":\\\"unknown\\\",\\\"contact\\\":{\\\"base\\\":{\\\"contact_id\\\":\\\"<string>\\\",\\\"status\\\":\\\"active\\\",\\\"first_name\\\":\\\"<string>\\\",\\\"last_name\\\":\\\"<string>\\\",\\\"birth_date\\\":\\\"<date>\\\",\\\"language\\\":\\\"en\\\",\\\"email\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"phone\\\":\\\"<string>\\\",\\\"push_token_android\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}],\\\"push_token_ios\\\":[{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"},{\\\"app_id\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\"}]},\\\"extra\\\":[{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"},{\\\"field_id\\\":\\\"<integer>\\\",\\\"format\\\":\\\"<string>\\\",\\\"value\\\":\\\"<date>\\\"}]},\\\"products\\\":[{\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"quantity\\\":0,\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]},{\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"quantity\\\":0,\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/orders": {
      "post": {
        "tags": [
          "Ecommerce"
        ],
        "summary": "Orders import bulk request",
        "description": "Creates new bulk orders syncronization </br>\n     **DISCLAIMER:** stream limits applied. [view here](#section/Stream-Limits 'Stream Limits')",
        "operationId": "ImportOrdersBulk",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Orders",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "ImportOrdersBulk",
                "description": "Orders import bulk request schema",
                "type": "array",
                "items": {
                  "title": "ImportOrdersBulkBulkRequest",
                  "description": "Order data",
                  "required": [
                    "order_id",
                    "contact_id",
                    "revenue",
                    "store_url",
                    "date",
                    "items"
                  ],
                  "properties": {
                    "order_id": {
                      "description": "Ecommerce order id",
                      "type": "string",
                      "example": "100"
                    },
                    "order_status": {
                      "description": "Status of the order",
                      "type": "string",
                      "default": "unknown",
                      "enum": [
                        "created",
                        "pending",
                        "canceled",
                        "completed",
                        "unknown",
                        "shipped",
                        "payment_pending",
                        "payment_failed",
                        "paid"
                      ]
                    },
                    "contact_id": {
                      "description": "Contact ID is any non-empty unique string identifying the user (such as an email address or e-goi uid)",
                      "type": "string",
                      "example": "customer@e-goi.com"
                    },
                    "revenue": {
                      "description": "Ecommerce order revenue.",
                      "type": "number",
                      "example": 100
                    },
                    "store_url": {
                      "description": "Ecommerce store url",
                      "type": "string",
                      "example": "https://www.e-goi.com"
                    },
                    "date": {
                      "description": "Ecommerce order date (For technical reasons, all orders synchronized will have the date of synchronization.)",
                      "allOf": [
                        {
                          "title": "date_time",
                          "description": "The date and time",
                          "type": "string",
                          "format": "date-time",
                          "example": "YYYY-MM-DD hh:mm:ss"
                        }
                      ]
                    },
                    "items": {
                      "description": "Array of ordered products",
                      "type": "array",
                      "items": {
                        "title": "Contact",
                        "description": "Ecommerce Order Items",
                        "required": [
                          "id",
                          "name"
                        ],
                        "properties": {
                          "id": {
                            "description": "Ecommerce order item id",
                            "type": "string",
                            "example": "100"
                          },
                          "name": {
                            "description": "Ecommerce order item name",
                            "type": "string",
                            "example": "Product 1"
                          },
                          "category": {
                            "description": "Ecommerce order item category id (comma separated if more than one)",
                            "type": "string",
                            "example": "10"
                          },
                          "price": {
                            "description": "Ecommerce order item price",
                            "type": "number",
                            "minimum": 0,
                            "example": 100
                          },
                          "quantity": {
                            "description": "Ecommerce order item quantity",
                            "type": "integer",
                            "minimum": 0,
                            "example": 2
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/orders' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '[{\"order_id\":\"<string>\",\"contact_id\":\"<string>\",\"revenue\":\"<number>\",\"store_url\":\"<string>\",\"date\":\"<dateTime>\",\"items\":[{\"id\":\"<string>\",\"name\":\"<string>\",\"category\":\"<string>\",\"price\":\"<number>\",\"quantity\":\"<integer>\"},{\"id\":\"<string>\",\"name\":\"<string>\",\"category\":\"<string>\",\"price\":\"<number>\",\"quantity\":\"<integer>\"}],\"order_status\":\"unknown\"},{\"order_id\":\"<string>\",\"contact_id\":\"<string>\",\"revenue\":\"<number>\",\"store_url\":\"<string>\",\"date\":\"<dateTime>\",\"items\":[{\"id\":\"<string>\",\"name\":\"<string>\",\"category\":\"<string>\",\"price\":\"<number>\",\"quantity\":\"<integer>\"},{\"id\":\"<string>\",\"name\":\"<string>\",\"category\":\"<string>\",\"price\":\"<number>\",\"quantity\":\"<integer>\"}],\"order_status\":\"unknown\"}]'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/orders\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"[{\\\"order_id\\\":\\\"<string>\\\",\\\"contact_id\\\":\\\"<string>\\\",\\\"revenue\\\":\\\"<number>\\\",\\\"store_url\\\":\\\"<string>\\\",\\\"date\\\":\\\"<dateTime>\\\",\\\"items\\\":[{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"},{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"}],\\\"order_status\\\":\\\"unknown\\\"},{\\\"order_id\\\":\\\"<string>\\\",\\\"contact_id\\\":\\\"<string>\\\",\\\"revenue\\\":\\\"<number>\\\",\\\"store_url\\\":\\\"<string>\\\",\\\"date\\\":\\\"<dateTime>\\\",\\\"items\\\":[{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"},{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"}],\\\"order_status\\\":\\\"unknown\\\"}]\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"[{\\\"order_id\\\":\\\"<string>\\\",\\\"contact_id\\\":\\\"<string>\\\",\\\"revenue\\\":\\\"<number>\\\",\\\"store_url\\\":\\\"<string>\\\",\\\"date\\\":\\\"<dateTime>\\\",\\\"items\\\":[{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"},{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"}],\\\"order_status\\\":\\\"unknown\\\"},{\\\"order_id\\\":\\\"<string>\\\",\\\"contact_id\\\":\\\"<string>\\\",\\\"revenue\\\":\\\"<number>\\\",\\\"store_url\\\":\\\"<string>\\\",\\\"date\\\":\\\"<dateTime>\\\",\\\"items\\\":[{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"},{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"}],\\\"order_status\\\":\\\"unknown\\\"}]\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/orders\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify([{\"order_id\":\"<string>\",\"contact_id\":\"<string>\",\"revenue\":\"<number>\",\"store_url\":\"<string>\",\"date\":\"<dateTime>\",\"items\":[{\"id\":\"<string>\",\"name\":\"<string>\",\"category\":\"<string>\",\"price\":\"<number>\",\"quantity\":\"<integer>\"},{\"id\":\"<string>\",\"name\":\"<string>\",\"category\":\"<string>\",\"price\":\"<number>\",\"quantity\":\"<integer>\"}],\"order_status\":\"unknown\"},{\"order_id\":\"<string>\",\"contact_id\":\"<string>\",\"revenue\":\"<number>\",\"store_url\":\"<string>\",\"date\":\"<dateTime>\",\"items\":[{\"id\":\"<string>\",\"name\":\"<string>\",\"category\":\"<string>\",\"price\":\"<number>\",\"quantity\":\"<integer>\"},{\"id\":\"<string>\",\"name\":\"<string>\",\"category\":\"<string>\",\"price\":\"<number>\",\"quantity\":\"<integer>\"}],\"order_status\":\"unknown\"}]);\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/orders\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/orders\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"[{\\\"order_id\\\":\\\"<string>\\\",\\\"contact_id\\\":\\\"<string>\\\",\\\"revenue\\\":\\\"<number>\\\",\\\"store_url\\\":\\\"<string>\\\",\\\"date\\\":\\\"<dateTime>\\\",\\\"items\\\":[{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"},{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"}],\\\"order_status\\\":\\\"unknown\\\"},{\\\"order_id\\\":\\\"<string>\\\",\\\"contact_id\\\":\\\"<string>\\\",\\\"revenue\\\":\\\"<number>\\\",\\\"store_url\\\":\\\"<string>\\\",\\\"date\\\":\\\"<dateTime>\\\",\\\"items\\\":[{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"},{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"}],\\\"order_status\\\":\\\"unknown\\\"}]\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"[{\\\"order_id\\\":\\\"<string>\\\",\\\"contact_id\\\":\\\"<string>\\\",\\\"revenue\\\":\\\"<number>\\\",\\\"store_url\\\":\\\"<string>\\\",\\\"date\\\":\\\"<dateTime>\\\",\\\"items\\\":[{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"},{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"}],\\\"order_status\\\":\\\"unknown\\\"},{\\\"order_id\\\":\\\"<string>\\\",\\\"contact_id\\\":\\\"<string>\\\",\\\"revenue\\\":\\\"<number>\\\",\\\"store_url\\\":\\\"<string>\\\",\\\"date\\\":\\\"<dateTime>\\\",\\\"items\\\":[{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"},{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"}],\\\"order_status\\\":\\\"unknown\\\"}]\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/orders\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/orders\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"[{\\\"order_id\\\":\\\"<string>\\\",\\\"contact_id\\\":\\\"<string>\\\",\\\"revenue\\\":\\\"<number>\\\",\\\"store_url\\\":\\\"<string>\\\",\\\"date\\\":\\\"<dateTime>\\\",\\\"items\\\":[{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"},{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"}],\\\"order_status\\\":\\\"unknown\\\"},{\\\"order_id\\\":\\\"<string>\\\",\\\"contact_id\\\":\\\"<string>\\\",\\\"revenue\\\":\\\"<number>\\\",\\\"store_url\\\":\\\"<string>\\\",\\\"date\\\":\\\"<dateTime>\\\",\\\"items\\\":[{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"},{\\\"id\\\":\\\"<string>\\\",\\\"name\\\":\\\"<string>\\\",\\\"category\\\":\\\"<string>\\\",\\\"price\\\":\\\"<number>\\\",\\\"quantity\\\":\\\"<integer>\\\"}],\\\"order_status\\\":\\\"unknown\\\"}]\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/catalogs/{catalog_id}/products/actions/import": {
      "post": {
        "tags": [
          "Ecommerce"
        ],
        "summary": "Import products",
        "description": "Imports a collection of products</br>\n     **DISCLAIMER:** stream limits applied. [view here](#section/Stream-Limits 'Stream Limits')",
        "operationId": "ImportProducts",
        "parameters": [
          {
            "name": "catalog_id",
            "in": "path",
            "description": "ID of the Catalog",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Product",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "ProductBulkRequest",
                "description": "Product bulk request schema",
                "required": [
                  "products"
                ],
                "properties": {
                  "products": {
                    "description": "Collection of products to import. Products having an incorrect format will be ignored",
                    "type": "array",
                    "items": {
                      "title": "Product",
                      "description": "Product schema",
                      "type": "object",
                      "allOf": [
                        {
                          "properties": {
                            "categories": {
                              "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                                syntax",
                              "type": "array",
                              "items": {
                                "type": "string",
                                "example": "Clothing>Women>Blue Jeans"
                              }
                            },
                            "related_products": {
                              "description": "Related products, array of 'product_identifier'",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "custom_attributes": {
                              "description": "Custom attributes",
                              "type": "array",
                              "items": {
                                "title": "Product Custom Attributes",
                                "description": "Product Custom Attributes",
                                "properties": {
                                  "alias": {
                                    "description": "Custom attribute key (lower case without spaces)",
                                    "type": "string",
                                    "example": "sale_price_5"
                                  },
                                  "value": {
                                    "description": "Custom attribute value",
                                    "type": "string",
                                    "example": "15.45"
                                  }
                                },
                                "type": "object"
                              }
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "BasicProduct",
                          "description": "Basic Product schema",
                          "properties": {
                            "product_identifier": {
                              "description": "The ID of the product in your store",
                              "type": "string",
                              "pattern": "[a-zA-Z0-9\\_\\-.]"
                            },
                            "catalog_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "readOnly": true,
                              "example": 1
                            },
                            "name": {
                              "description": "Name of the product",
                              "type": "string",
                              "example": "Product name"
                            },
                            "description": {
                              "description": "Description of the product",
                              "type": "string",
                              "example": "Product description"
                            },
                            "sku": {
                              "description": "Stock Keeping Unit",
                              "type": "string"
                            },
                            "upc": {
                              "description": "Universal Product Code",
                              "type": "string"
                            },
                            "ean": {
                              "description": "European Article Numbering",
                              "type": "string"
                            },
                            "gtin": {
                              "description": "Global Trade Item Number",
                              "type": "string"
                            },
                            "mpn": {
                              "description": "Manufacturer Part Number",
                              "type": "string"
                            },
                            "link": {
                              "description": "Link for the product",
                              "type": "string"
                            },
                            "image_link": {
                              "description": "Link for the product image",
                              "type": "string"
                            },
                            "price": {
                              "description": "Price of the product",
                              "type": "number",
                              "format": "double",
                              "default": 0,
                              "example": 10
                            },
                            "sale_price": {
                              "description": "Sale price of the product",
                              "type": "number",
                              "format": "double",
                              "default": 0,
                              "example": 10
                            },
                            "brand": {
                              "description": "Brand of the product",
                              "type": "string"
                            },
                            "in_stock": {
                              "description": "Stock of the product",
                              "type": "boolean"
                            }
                          },
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "mode": {
                    "description": "How the import will be processed:\n *                      'rewrite' - catalog content will be erased and then the imported products will be added\n *                      'add' - adds imported products to the catalog without replacing any content. Duplicates will\n                        not be added\n *                      'update' - adds imported products to the catalog and updates any duplicates found",
                    "type": "string",
                    "default": "update",
                    "enum": [
                      "rewrite",
                      "add",
                      "update"
                    ]
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Payload Too Large",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Payload Too Large"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 413
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "Server is refusing to process a request because the request payload is larger than the server is willing or able to process."
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/catalogs/<integer>/products/actions/import' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"products\":[{\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}],\"product_identifier\":\"<string>\",\"catalog_id\":\"<integer>\",\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"in_stock\":\"<boolean>\"},{\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}],\"product_identifier\":\"<string>\",\"catalog_id\":\"<integer>\",\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"in_stock\":\"<boolean>\"}],\"mode\":\"update\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/catalogs/<integer>/products/actions/import\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"products\\\":[{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"},{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}],\\\"mode\\\":\\\"update\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"products\\\":[{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"},{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}],\\\"mode\\\":\\\"update\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/catalogs/<integer>/products/actions/import\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"products\":[{\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}],\"product_identifier\":\"<string>\",\"catalog_id\":\"<integer>\",\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"in_stock\":\"<boolean>\"},{\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}],\"product_identifier\":\"<string>\",\"catalog_id\":\"<integer>\",\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"in_stock\":\"<boolean>\"}],\"mode\":\"update\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/catalogs/<integer>/products/actions/import\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/catalogs/<integer>/products/actions/import\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"products\\\":[{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"},{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}],\\\"mode\\\":\\\"update\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"products\\\":[{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"},{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}],\\\"mode\\\":\\\"update\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/catalogs/<integer>/products/actions/import\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/catalogs/<integer>/products/actions/import\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"products\\\":[{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"},{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}],\\\"mode\\\":\\\"update\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/catalogs/{catalog_id}/products": {
      "get": {
        "tags": [
          "Ecommerce"
        ],
        "summary": "Get all products",
        "description": "Returns all products for the given catalog",
        "operationId": "getAllProducts",
        "parameters": [
          {
            "name": "catalog_id",
            "in": "path",
            "description": "ID of the Catalog",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "product_identifier",
            "in": "query",
            "description": "Filter by product ID in your store",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "[a-zA-Z0-9\\_\\-.]"
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "Filter by name of the product",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "description",
            "in": "query",
            "description": "Filter by description of the product",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sku",
            "in": "query",
            "description": "Filter by Stock Keeping Unit",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upc",
            "in": "query",
            "description": "Filter by Universal Product Code",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ean",
            "in": "query",
            "description": "Filter by European Article Numbering",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gtin",
            "in": "query",
            "description": "Filter by Global Trade Item Number",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mpn",
            "in": "query",
            "description": "Filter by Manufacturer Part Number",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "price",
            "in": "query",
            "description": "Filter by price of the product",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "sale_price",
            "in": "query",
            "description": "Filter by sale price of the product",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "brand",
            "in": "query",
            "description": "Filter by brand of the product",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "custom_attributes",
            "in": "query",
            "description": "Filter by custom attributes of products<div><span class='sc-cJSrbW cWGDGi'> Example: </span> <span class='sc-uJMKN cTkJKI'> 'custom_attributes[alias]=value' </span></div>",
            "required": false,
            "allowEmptyValue": false,
            "style": "deepObject",
            "explode": true,
            "schema": {
              "properties": {
                "alias": {
                  "description": "Custom attribute alias",
                  "type": "string",
                  "example": "value"
                },
                "other_alias": {
                  "description": "Custom attribute alias, defined in import",
                  "type": "string",
                  "example": "value"
                }
              },
              "type": "object"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "ProductCollection",
                  "description": "Collection of products",
                  "properties": {
                    "total_items": {
                      "description": "Total of returned products",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "List of products",
                      "type": "array",
                      "items": {
                        "title": "Product",
                        "description": "Product schema",
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "categories": {
                                "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                                syntax",
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "example": "Clothing>Women>Blue Jeans"
                                }
                              },
                              "related_products": {
                                "description": "Related products, array of 'product_identifier'",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "custom_attributes": {
                                "description": "Custom attributes",
                                "type": "array",
                                "items": {
                                  "title": "Product Custom Attributes",
                                  "description": "Product Custom Attributes",
                                  "properties": {
                                    "alias": {
                                      "description": "Custom attribute key (lower case without spaces)",
                                      "type": "string",
                                      "example": "sale_price_5"
                                    },
                                    "value": {
                                      "description": "Custom attribute value",
                                      "type": "string",
                                      "example": "15.45"
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "BasicProduct",
                            "description": "Basic Product schema",
                            "properties": {
                              "product_identifier": {
                                "description": "The ID of the product in your store",
                                "type": "string",
                                "pattern": "[a-zA-Z0-9\\_\\-.]"
                              },
                              "catalog_id": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "readOnly": true,
                                "example": 1
                              },
                              "name": {
                                "description": "Name of the product",
                                "type": "string",
                                "example": "Product name"
                              },
                              "description": {
                                "description": "Description of the product",
                                "type": "string",
                                "example": "Product description"
                              },
                              "sku": {
                                "description": "Stock Keeping Unit",
                                "type": "string"
                              },
                              "upc": {
                                "description": "Universal Product Code",
                                "type": "string"
                              },
                              "ean": {
                                "description": "European Article Numbering",
                                "type": "string"
                              },
                              "gtin": {
                                "description": "Global Trade Item Number",
                                "type": "string"
                              },
                              "mpn": {
                                "description": "Manufacturer Part Number",
                                "type": "string"
                              },
                              "link": {
                                "description": "Link for the product",
                                "type": "string"
                              },
                              "image_link": {
                                "description": "Link for the product image",
                                "type": "string"
                              },
                              "price": {
                                "description": "Price of the product",
                                "type": "number",
                                "format": "double",
                                "default": 0,
                                "example": 10
                              },
                              "sale_price": {
                                "description": "Sale price of the product",
                                "type": "number",
                                "format": "double",
                                "default": 0,
                                "example": 10
                              },
                              "brand": {
                                "description": "Brand of the product",
                                "type": "string"
                              },
                              "in_stock": {
                                "description": "Stock of the product",
                                "type": "boolean"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/catalogs/<integer>/products?product_identifier=<string>&name=<string>&description=<string>&sku=<string>&upc=<string>&ean=<string>&gtin=<string>&mpn=<string>&price=<number>&sale_price=<number>&brand=<string>&custom_attributes[alias]=<string>&custom_attributes[other_alias]=<string>&offset=<integer>&limit=10' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/catalogs/<integer>/products?product_identifier=<string>&name=<string>&description=<string>&sku=<string>&upc=<string>&ean=<string>&gtin=<string>&mpn=<string>&price=<number>&sale_price=<number>&brand=<string>&custom_attributes[alias]=<string>&custom_attributes[other_alias]=<string>&offset=<integer>&limit=10\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/catalogs/<integer>/products?product_identifier=<string>&name=<string>&description=<string>&sku=<string>&upc=<string>&ean=<string>&gtin=<string>&mpn=<string>&price=<number>&sale_price=<number>&brand=<string>&custom_attributes[alias]=<string>&custom_attributes[other_alias]=<string>&offset=<integer>&limit=10\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/catalogs/<integer>/products?product_identifier=<string>&name=<string>&description=<string>&sku=<string>&upc=<string>&ean=<string>&gtin=<string>&mpn=<string>&price=<number>&sale_price=<number>&brand=<string>&custom_attributes[alias]=<string>&custom_attributes[other_alias]=<string>&offset=<integer>&limit=10\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/catalogs/<integer>/products?product_identifier=<string>&name=<string>&description=<string>&sku=<string>&upc=<string>&ean=<string>&gtin=<string>&mpn=<string>&price=<number>&sale_price=<number>&brand=<string>&custom_attributes[alias]=<string>&custom_attributes[other_alias]=<string>&offset=<integer>&limit=10\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/catalogs/<integer>/products?product_identifier=<string>&name=<string>&description=<string>&sku=<string>&upc=<string>&ean=<string>&gtin=<string>&mpn=<string>&price=<number>&sale_price=<number>&brand=<string>&custom_attributes[alias]=<string>&custom_attributes[other_alias]=<string>&offset=<integer>&limit=10\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/catalogs/<integer>/products?product_identifier=<string>&name=<string>&description=<string>&sku=<string>&upc=<string>&ean=<string>&gtin=<string>&mpn=<string>&price=<number>&sale_price=<number>&brand=<string>&custom_attributes[alias]=<string>&custom_attributes[other_alias]=<string>&offset=<integer>&limit=10\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Ecommerce"
        ],
        "summary": "Create new product",
        "description": "Creates a new product",
        "operationId": "createProduct",
        "parameters": [
          {
            "name": "catalog_id",
            "in": "path",
            "description": "ID of the Catalog",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the Product",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "ProductPostRequest",
                "description": "Product post request schema",
                "required": [
                  "product_identifier",
                  "name"
                ],
                "type": "object",
                "allOf": [
                  {
                    "title": "Product",
                    "description": "Product schema",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "categories": {
                            "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                                syntax",
                            "type": "array",
                            "items": {
                              "type": "string",
                              "example": "Clothing>Women>Blue Jeans"
                            }
                          },
                          "related_products": {
                            "description": "Related products, array of 'product_identifier'",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "custom_attributes": {
                            "description": "Custom attributes",
                            "type": "array",
                            "items": {
                              "title": "Product Custom Attributes",
                              "description": "Product Custom Attributes",
                              "properties": {
                                "alias": {
                                  "description": "Custom attribute key (lower case without spaces)",
                                  "type": "string",
                                  "example": "sale_price_5"
                                },
                                "value": {
                                  "description": "Custom attribute value",
                                  "type": "string",
                                  "example": "15.45"
                                }
                              },
                              "type": "object"
                            }
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "BasicProduct",
                        "description": "Basic Product schema",
                        "properties": {
                          "product_identifier": {
                            "description": "The ID of the product in your store",
                            "type": "string",
                            "pattern": "[a-zA-Z0-9\\_\\-.]"
                          },
                          "catalog_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "name": {
                            "description": "Name of the product",
                            "type": "string",
                            "example": "Product name"
                          },
                          "description": {
                            "description": "Description of the product",
                            "type": "string",
                            "example": "Product description"
                          },
                          "sku": {
                            "description": "Stock Keeping Unit",
                            "type": "string"
                          },
                          "upc": {
                            "description": "Universal Product Code",
                            "type": "string"
                          },
                          "ean": {
                            "description": "European Article Numbering",
                            "type": "string"
                          },
                          "gtin": {
                            "description": "Global Trade Item Number",
                            "type": "string"
                          },
                          "mpn": {
                            "description": "Manufacturer Part Number",
                            "type": "string"
                          },
                          "link": {
                            "description": "Link for the product",
                            "type": "string"
                          },
                          "image_link": {
                            "description": "Link for the product image",
                            "type": "string"
                          },
                          "price": {
                            "description": "Price of the product",
                            "type": "number",
                            "format": "double",
                            "default": 0,
                            "example": 10
                          },
                          "sale_price": {
                            "description": "Sale price of the product",
                            "type": "number",
                            "format": "double",
                            "default": 0,
                            "example": 10
                          },
                          "brand": {
                            "description": "Brand of the product",
                            "type": "string"
                          },
                          "in_stock": {
                            "description": "Stock of the product",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Product",
                  "description": "Product schema",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "categories": {
                          "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                                syntax",
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "Clothing>Women>Blue Jeans"
                          }
                        },
                        "related_products": {
                          "description": "Related products, array of 'product_identifier'",
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "custom_attributes": {
                          "description": "Custom attributes",
                          "type": "array",
                          "items": {
                            "title": "Product Custom Attributes",
                            "description": "Product Custom Attributes",
                            "properties": {
                              "alias": {
                                "description": "Custom attribute key (lower case without spaces)",
                                "type": "string",
                                "example": "sale_price_5"
                              },
                              "value": {
                                "description": "Custom attribute value",
                                "type": "string",
                                "example": "15.45"
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BasicProduct",
                      "description": "Basic Product schema",
                      "properties": {
                        "product_identifier": {
                          "description": "The ID of the product in your store",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9\\_\\-.]"
                        },
                        "catalog_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "readOnly": true,
                          "example": 1
                        },
                        "name": {
                          "description": "Name of the product",
                          "type": "string",
                          "example": "Product name"
                        },
                        "description": {
                          "description": "Description of the product",
                          "type": "string",
                          "example": "Product description"
                        },
                        "sku": {
                          "description": "Stock Keeping Unit",
                          "type": "string"
                        },
                        "upc": {
                          "description": "Universal Product Code",
                          "type": "string"
                        },
                        "ean": {
                          "description": "European Article Numbering",
                          "type": "string"
                        },
                        "gtin": {
                          "description": "Global Trade Item Number",
                          "type": "string"
                        },
                        "mpn": {
                          "description": "Manufacturer Part Number",
                          "type": "string"
                        },
                        "link": {
                          "description": "Link for the product",
                          "type": "string"
                        },
                        "image_link": {
                          "description": "Link for the product image",
                          "type": "string"
                        },
                        "price": {
                          "description": "Price of the product",
                          "type": "number",
                          "format": "double",
                          "default": 0,
                          "example": 10
                        },
                        "sale_price": {
                          "description": "Sale price of the product",
                          "type": "number",
                          "format": "double",
                          "default": 0,
                          "example": 10
                        },
                        "brand": {
                          "description": "Brand of the product",
                          "type": "string"
                        },
                        "in_stock": {
                          "description": "Stock of the product",
                          "type": "boolean"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "PostProductsConflict",
                  "description": "Error schema for post products conflicts",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "product_already_exists",
                      "description": "Error schema for conflict when the provided product already exists in the catalog",
                      "properties": {
                        "errors": {
                          "properties": {
                            "product_already_exists": {
                              "description": "Occurs when the provided product already exists in the catalog",
                              "type": "string",
                              "enum": [
                                "The provided product already exists in the catalog"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/catalogs/<integer>/products' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}],\"product_identifier\":\"<string>\",\"catalog_id\":\"<integer>\",\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"in_stock\":\"<boolean>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/catalogs/<integer>/products\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/catalogs/<integer>/products\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}],\"product_identifier\":\"<string>\",\"catalog_id\":\"<integer>\",\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"in_stock\":\"<boolean>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/catalogs/<integer>/products\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/catalogs/<integer>/products\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/catalogs/<integer>/products\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/catalogs/<integer>/products\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"product_identifier\\\":\\\"<string>\\\",\\\"catalog_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"in_stock\\\":\\\"<boolean>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/catalogs/{catalog_id}/products/{product_identifier}": {
      "get": {
        "tags": [
          "Ecommerce"
        ],
        "summary": "Get product",
        "description": "Returns product information given its ID",
        "operationId": "getProduct",
        "parameters": [
          {
            "name": "catalog_id",
            "in": "path",
            "description": "ID of the Catalog",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "product_identifier",
            "in": "path",
            "description": "ID of the Product",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "[a-zA-Z0-9\\_\\-.]"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Product",
                  "description": "Product schema",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "categories": {
                          "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                                syntax",
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "Clothing>Women>Blue Jeans"
                          }
                        },
                        "related_products": {
                          "description": "Related products, array of 'product_identifier'",
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "custom_attributes": {
                          "description": "Custom attributes",
                          "type": "array",
                          "items": {
                            "title": "Product Custom Attributes",
                            "description": "Product Custom Attributes",
                            "properties": {
                              "alias": {
                                "description": "Custom attribute key (lower case without spaces)",
                                "type": "string",
                                "example": "sale_price_5"
                              },
                              "value": {
                                "description": "Custom attribute value",
                                "type": "string",
                                "example": "15.45"
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BasicProduct",
                      "description": "Basic Product schema",
                      "properties": {
                        "product_identifier": {
                          "description": "The ID of the product in your store",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9\\_\\-.]"
                        },
                        "catalog_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "readOnly": true,
                          "example": 1
                        },
                        "name": {
                          "description": "Name of the product",
                          "type": "string",
                          "example": "Product name"
                        },
                        "description": {
                          "description": "Description of the product",
                          "type": "string",
                          "example": "Product description"
                        },
                        "sku": {
                          "description": "Stock Keeping Unit",
                          "type": "string"
                        },
                        "upc": {
                          "description": "Universal Product Code",
                          "type": "string"
                        },
                        "ean": {
                          "description": "European Article Numbering",
                          "type": "string"
                        },
                        "gtin": {
                          "description": "Global Trade Item Number",
                          "type": "string"
                        },
                        "mpn": {
                          "description": "Manufacturer Part Number",
                          "type": "string"
                        },
                        "link": {
                          "description": "Link for the product",
                          "type": "string"
                        },
                        "image_link": {
                          "description": "Link for the product image",
                          "type": "string"
                        },
                        "price": {
                          "description": "Price of the product",
                          "type": "number",
                          "format": "double",
                          "default": 0,
                          "example": 10
                        },
                        "sale_price": {
                          "description": "Sale price of the product",
                          "type": "number",
                          "format": "double",
                          "default": 0,
                          "example": 10
                        },
                        "brand": {
                          "description": "Brand of the product",
                          "type": "string"
                        },
                        "in_stock": {
                          "description": "Stock of the product",
                          "type": "boolean"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/catalogs/<integer>/products/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/catalogs/<integer>/products/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/catalogs/<integer>/products/<string>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/catalogs/<integer>/products/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/catalogs/<integer>/products/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/catalogs/<integer>/products/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/catalogs/<integer>/products/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "delete": {
        "tags": [
          "Ecommerce"
        ],
        "summary": "Remove product",
        "description": "Remove product information given its ID",
        "operationId": "deleteProduct",
        "parameters": [
          {
            "name": "catalog_id",
            "in": "path",
            "description": "ID of the Catalog",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "product_identifier",
            "in": "path",
            "description": "ID of the Product",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "[a-zA-Z0-9\\_\\-.]"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/catalogs/<integer>/products/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/catalogs/<integer>/products/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/catalogs/<integer>/products/<string>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/catalogs/<integer>/products/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/catalogs/<integer>/products/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/catalogs/<integer>/products/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/catalogs/<integer>/products/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "patch": {
        "tags": [
          "Ecommerce"
        ],
        "summary": "Update product",
        "description": "Updates a product",
        "operationId": "updateProduct",
        "parameters": [
          {
            "name": "catalog_id",
            "in": "path",
            "description": "ID of the Catalog",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "product_identifier",
            "in": "path",
            "description": "ID of the Product",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "[a-zA-Z0-9\\_\\-.]"
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the product",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "ProductPatchRequest",
                "description": "Product patch request schema",
                "properties": {
                  "name": {
                    "description": "Name of the product",
                    "type": "string",
                    "example": "Product name"
                  },
                  "description": {
                    "description": "Description of the product",
                    "type": "string",
                    "example": "Product description"
                  },
                  "sku": {
                    "description": "Stock Keeping Unit",
                    "type": "string"
                  },
                  "upc": {
                    "description": "Universal Product Code",
                    "type": "string"
                  },
                  "ean": {
                    "description": "European Article Numbering",
                    "type": "string"
                  },
                  "gtin": {
                    "description": "Global Trade Item Number",
                    "type": "string"
                  },
                  "mpn": {
                    "description": "Manufacturer Part Number",
                    "type": "string"
                  },
                  "link": {
                    "description": "Link for the product",
                    "type": "string"
                  },
                  "image_link": {
                    "description": "Link for the product image",
                    "type": "string"
                  },
                  "price": {
                    "description": "Price of the product",
                    "type": "number",
                    "format": "double",
                    "default": 0,
                    "example": 10
                  },
                  "sale_price": {
                    "description": "Sale price of the product",
                    "type": "number",
                    "format": "double",
                    "default": 0,
                    "example": 10
                  },
                  "brand": {
                    "description": "Brand of the product",
                    "type": "string"
                  },
                  "categories": {
                    "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                        syntax",
                    "type": "array",
                    "items": {
                      "type": "string",
                      "example": "Clothing>Women>Blue Jeans"
                    }
                  },
                  "related_products": {
                    "description": "Related products, array of 'product_identifier'",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "custom_attributes": {
                    "description": "Custom attributes",
                    "type": "array",
                    "items": {
                      "title": "Product Custom Attributes",
                      "description": "Product Custom Attributes",
                      "properties": {
                        "alias": {
                          "description": "Custom attribute key (lower case without spaces)",
                          "type": "string",
                          "example": "sale_price_5"
                        },
                        "value": {
                          "description": "Custom attribute value",
                          "type": "string",
                          "example": "15.45"
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Product",
                  "description": "Product schema",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "categories": {
                          "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                                syntax",
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "Clothing>Women>Blue Jeans"
                          }
                        },
                        "related_products": {
                          "description": "Related products, array of 'product_identifier'",
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "custom_attributes": {
                          "description": "Custom attributes",
                          "type": "array",
                          "items": {
                            "title": "Product Custom Attributes",
                            "description": "Product Custom Attributes",
                            "properties": {
                              "alias": {
                                "description": "Custom attribute key (lower case without spaces)",
                                "type": "string",
                                "example": "sale_price_5"
                              },
                              "value": {
                                "description": "Custom attribute value",
                                "type": "string",
                                "example": "15.45"
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BasicProduct",
                      "description": "Basic Product schema",
                      "properties": {
                        "product_identifier": {
                          "description": "The ID of the product in your store",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9\\_\\-.]"
                        },
                        "catalog_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "readOnly": true,
                          "example": 1
                        },
                        "name": {
                          "description": "Name of the product",
                          "type": "string",
                          "example": "Product name"
                        },
                        "description": {
                          "description": "Description of the product",
                          "type": "string",
                          "example": "Product description"
                        },
                        "sku": {
                          "description": "Stock Keeping Unit",
                          "type": "string"
                        },
                        "upc": {
                          "description": "Universal Product Code",
                          "type": "string"
                        },
                        "ean": {
                          "description": "European Article Numbering",
                          "type": "string"
                        },
                        "gtin": {
                          "description": "Global Trade Item Number",
                          "type": "string"
                        },
                        "mpn": {
                          "description": "Manufacturer Part Number",
                          "type": "string"
                        },
                        "link": {
                          "description": "Link for the product",
                          "type": "string"
                        },
                        "image_link": {
                          "description": "Link for the product image",
                          "type": "string"
                        },
                        "price": {
                          "description": "Price of the product",
                          "type": "number",
                          "format": "double",
                          "default": 0,
                          "example": 10
                        },
                        "sale_price": {
                          "description": "Sale price of the product",
                          "type": "number",
                          "format": "double",
                          "default": 0,
                          "example": 10
                        },
                        "brand": {
                          "description": "Brand of the product",
                          "type": "string"
                        },
                        "in_stock": {
                          "description": "Stock of the product",
                          "type": "boolean"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PATCH 'api.egoiapp.com/catalogs/<integer>/products/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/catalogs/<integer>/products/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/catalogs/<integer>/products/<string>\")\n    .method(\"PATCH\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"name\":\"<string>\",\"description\":\"<string>\",\"sku\":\"<string>\",\"upc\":\"<string>\",\"ean\":\"<string>\",\"gtin\":\"<string>\",\"mpn\":\"<string>\",\"link\":\"<string>\",\"image_link\":\"<string>\",\"price\":0,\"sale_price\":0,\"brand\":\"<string>\",\"categories\":[\"<string>\",\"<string>\"],\"related_products\":[\"<string>\",\"<string>\"],\"custom_attributes\":[{\"alias\":\"<string>\",\"value\":\"<string>\"},{\"alias\":\"<string>\",\"value\":\"<string>\"}]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PATCH\", \"api.egoiapp.com/catalogs/<integer>/products/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/catalogs/<integer>/products/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PATCH\",\n    CURLOPT_POSTFIELDS =>\"{\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PATCH\", \"/catalogs/<integer>/products/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/catalogs/<integer>/products/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"name\\\":\\\"<string>\\\",\\\"description\\\":\\\"<string>\\\",\\\"sku\\\":\\\"<string>\\\",\\\"upc\\\":\\\"<string>\\\",\\\"ean\\\":\\\"<string>\\\",\\\"gtin\\\":\\\"<string>\\\",\\\"mpn\\\":\\\"<string>\\\",\\\"link\\\":\\\"<string>\\\",\\\"image_link\\\":\\\"<string>\\\",\\\"price\\\":0,\\\"sale_price\\\":0,\\\"brand\\\":\\\"<string>\\\",\\\"categories\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"related_products\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"custom_attributes\\\":[{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"alias\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/fields/base/{field_id}": {
      "patch": {
        "tags": [
          "Fields"
        ],
        "summary": "Update base field",
        "description": "Updates a base field",
        "operationId": "patchBaseField",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "field_id",
            "in": "path",
            "description": "ID of the base field",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the extra field",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "PatchRequestBaseField",
                "description": "Patch request base field schema",
                "properties": {
                  "unique": {
                    "description": "True if the field is unique, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object",
                "readOnly": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Field",
                  "description": "Field schema",
                  "required": [
                    "name",
                    "format"
                  ],
                  "properties": {
                    "field_id": {
                      "description": "Field ID",
                      "type": "string",
                      "readOnly": true
                    },
                    "name": {
                      "description": "Name of the field",
                      "type": "string"
                    },
                    "format": {
                      "description": "Field format",
                      "type": "string",
                      "enum": [
                        "date",
                        "text",
                        "cellphone",
                        "phone",
                        "number",
                        "email",
                        "options"
                      ]
                    },
                    "unique": {
                      "description": "True if the field is unique, false otherwise",
                      "type": "boolean"
                    }
                  },
                  "type": "object",
                  "readOnly": true
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PATCH 'api.egoiapp.com/lists/<integer>/fields/base/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"unique\":\"<boolean>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/fields/base/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"unique\\\":\\\"<boolean>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"unique\\\":\\\"<boolean>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/fields/base/<string>\")\n    .method(\"PATCH\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"unique\":\"<boolean>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PATCH\", \"api.egoiapp.com/lists/<integer>/fields/base/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/fields/base/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PATCH\",\n    CURLOPT_POSTFIELDS =>\"{\\\"unique\\\":\\\"<boolean>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"unique\\\":\\\"<boolean>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PATCH\", \"/lists/<integer>/fields/base/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/fields/base/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"unique\\\":\\\"<boolean>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/fields/extra/{field_id}": {
      "delete": {
        "tags": [
          "Fields"
        ],
        "summary": "Remove extra field",
        "description": "Removes an extra field given its ID",
        "operationId": "deleteExtraField",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "field_id",
            "in": "path",
            "description": "ID of the Field",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "DeleteFieldsConflict",
                  "description": "Error schema for delete fields conflicts",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "field_in_use",
                      "description": "Error schema for conflict when a field is in use",
                      "properties": {
                        "errors": {
                          "properties": {
                            "field_in_use": {
                              "description": "Occurs when a field is in use",
                              "type": "string",
                              "enum": [
                                "The provided extra field is being used in segments or forms"
                              ]
                            },
                            "field_in_use_data": {
                              "description": "Extra information of the conflict",
                              "properties": {
                                "segments": {
                                  "description": "Array of segments where the field is in use",
                                  "type": "array",
                                  "items": {
                                    "type": "integer"
                                  }
                                },
                                "forms": {
                                  "description": "Array of forms where the field is in use",
                                  "type": "array",
                                  "items": {
                                    "type": "integer"
                                  }
                                }
                              },
                              "type": "object"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/lists/<integer>/fields/extra/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/lists/<integer>/fields/extra/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/fields/extra/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/lists/<integer>/fields/extra/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "patch": {
        "tags": [
          "Fields"
        ],
        "summary": "Update extra field",
        "description": "Updates an extra field",
        "operationId": "patchExtraField",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "field_id",
            "in": "path",
            "description": "ID of the Field",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the extra field",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "PatchRequestField",
                "description": "Patch request field schema",
                "properties": {
                  "name": {
                    "description": "Name of the field",
                    "type": "string",
                    "example": "Field name"
                  },
                  "unique": {
                    "description": "True if the field is unique, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object",
                "readOnly": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Field",
                  "description": "Field schema",
                  "required": [
                    "name",
                    "format"
                  ],
                  "properties": {
                    "field_id": {
                      "description": "Field ID",
                      "type": "string",
                      "readOnly": true
                    },
                    "name": {
                      "description": "Name of the field",
                      "type": "string"
                    },
                    "format": {
                      "description": "Field format",
                      "type": "string",
                      "enum": [
                        "date",
                        "text",
                        "cellphone",
                        "phone",
                        "number",
                        "email",
                        "options"
                      ]
                    },
                    "unique": {
                      "description": "True if the field is unique, false otherwise",
                      "type": "boolean"
                    }
                  },
                  "type": "object",
                  "readOnly": true
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PATCH 'api.egoiapp.com/lists/<integer>/fields/extra/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"name\":\"<string>\",\"unique\":\"<boolean>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"<string>\\\",\\\"unique\\\":\\\"<boolean>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"name\\\":\\\"<string>\\\",\\\"unique\\\":\\\"<boolean>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>\")\n    .method(\"PATCH\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"name\":\"<string>\",\"unique\":\"<boolean>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PATCH\", \"api.egoiapp.com/lists/<integer>/fields/extra/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/fields/extra/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PATCH\",\n    CURLOPT_POSTFIELDS =>\"{\\\"name\\\":\\\"<string>\\\",\\\"unique\\\":\\\"<boolean>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"name\\\":\\\"<string>\\\",\\\"unique\\\":\\\"<boolean>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PATCH\", \"/lists/<integer>/fields/extra/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"name\\\":\\\"<string>\\\",\\\"unique\\\":\\\"<boolean>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/fields/extra": {
      "post": {
        "tags": [
          "Fields"
        ],
        "summary": "Create extra field",
        "description": "Creates an extra field",
        "operationId": "createExtraField",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the extra field",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Field",
                "description": "Field schema",
                "required": [
                  "name",
                  "format"
                ],
                "properties": {
                  "field_id": {
                    "description": "Field ID",
                    "type": "string",
                    "readOnly": true
                  },
                  "name": {
                    "description": "Name of the field",
                    "type": "string"
                  },
                  "format": {
                    "description": "Field format",
                    "type": "string",
                    "enum": [
                      "date",
                      "text",
                      "cellphone",
                      "phone",
                      "number",
                      "email",
                      "options"
                    ]
                  },
                  "unique": {
                    "description": "True if the field is unique, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object",
                "readOnly": true
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Field",
                  "description": "Field schema",
                  "required": [
                    "name",
                    "format"
                  ],
                  "properties": {
                    "field_id": {
                      "description": "Field ID",
                      "type": "string",
                      "readOnly": true
                    },
                    "name": {
                      "description": "Name of the field",
                      "type": "string"
                    },
                    "format": {
                      "description": "Field format",
                      "type": "string",
                      "enum": [
                        "date",
                        "text",
                        "cellphone",
                        "phone",
                        "number",
                        "email",
                        "options"
                      ]
                    },
                    "unique": {
                      "description": "True if the field is unique, false otherwise",
                      "type": "boolean"
                    }
                  },
                  "type": "object",
                  "readOnly": true
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/fields/extra' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"name\":\"<string>\",\"format\":\"<string>\",\"unique\":\"<boolean>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/fields/extra\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"<string>\\\",\\\"format\\\":\\\"<string>\\\",\\\"unique\\\":\\\"<boolean>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"name\\\":\\\"<string>\\\",\\\"format\\\":\\\"<string>\\\",\\\"unique\\\":\\\"<boolean>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/fields/extra\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"name\":\"<string>\",\"format\":\"<string>\",\"unique\":\"<boolean>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/fields/extra\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/fields/extra\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"name\\\":\\\"<string>\\\",\\\"format\\\":\\\"<string>\\\",\\\"unique\\\":\\\"<boolean>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"name\\\":\\\"<string>\\\",\\\"format\\\":\\\"<string>\\\",\\\"unique\\\":\\\"<boolean>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/fields/extra\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/fields/extra\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"name\\\":\\\"<string>\\\",\\\"format\\\":\\\"<string>\\\",\\\"unique\\\":\\\"<boolean>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/fields": {
      "get": {
        "tags": [
          "Fields"
        ],
        "summary": "Get all fields",
        "description": "Returns all fields",
        "operationId": "getAllFields",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "title": "ComplexField",
                    "description": "Complex field schema",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "type": {
                            "description": "Field type",
                            "type": "string",
                            "enum": [
                              "base",
                              "extra"
                            ],
                            "readOnly": true
                          },
                          "options": {
                            "description": "Lists of options (only for fields of type 'options')",
                            "type": "array",
                            "items": {
                              "title": "FieldOption",
                              "description": "Field option schema",
                              "properties": {
                                "option_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "readOnly": true,
                                  "example": 1
                                },
                                "en": {
                                  "description": "English option value",
                                  "type": "string",
                                  "example": "English example"
                                },
                                "pt": {
                                  "description": "Portuguese option value",
                                  "type": "string",
                                  "example": "Portuguese example"
                                },
                                "br": {
                                  "description": "Brazilian portuguese option value",
                                  "type": "string",
                                  "example": "Brazilian portuguese example"
                                },
                                "es": {
                                  "description": "Spanish option value",
                                  "type": "string",
                                  "example": "Spanish example"
                                },
                                "de": {
                                  "description": "German option value",
                                  "type": "string",
                                  "example": "German example"
                                },
                                "hu": {
                                  "description": "Hungarian option value",
                                  "type": "string",
                                  "example": "Hungarian example"
                                },
                                "fr": {
                                  "description": "French option value",
                                  "type": "string",
                                  "example": "French example"
                                }
                              },
                              "type": "object"
                            },
                            "readOnly": true
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Field",
                        "description": "Field schema",
                        "required": [
                          "name",
                          "format"
                        ],
                        "properties": {
                          "field_id": {
                            "description": "Field ID",
                            "type": "string",
                            "readOnly": true
                          },
                          "name": {
                            "description": "Name of the field",
                            "type": "string"
                          },
                          "format": {
                            "description": "Field format",
                            "type": "string",
                            "enum": [
                              "date",
                              "text",
                              "cellphone",
                              "phone",
                              "number",
                              "email",
                              "options"
                            ]
                          },
                          "unique": {
                            "description": "True if the field is unique, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object",
                        "readOnly": true
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/lists/<integer>/fields?offset=<integer>&limit=10' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/fields?offset=<integer>&limit=10\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/fields?offset=<integer>&limit=10\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/lists/<integer>/fields?offset=<integer>&limit=10\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/fields?offset=<integer>&limit=10\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/lists/<integer>/fields?offset=<integer>&limit=10\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/fields?offset=<integer>&limit=10\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/fields/extra/{field_id}/options": {
      "get": {
        "tags": [
          "Fields"
        ],
        "summary": "Get all field options",
        "description": "Returns all options of a given field",
        "operationId": "getAllFieldOptions",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "field_id",
            "in": "path",
            "description": "ID of the Field",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "FieldOptionsCollection",
                  "description": "Collection of field options",
                  "properties": {
                    "items": {
                      "description": "Returned field options",
                      "type": "array",
                      "items": {
                        "title": "FieldOption",
                        "description": "Field option schema",
                        "properties": {
                          "option_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "en": {
                            "description": "English option value",
                            "type": "string",
                            "example": "English example"
                          },
                          "pt": {
                            "description": "Portuguese option value",
                            "type": "string",
                            "example": "Portuguese example"
                          },
                          "br": {
                            "description": "Brazilian portuguese option value",
                            "type": "string",
                            "example": "Brazilian portuguese example"
                          },
                          "es": {
                            "description": "Spanish option value",
                            "type": "string",
                            "example": "Spanish example"
                          },
                          "de": {
                            "description": "German option value",
                            "type": "string",
                            "example": "German example"
                          },
                          "hu": {
                            "description": "Hungarian option value",
                            "type": "string",
                            "example": "Hungarian example"
                          },
                          "fr": {
                            "description": "French option value",
                            "type": "string",
                            "example": "French example"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/lists/<integer>/fields/extra/<integer>/options\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Fields"
        ],
        "summary": "Create new field option",
        "description": "Creates a field option",
        "operationId": "createFieldOption",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "field_id",
            "in": "path",
            "description": "ID of the Field",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the field option",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "FieldOption",
                "description": "Field option schema",
                "properties": {
                  "en": {
                    "description": "English option value",
                    "type": "string",
                    "example": "English example"
                  },
                  "pt": {
                    "description": "Portuguese option value",
                    "type": "string",
                    "example": "Portuguese example"
                  },
                  "br": {
                    "description": "Brazilian portuguese option value",
                    "type": "string",
                    "example": "Brazilian portuguese example"
                  },
                  "es": {
                    "description": "Spanish option value",
                    "type": "string",
                    "example": "Spanish example"
                  },
                  "de": {
                    "description": "German option value",
                    "type": "string",
                    "example": "German example"
                  },
                  "hu": {
                    "description": "Hungarian option value",
                    "type": "string",
                    "example": "Hungarian example"
                  },
                  "fr": {
                    "description": "French option value",
                    "type": "string",
                    "example": "French example"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "FieldOption",
                  "description": "Field option schema",
                  "properties": {
                    "option_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "en": {
                      "description": "English option value",
                      "type": "string",
                      "example": "English example"
                    },
                    "pt": {
                      "description": "Portuguese option value",
                      "type": "string",
                      "example": "Portuguese example"
                    },
                    "br": {
                      "description": "Brazilian portuguese option value",
                      "type": "string",
                      "example": "Brazilian portuguese example"
                    },
                    "es": {
                      "description": "Spanish option value",
                      "type": "string",
                      "example": "Spanish example"
                    },
                    "de": {
                      "description": "German option value",
                      "type": "string",
                      "example": "German example"
                    },
                    "hu": {
                      "description": "Hungarian option value",
                      "type": "string",
                      "example": "Hungarian example"
                    },
                    "fr": {
                      "description": "French option value",
                      "type": "string",
                      "example": "French example"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"en\":\"<string>\",\"pt\":\"<string>\",\"br\":\"<string>\",\"es\":\"<string>\",\"de\":\"<string>\",\"hu\":\"<string>\",\"fr\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"en\\\":\\\"<string>\\\",\\\"pt\\\":\\\"<string>\\\",\\\"br\\\":\\\"<string>\\\",\\\"es\\\":\\\"<string>\\\",\\\"de\\\":\\\"<string>\\\",\\\"hu\\\":\\\"<string>\\\",\\\"fr\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"en\\\":\\\"<string>\\\",\\\"pt\\\":\\\"<string>\\\",\\\"br\\\":\\\"<string>\\\",\\\"es\\\":\\\"<string>\\\",\\\"de\\\":\\\"<string>\\\",\\\"hu\\\":\\\"<string>\\\",\\\"fr\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"en\":\"<string>\",\"pt\":\"<string>\",\"br\":\"<string>\",\"es\":\"<string>\",\"de\":\"<string>\",\"hu\":\"<string>\",\"fr\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"en\\\":\\\"<string>\\\",\\\"pt\\\":\\\"<string>\\\",\\\"br\\\":\\\"<string>\\\",\\\"es\\\":\\\"<string>\\\",\\\"de\\\":\\\"<string>\\\",\\\"hu\\\":\\\"<string>\\\",\\\"fr\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"en\\\":\\\"<string>\\\",\\\"pt\\\":\\\"<string>\\\",\\\"br\\\":\\\"<string>\\\",\\\"es\\\":\\\"<string>\\\",\\\"de\\\":\\\"<string>\\\",\\\"hu\\\":\\\"<string>\\\",\\\"fr\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/fields/extra/<integer>/options\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"en\\\":\\\"<string>\\\",\\\"pt\\\":\\\"<string>\\\",\\\"br\\\":\\\"<string>\\\",\\\"es\\\":\\\"<string>\\\",\\\"de\\\":\\\"<string>\\\",\\\"hu\\\":\\\"<string>\\\",\\\"fr\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/fields/extra/{field_id}/options/{option_id}": {
      "delete": {
        "tags": [
          "Fields"
        ],
        "summary": "Deletes an option",
        "description": "Deletes an option of a list of values field",
        "operationId": "deleteFieldOption",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "field_id",
            "in": "path",
            "description": "ID of the Field",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "option_id",
            "in": "path",
            "description": "ID of the field option",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options/<integer>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/lists/<integer>/fields/extra/<integer>/options/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "patch": {
        "tags": [
          "Fields"
        ],
        "summary": "Update field option",
        "description": "Updates a field option",
        "operationId": "updateFieldOption",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "field_id",
            "in": "path",
            "description": "ID of the Field",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "option_id",
            "in": "path",
            "description": "ID of the field option",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the field option",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "FieldOption",
                "description": "Field option schema",
                "properties": {
                  "en": {
                    "description": "English option value",
                    "type": "string",
                    "example": "English example"
                  },
                  "pt": {
                    "description": "Portuguese option value",
                    "type": "string",
                    "example": "Portuguese example"
                  },
                  "br": {
                    "description": "Brazilian portuguese option value",
                    "type": "string",
                    "example": "Brazilian portuguese example"
                  },
                  "es": {
                    "description": "Spanish option value",
                    "type": "string",
                    "example": "Spanish example"
                  },
                  "de": {
                    "description": "German option value",
                    "type": "string",
                    "example": "German example"
                  },
                  "hu": {
                    "description": "Hungarian option value",
                    "type": "string",
                    "example": "Hungarian example"
                  },
                  "fr": {
                    "description": "French option value",
                    "type": "string",
                    "example": "French example"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "FieldOption",
                  "description": "Field option schema",
                  "properties": {
                    "option_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "en": {
                      "description": "English option value",
                      "type": "string",
                      "example": "English example"
                    },
                    "pt": {
                      "description": "Portuguese option value",
                      "type": "string",
                      "example": "Portuguese example"
                    },
                    "br": {
                      "description": "Brazilian portuguese option value",
                      "type": "string",
                      "example": "Brazilian portuguese example"
                    },
                    "es": {
                      "description": "Spanish option value",
                      "type": "string",
                      "example": "Spanish example"
                    },
                    "de": {
                      "description": "German option value",
                      "type": "string",
                      "example": "German example"
                    },
                    "hu": {
                      "description": "Hungarian option value",
                      "type": "string",
                      "example": "Hungarian example"
                    },
                    "fr": {
                      "description": "French option value",
                      "type": "string",
                      "example": "French example"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PATCH 'api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"en\":\"<string>\",\"pt\":\"<string>\",\"br\":\"<string>\",\"es\":\"<string>\",\"de\":\"<string>\",\"hu\":\"<string>\",\"fr\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"en\\\":\\\"<string>\\\",\\\"pt\\\":\\\"<string>\\\",\\\"br\\\":\\\"<string>\\\",\\\"es\\\":\\\"<string>\\\",\\\"de\\\":\\\"<string>\\\",\\\"hu\\\":\\\"<string>\\\",\\\"fr\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"en\\\":\\\"<string>\\\",\\\"pt\\\":\\\"<string>\\\",\\\"br\\\":\\\"<string>\\\",\\\"es\\\":\\\"<string>\\\",\\\"de\\\":\\\"<string>\\\",\\\"hu\\\":\\\"<string>\\\",\\\"fr\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options/<integer>\")\n    .method(\"PATCH\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"en\":\"<string>\",\"pt\":\"<string>\",\"br\":\"<string>\",\"es\":\"<string>\",\"de\":\"<string>\",\"hu\":\"<string>\",\"fr\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PATCH\", \"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PATCH\",\n    CURLOPT_POSTFIELDS =>\"{\\\"en\\\":\\\"<string>\\\",\\\"pt\\\":\\\"<string>\\\",\\\"br\\\":\\\"<string>\\\",\\\"es\\\":\\\"<string>\\\",\\\"de\\\":\\\"<string>\\\",\\\"hu\\\":\\\"<string>\\\",\\\"fr\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"en\\\":\\\"<string>\\\",\\\"pt\\\":\\\"<string>\\\",\\\"br\\\":\\\"<string>\\\",\\\"es\\\":\\\"<string>\\\",\\\"de\\\":\\\"<string>\\\",\\\"hu\\\":\\\"<string>\\\",\\\"fr\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PATCH\", \"/lists/<integer>/fields/extra/<integer>/options/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/fields/extra/<integer>/options/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"en\\\":\\\"<string>\\\",\\\"pt\\\":\\\"<string>\\\",\\\"br\\\":\\\"<string>\\\",\\\"es\\\":\\\"<string>\\\",\\\"de\\\":\\\"<string>\\\",\\\"hu\\\":\\\"<string>\\\",\\\"fr\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists": {
      "get": {
        "tags": [
          "Lists"
        ],
        "summary": "Get all lists",
        "description": "Returns all lists",
        "operationId": "getAllLists",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "Type of order",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "order_by",
            "in": "query",
            "description": "Reference attribute to order lists",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "list_id",
              "enum": [
                "list_id",
                "internal_name",
                "public_name",
                "created",
                "updated"
              ]
            }
          },
          {
            "name": "internal_name",
            "in": "query",
            "description": "Internal name of the list",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "public_name",
            "in": "query",
            "description": "Public name of the list",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_min",
            "in": "query",
            "description": "Created initial date",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "created_max",
            "in": "query",
            "description": "Created finish",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "updated_min",
            "in": "query",
            "description": "Updated initial",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "updated_max",
            "in": "query",
            "description": "Updated finish",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "ListCollection",
                  "description": "Collection of lists",
                  "properties": {
                    "total_items": {
                      "description": "Returned lists",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned lists",
                      "type": "array",
                      "items": {
                        "title": "List",
                        "description": "List schema",
                        "required": [
                          "public_name",
                          "language"
                        ],
                        "properties": {
                          "list_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "internal_name": {
                            "description": "Internal name of the list",
                            "type": "string",
                            "example": "Internal name"
                          },
                          "public_name": {
                            "description": "Public name of the list",
                            "type": "string",
                            "example": "Public name"
                          },
                          "status": {
                            "description": "Status of the list",
                            "type": "string",
                            "enum": [
                              "active",
                              "blocked"
                            ],
                            "readOnly": true,
                            "example": "active"
                          },
                          "group_id": {
                            "description": "ID of the list group",
                            "type": "integer",
                            "readOnly": true
                          },
                          "created": {
                            "readOnly": true,
                            "allOf": [
                              {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              }
                            ]
                          },
                          "updated": {
                            "readOnly": true,
                            "allOf": [
                              {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              }
                            ]
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/lists?offset=<integer>&limit=10&order=desc&order_by=list_id&internal_name=<string>&public_name=<string>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists?offset=<integer>&limit=10&order=desc&order_by=list_id&internal_name=<string>&public_name=<string>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists?offset=<integer>&limit=10&order=desc&order_by=list_id&internal_name=<string>&public_name=<string>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/lists?offset=<integer>&limit=10&order=desc&order_by=list_id&internal_name=<string>&public_name=<string>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists?offset=<integer>&limit=10&order=desc&order_by=list_id&internal_name=<string>&public_name=<string>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/lists?offset=<integer>&limit=10&order=desc&order_by=list_id&internal_name=<string>&public_name=<string>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists?offset=<integer>&limit=10&order=desc&order_by=list_id&internal_name=<string>&public_name=<string>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Lists"
        ],
        "summary": "Create new list",
        "description": "Create a new list",
        "operationId": "createList",
        "requestBody": {
          "description": "Parameters for the List",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "PostRequestList",
                "description": "Post request lists schema",
                "required": [
                  "internal_name"
                ],
                "properties": {
                  "internal_name": {
                    "description": "Internal name of the list",
                    "type": "string",
                    "example": "Internal name"
                  },
                  "public_name": {
                    "description": "Public name of the list. Defaults to internal name if not set",
                    "type": "string",
                    "example": "Public name"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "List",
                  "description": "List schema",
                  "required": [
                    "public_name",
                    "language"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "internal_name": {
                      "description": "Internal name of the list",
                      "type": "string",
                      "example": "Internal name"
                    },
                    "public_name": {
                      "description": "Public name of the list",
                      "type": "string",
                      "example": "Public name"
                    },
                    "status": {
                      "description": "Status of the list",
                      "type": "string",
                      "enum": [
                        "active",
                        "blocked"
                      ],
                      "readOnly": true,
                      "example": "active"
                    },
                    "group_id": {
                      "description": "ID of the list group",
                      "type": "integer",
                      "readOnly": true
                    },
                    "created": {
                      "readOnly": true,
                      "allOf": [
                        {
                          "title": "date_time",
                          "description": "The date and time",
                          "type": "string",
                          "format": "date-time",
                          "example": "YYYY-MM-DD hh:mm:ss"
                        }
                      ]
                    },
                    "updated": {
                      "readOnly": true,
                      "allOf": [
                        {
                          "title": "date_time",
                          "description": "The date and time",
                          "type": "string",
                          "format": "date-time",
                          "example": "YYYY-MM-DD hh:mm:ss"
                        }
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "PostListsConflict",
                  "description": "Error schema for post lists conflicts",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "list_limit_reached",
                      "description": "Error schema for conflict when the account reaches the maximum number of lists allowed in its plan",
                      "properties": {
                        "errors": {
                          "properties": {
                            "list_limit_reached": {
                              "description": "Occurs when an account reaches the maximum number of lists allowed in its plan",
                              "type": "string",
                              "enum": [
                                "The maximum number of allowed lists was reached"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"internal_name\":\"<string>\",\"public_name\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"public_name\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"public_name\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"internal_name\":\"<string>\",\"public_name\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"internal_name\\\":\\\"<string>\\\",\\\"public_name\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"public_name\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"public_name\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}": {
      "get": {
        "tags": [
          "Lists"
        ],
        "summary": "Get list",
        "description": "Returns list information given its ID",
        "operationId": "getList",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "ComplexList",
                  "description": "Complex list schema",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "default_language": {
                          "title": "language",
                          "description": "Current language",
                          "type": "string",
                          "default": "en",
                          "enum": [
                            "en",
                            "pt",
                            "br",
                            "es",
                            "de",
                            "hu",
                            "fr"
                          ]
                        },
                        "available_languages": {
                          "description": "Array of available languages",
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "en"
                          }
                        },
                        "stats": {
                          "description": "Contact stats of the list",
                          "properties": {
                            "total_contacts": {
                              "description": "Number of total contacts in the list",
                              "type": "integer",
                              "example": 1000
                            },
                            "total_active": {
                              "description": "Number of total active contacts in the list",
                              "type": "integer",
                              "example": 900
                            },
                            "total_inactive": {
                              "description": "Number of total inactive contacts in the list",
                              "type": "integer",
                              "example": 30
                            },
                            "total_removed": {
                              "description": "Number of total removed contacts in the list",
                              "type": "integer",
                              "example": 50
                            },
                            "total_unconfirmed": {
                              "description": "Number of total unconfirmed contacts in the list",
                              "type": "integer",
                              "example": 15
                            },
                            "total_waiting_new_confirmation": {
                              "description": "Number of total contacts waiting for new confirmation in the list",
                              "type": "integer",
                              "example": 5
                            }
                          },
                          "type": "object",
                          "readOnly": true
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "List",
                      "description": "List schema",
                      "required": [
                        "public_name",
                        "language"
                      ],
                      "properties": {
                        "list_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "readOnly": true,
                          "example": 1
                        },
                        "internal_name": {
                          "description": "Internal name of the list",
                          "type": "string",
                          "example": "Internal name"
                        },
                        "public_name": {
                          "description": "Public name of the list",
                          "type": "string",
                          "example": "Public name"
                        },
                        "status": {
                          "description": "Status of the list",
                          "type": "string",
                          "enum": [
                            "active",
                            "blocked"
                          ],
                          "readOnly": true,
                          "example": "active"
                        },
                        "group_id": {
                          "description": "ID of the list group",
                          "type": "integer",
                          "readOnly": true
                        },
                        "created": {
                          "readOnly": true,
                          "allOf": [
                            {
                              "title": "date_time",
                              "description": "The date and time",
                              "type": "string",
                              "format": "date-time",
                              "example": "YYYY-MM-DD hh:mm:ss"
                            }
                          ]
                        },
                        "updated": {
                          "readOnly": true,
                          "allOf": [
                            {
                              "title": "date_time",
                              "description": "The date and time",
                              "type": "string",
                              "format": "date-time",
                              "example": "YYYY-MM-DD hh:mm:ss"
                            }
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/lists/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/lists/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/lists/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "delete": {
        "tags": [
          "Lists"
        ],
        "summary": "Remove list",
        "description": "Remove list information given its ID",
        "operationId": "deleteList",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "DeleteListsConflict",
                  "description": "Error schema for delete lists conflicts",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ],
                  "oneOf": [
                    {
                      "title": "has_queued_operations",
                      "description": "Error schema for conflict when a list has queued operations",
                      "properties": {
                        "errors": {
                          "properties": {
                            "has_queued_operations": {
                              "description": "Occurs when a list has operations in queue",
                              "type": "string",
                              "enum": [
                                "The list has operations in queue"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "has_automations",
                      "description": "Error schema for conflict when a list has automations",
                      "properties": {
                        "errors": {
                          "properties": {
                            "has_automations": {
                              "description": "Occurs when a list has automations",
                              "type": "string",
                              "enum": [
                                "The list has automations"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "has_push_app",
                      "description": "Error schema for conflict when a list has push apps",
                      "properties": {
                        "errors": {
                          "properties": {
                            "has_push_app": {
                              "description": "Occurs when a list has push apps",
                              "type": "string",
                              "enum": [
                                "The list has push apps"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "has_web_push_site",
                      "description": "Error schema for conflict when a list has webpush sites",
                      "properties": {
                        "errors": {
                          "properties": {
                            "has_web_push_site": {
                              "description": "Occurs when a list has webpush sites",
                              "type": "string",
                              "enum": [
                                "The list has webpush sites"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "has_campaigns_last_thirty_days",
                      "description": "Error schema for conflict when a list has campaigns sent in the last thirty days",
                      "properties": {
                        "errors": {
                          "properties": {
                            "has_campaigns_last_thirty_days": {
                              "description": "Occurs when a list has campaigns sent in the last thirty days",
                              "type": "string",
                              "enum": [
                                "The list has sent campaigns in the last thirty days"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/lists/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/lists/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/lists/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "patch": {
        "tags": [
          "Lists"
        ],
        "summary": "Update a specific list",
        "description": "Update a list",
        "operationId": "updateList",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the List",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "PatchRequestList",
                "description": "Patch request lists schema",
                "properties": {
                  "internal_name": {
                    "description": "Internal name of the list",
                    "type": "string",
                    "example": "Internal name"
                  },
                  "public_name": {
                    "description": "Public name of the list",
                    "type": "string",
                    "example": "Public name"
                  },
                  "group_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "List",
                  "description": "List schema",
                  "required": [
                    "public_name",
                    "language"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "internal_name": {
                      "description": "Internal name of the list",
                      "type": "string",
                      "example": "Internal name"
                    },
                    "public_name": {
                      "description": "Public name of the list",
                      "type": "string",
                      "example": "Public name"
                    },
                    "status": {
                      "description": "Status of the list",
                      "type": "string",
                      "enum": [
                        "active",
                        "blocked"
                      ],
                      "readOnly": true,
                      "example": "active"
                    },
                    "group_id": {
                      "description": "ID of the list group",
                      "type": "integer",
                      "readOnly": true
                    },
                    "created": {
                      "readOnly": true,
                      "allOf": [
                        {
                          "title": "date_time",
                          "description": "The date and time",
                          "type": "string",
                          "format": "date-time",
                          "example": "YYYY-MM-DD hh:mm:ss"
                        }
                      ]
                    },
                    "updated": {
                      "readOnly": true,
                      "allOf": [
                        {
                          "title": "date_time",
                          "description": "The date and time",
                          "type": "string",
                          "format": "date-time",
                          "example": "YYYY-MM-DD hh:mm:ss"
                        }
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PATCH 'api.egoiapp.com/lists/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"internal_name\":\"<string>\",\"public_name\":\"<string>\",\"group_id\":\"<integer>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"public_name\\\":\\\"<string>\\\",\\\"group_id\\\":\\\"<integer>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"public_name\\\":\\\"<string>\\\",\\\"group_id\\\":\\\"<integer>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>\")\n    .method(\"PATCH\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"internal_name\":\"<string>\",\"public_name\":\"<string>\",\"group_id\":\"<integer>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PATCH\", \"api.egoiapp.com/lists/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PATCH\",\n    CURLOPT_POSTFIELDS =>\"{\\\"internal_name\\\":\\\"<string>\\\",\\\"public_name\\\":\\\"<string>\\\",\\\"group_id\\\":\\\"<integer>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"public_name\\\":\\\"<string>\\\",\\\"group_id\\\":\\\"<integer>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PATCH\", \"/lists/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"internal_name\\\":\\\"<string>\\\",\\\"public_name\\\":\\\"<string>\\\",\\\"group_id\\\":\\\"<integer>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/my-account/actions/enable-te": {
      "post": {
        "tags": [
          "My Account"
        ],
        "summary": "Enable Track&Engage",
        "description": "Enable Track&Engage",
        "operationId": "enableTe",
        "requestBody": {
          "description": "Parameters for the Tracking&Engage",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "domain"
                ],
                "properties": {
                  "domain": {
                    "description": "Website's Domain without protocol",
                    "type": "string",
                    "example": "e-goi.com"
                  },
                  "list_id": {
                    "description": "Website's List",
                    "type": "integer",
                    "example": "1"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "TeResponse",
                  "description": "TeResponse schema",
                  "type": "object",
                  "example": {
                    "result": true,
                    "response": "success"
                  },
                  "allOf": [
                    {
                      "properties": {
                        "result": {
                          "description": "result",
                          "type": "boolean"
                        },
                        "response": {
                          "description": "response",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "EnableTeConflict",
                  "description": "Error schema for lists conflicts",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "EnableTeConflictsErrors",
                      "allOf": [
                        {
                          "title": "domain_already_defined",
                          "description": "Error schema for conflict when a domain was already active",
                          "properties": {
                            "errors": {
                              "properties": {
                                "domain_already_defined": {
                                  "description": "Occurs when a domain was already active",
                                  "type": "string",
                                  "enum": [
                                    "Domain already activated"
                                  ]
                                }
                              },
                              "type": "object"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "domain_list_required",
                          "description": "Error schema for conflict when a domain needs a list",
                          "properties": {
                            "errors": {
                              "properties": {
                                "domain_list_required": {
                                  "description": "Occurs when a domain requires a list",
                                  "type": "string",
                                  "enum": [
                                    "List is mandatory for your version"
                                  ]
                                }
                              },
                              "type": "object"
                            }
                          },
                          "type": "object"
                        }
                      ]
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/my-account/actions/enable-te' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"domain\":\"<string>\",\"list_id\":\"<integer>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/my-account/actions/enable-te\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"domain\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"domain\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/my-account/actions/enable-te\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"domain\":\"<string>\",\"list_id\":\"<integer>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/my-account/actions/enable-te\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/my-account/actions/enable-te\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"domain\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"domain\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/my-account/actions/enable-te\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/my-account/actions/enable-te\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"domain\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/my-account/actions/enable-transactional": {
      "post": {
        "tags": [
          "My Account"
        ],
        "summary": "Enable Transactional",
        "description": "Enable Transactionale api usage",
        "operationId": "enableTransactional",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "EnableTransactionalConflict",
                  "description": "Error schema for lists of transactional conflicts",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "EnableTransactionalConflictsErrors",
                      "oneOf": [
                        {
                          "title": "client_already_enabled",
                          "description": "Error schema for conflict when a client is already enabled",
                          "properties": {
                            "errors": {
                              "properties": {
                                "client_already_enabled": {
                                  "description": "Occurs when a client is already enabled",
                                  "type": "string",
                                  "enum": [
                                    "Client already enabled"
                                  ]
                                }
                              },
                              "type": "object"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "client_is_being_enabled",
                          "description": "Error schema for conflict when a when a client is in the process of being enabled",
                          "properties": {
                            "errors": {
                              "properties": {
                                "client_is_being_enabled": {
                                  "description": "Occurs when a client is in the process of  being enabled",
                                  "type": "string",
                                  "enum": [
                                    "Client is being enabled"
                                  ]
                                }
                              },
                              "type": "object"
                            }
                          },
                          "type": "object"
                        }
                      ]
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/my-account/actions/enable-transactional' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/my-account/actions/enable-transactional\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/my-account/actions/enable-transactional\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/my-account/actions/enable-transactional\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/my-account/actions/enable-transactional\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"POST\", \"/my-account/actions/enable-transactional\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/my-account/actions/enable-transactional\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/my-account": {
      "get": {
        "tags": [
          "My Account"
        ],
        "summary": "Get My Account Info",
        "description": "My Account Info",
        "operationId": "getMyAccount",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "My Account",
                  "description": "My Account schema",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "General Info",
                      "description": "General info schema",
                      "type": "object",
                      "example": {
                        "general_info": {
                          "name": "Name Test",
                          "website": "www.yoursite.com",
                          "cellphone": "351-910000000",
                          "client_id": "123456",
                          "company_size": 2,
                          "business_sector": {
                            "business_sector_id": 123,
                            "name": "Name of the business sector"
                          }
                        }
                      },
                      "allOf": [
                        {
                          "properties": {
                            "general_info": {
                              "description": "General Info",
                              "properties": {
                                "name": {
                                  "description": "Name",
                                  "type": "string"
                                },
                                "website": {
                                  "description": "Website",
                                  "type": "string"
                                },
                                "cellphone": {
                                  "description": "Cellphone",
                                  "type": "string"
                                },
                                "client_id": {
                                  "description": "Client id",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            }
                          },
                          "type": "object"
                        }
                      ]
                    },
                    {
                      "title": "Billing Info",
                      "description": "Billing Info schema",
                      "type": "object",
                      "example": {
                        "billing_info": {
                          "type": "company",
                          "company_legal_name": "your company legal name",
                          "vat_number": 1234546,
                          "country": {
                            "country_code": "PT"
                          },
                          "city": "Porto",
                          "state": "SP",
                          "address1": "Porto",
                          "address2": "Matosinhos",
                          "zip_code": "1234-123",
                          "invoice_comments": "your invoice comments"
                        }
                      },
                      "allOf": [
                        {
                          "properties": {
                            "billing_info": {
                              "description": "Billing Info",
                              "properties": {
                                "type": {
                                  "description": "Type billing",
                                  "type": "string",
                                  "enum": [
                                    "single_person",
                                    "company"
                                  ]
                                },
                                "company_legal_name": {
                                  "description": "Company legal name",
                                  "type": "string"
                                },
                                "vat_number": {
                                  "description": "Vat number",
                                  "type": "string"
                                },
                                "country": {
                                  "description": "Country",
                                  "properties": {
                                    "country_code": {
                                      "description": "Country Code",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "city": {
                                  "description": "City",
                                  "type": "string"
                                },
                                "state": {
                                  "description": "State",
                                  "type": "string"
                                },
                                "address1": {
                                  "description": "Address 1",
                                  "type": "string"
                                },
                                "address2": {
                                  "description": "Address 2",
                                  "type": "string"
                                },
                                "zip_code": {
                                  "description": "Zip Code",
                                  "type": "string"
                                },
                                "invoice_comments": {
                                  "description": "Invoice Comments",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            }
                          },
                          "type": "object"
                        }
                      ]
                    },
                    {
                      "title": "Plan Info",
                      "description": "Plan Info schema",
                      "properties": {
                        "plan_info": {
                          "description": "Plan Info",
                          "properties": {
                            "type": {
                              "description": "Return free if the plan in use is free and paid otherwise.",
                              "type": "string",
                              "enum": [
                                "enterprise",
                                "free",
                                "pro",
                                "starter",
                                "trial",
                                "base"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object",
                      "example": {
                        "plan_info": {
                          "type": "starter"
                        }
                      }
                    },
                    {
                      "title": "Balance Info",
                      "description": "Balance Info schema",
                      "properties": {
                        "balance_info": {
                          "description": "Balance Info",
                          "properties": {
                            "balance": {
                              "description": "Account's credits",
                              "type": "string"
                            },
                            "currency": {
                              "description": "Credit's currency",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object",
                      "example": {
                        "balance_info": {
                          "balance": "123.45",
                          "currency": "EUR"
                        }
                      }
                    },
                    {
                      "title": "Module Info",
                      "description": "Module Info schema",
                      "properties": {
                        "module_info": {
                          "description": "Module Info",
                          "properties": {
                            "te": {
                              "description": "Account's credits",
                              "properties": {
                                "enabled": {
                                  "description": "Track&Engage is Enabled",
                                  "type": "boolean"
                                }
                              },
                              "type": "object"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object",
                      "example": {
                        "module_info": {
                          "te": {
                            "enabled": true
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/my-account' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/my-account\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/my-account\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/my-account\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/my-account\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/my-account\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/my-account\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/operations/actions/approve": {
      "post": {
        "tags": [
          "Operations"
        ],
        "summary": "Approve operation",
        "description": "Approves an operation",
        "operationId": "actionApproveOperation",
        "requestBody": {
          "description": "Parameters for the request",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "OperationActionRequest",
                "description": "Operation action request schema",
                "required": [
                  "operations"
                ],
                "properties": {
                  "operations": {
                    "description": "Array of operation IDs",
                    "type": "array",
                    "items": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "OperationActionResponse",
                  "description": "Operation action response schema",
                  "properties": {
                    "success": {
                      "description": "Array of operation IDs referencing successful operations",
                      "type": "array",
                      "items": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "readOnly": true,
                        "example": 1
                      }
                    },
                    "error": {
                      "description": "Operation error object",
                      "properties": {
                        "invalid_operation_action": {
                          "description": "Array of operation IDs referencing operations where this action is invalid",
                          "type": "array",
                          "items": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          }
                        },
                        "operation_not_found": {
                          "description": "Array of invalid operation IDs",
                          "type": "array",
                          "items": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          }
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object",
                  "example": {
                    "success": [
                      1,
                      2
                    ],
                    "error": {
                      "invalid_operation_action": [],
                      "operation_not_found": []
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/operations/actions/approve' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"operations\":[\"<integer>\",\"<integer>\"]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/operations/actions/approve\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/operations/actions/approve\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"operations\":[\"<integer>\",\"<integer>\"]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/operations/actions/approve\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/operations/actions/approve\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/operations/actions/approve\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/operations/actions/approve\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/operations/actions/cancel": {
      "post": {
        "tags": [
          "Operations"
        ],
        "summary": "Cancel operation",
        "description": "Cancels an operation",
        "operationId": "actionCancelOperation",
        "requestBody": {
          "description": "Parameters for the request",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "OperationActionRequest",
                "description": "Operation action request schema",
                "required": [
                  "operations"
                ],
                "properties": {
                  "operations": {
                    "description": "Array of operation IDs",
                    "type": "array",
                    "items": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "OperationActionResponse",
                  "description": "Operation action response schema",
                  "properties": {
                    "success": {
                      "description": "Array of operation IDs referencing successful operations",
                      "type": "array",
                      "items": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "readOnly": true,
                        "example": 1
                      }
                    },
                    "error": {
                      "description": "Operation error object",
                      "properties": {
                        "invalid_operation_action": {
                          "description": "Array of operation IDs referencing operations where this action is invalid",
                          "type": "array",
                          "items": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          }
                        },
                        "operation_not_found": {
                          "description": "Array of invalid operation IDs",
                          "type": "array",
                          "items": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          }
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object",
                  "example": {
                    "success": [
                      1,
                      2
                    ],
                    "error": {
                      "invalid_operation_action": [],
                      "operation_not_found": []
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/operations/actions/cancel' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"operations\":[\"<integer>\",\"<integer>\"]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/operations/actions/cancel\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/operations/actions/cancel\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"operations\":[\"<integer>\",\"<integer>\"]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/operations/actions/cancel\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/operations/actions/cancel\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/operations/actions/cancel\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/operations/actions/cancel\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/operations/actions/pause": {
      "post": {
        "tags": [
          "Operations"
        ],
        "summary": "Pause operation",
        "description": "Pauses an operation",
        "operationId": "actionPauseOperation",
        "requestBody": {
          "description": "Parameters for the request",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "OperationActionRequest",
                "description": "Operation action request schema",
                "required": [
                  "operations"
                ],
                "properties": {
                  "operations": {
                    "description": "Array of operation IDs",
                    "type": "array",
                    "items": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "OperationActionResponse",
                  "description": "Operation action response schema",
                  "properties": {
                    "success": {
                      "description": "Array of operation IDs referencing successful operations",
                      "type": "array",
                      "items": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "readOnly": true,
                        "example": 1
                      }
                    },
                    "error": {
                      "description": "Operation error object",
                      "properties": {
                        "invalid_operation_action": {
                          "description": "Array of operation IDs referencing operations where this action is invalid",
                          "type": "array",
                          "items": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          }
                        },
                        "operation_not_found": {
                          "description": "Array of invalid operation IDs",
                          "type": "array",
                          "items": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          }
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object",
                  "example": {
                    "success": [
                      1,
                      2
                    ],
                    "error": {
                      "invalid_operation_action": [],
                      "operation_not_found": []
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/operations/actions/pause' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"operations\":[\"<integer>\",\"<integer>\"]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/operations/actions/pause\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/operations/actions/pause\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"operations\":[\"<integer>\",\"<integer>\"]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/operations/actions/pause\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/operations/actions/pause\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/operations/actions/pause\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/operations/actions/pause\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/operations/actions/resume": {
      "post": {
        "tags": [
          "Operations"
        ],
        "summary": "Resume operation",
        "description": "Resumes an operation",
        "operationId": "actionResumeOperation",
        "requestBody": {
          "description": "Parameters for the request",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "OperationActionRequest",
                "description": "Operation action request schema",
                "required": [
                  "operations"
                ],
                "properties": {
                  "operations": {
                    "description": "Array of operation IDs",
                    "type": "array",
                    "items": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "OperationActionResponse",
                  "description": "Operation action response schema",
                  "properties": {
                    "success": {
                      "description": "Array of operation IDs referencing successful operations",
                      "type": "array",
                      "items": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "readOnly": true,
                        "example": 1
                      }
                    },
                    "error": {
                      "description": "Operation error object",
                      "properties": {
                        "invalid_operation_action": {
                          "description": "Array of operation IDs referencing operations where this action is invalid",
                          "type": "array",
                          "items": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          }
                        },
                        "operation_not_found": {
                          "description": "Array of invalid operation IDs",
                          "type": "array",
                          "items": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          }
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object",
                  "example": {
                    "success": [
                      1,
                      2
                    ],
                    "error": {
                      "invalid_operation_action": [],
                      "operation_not_found": []
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/operations/actions/resume' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"operations\":[\"<integer>\",\"<integer>\"]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/operations/actions/resume\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/operations/actions/resume\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"operations\":[\"<integer>\",\"<integer>\"]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/operations/actions/resume\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/operations/actions/resume\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/operations/actions/resume\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/operations/actions/resume\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"operations\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/operations": {
      "get": {
        "tags": [
          "Operations"
        ],
        "summary": "Get all queued operations",
        "description": "Returns all operations in queue",
        "operationId": "getAllOperations",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "Operation type",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "import_contacts",
                "update_contacts",
                "export_contacts",
                "export_reports",
                "advanced_report",
                "email",
                "sms",
                "smart_sms",
                "voice",
                "push",
                "webpush",
                "ads",
                "social",
                "segment_generation",
                "mass_operation",
                "unify",
                "import_ecommerce",
                "attach_tag",
                "detach_tag"
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Operation state",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "queued",
                "processing",
                "executing",
                "paused"
              ]
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "Type of order",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "order_by",
            "in": "query",
            "description": "Reference attribute to order operations",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "operation_id",
                "created",
                "start_date"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "OperationsCollection",
                  "description": "Collection of operations in queue",
                  "properties": {
                    "total_items": {
                      "description": "Total amount of operations in queue",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Operations in queue",
                      "type": "array",
                      "items": {
                        "title": "Operation",
                        "description": "Operation schema",
                        "properties": {
                          "operation_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "operation_data": {
                            "description": "Data of the operation",
                            "properties": {
                              "internal_name": {
                                "description": "Internal name of the campaign (returns an empty string when not applicable)",
                                "type": "string"
                              },
                              "campaign_hash": {
                                "description": "Hash of the campaign (returns an empty string when not applicable)",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "type": {
                            "description": "Type of operation",
                            "type": "string",
                            "enum": [
                              "import_contacts",
                              "update_contacts",
                              "export_contacts",
                              "export_reports",
                              "advanced_report",
                              "email",
                              "sms",
                              "smart_sms",
                              "voice",
                              "push",
                              "webpush",
                              "ads",
                              "social",
                              "segment_generation",
                              "mass_operation",
                              "unify"
                            ]
                          },
                          "status": {
                            "description": "State of the operation",
                            "type": "string",
                            "enum": [
                              "queued",
                              "processing",
                              "executing",
                              "paused"
                            ]
                          },
                          "created_by": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "created": {
                            "allOf": [
                              {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              }
                            ]
                          },
                          "start_date": {
                            "allOf": [
                              {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              }
                            ]
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/operations?type=<string>&status=<string>&offset=<integer>&limit=10&order=desc&order_by=<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/operations?type=<string>&status=<string>&offset=<integer>&limit=10&order=desc&order_by=<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/operations?type=<string>&status=<string>&offset=<integer>&limit=10&order=desc&order_by=<string>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/operations?type=<string>&status=<string>&offset=<integer>&limit=10&order=desc&order_by=<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/operations?type=<string>&status=<string>&offset=<integer>&limit=10&order=desc&order_by=<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/operations?type=<string>&status=<string>&offset=<integer>&limit=10&order=desc&order_by=<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/operations?type=<string>&status=<string>&offset=<integer>&limit=10&order=desc&order_by=<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/ping": {
      "post": {
        "tags": [
          "Ping"
        ],
        "summary": "Pings the API",
        "description": "Checks if API is up and running",
        "operationId": "ping",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Ping",
                  "description": "Ping schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "example": "pong"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/ping'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/ping\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/ping\")\n    .method(\"POST\", body)\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/ping\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/ping\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {}\nconn.request(\"POST\", \"/ping\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/ping\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/push/apps": {
      "get": {
        "tags": [
          "Push"
        ],
        "summary": "Get all Push applications from E-goi",
        "description": "Get all Push applications from E-goi",
        "operationId": "getPushApps",
        "parameters": [
          {
            "name": "list_id",
            "in": "query",
            "description": "ID of the list to search for.",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "title": "App Structure",
                    "description": "Structure of an E-goi app.",
                    "properties": {
                      "app_id": {
                        "description": "The ID of the app.",
                        "type": "string"
                      },
                      "list": {
                        "description": "The list of the app.",
                        "properties": {
                          "id": {
                            "description": "The ID of the list.",
                            "type": "integer"
                          },
                          "internal_name": {
                            "description": "The internal name of the list.",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "name": {
                        "description": "The name of the app.",
                        "type": "string"
                      },
                      "description": {
                        "description": "The description of the app.",
                        "type": "string"
                      },
                      "two_steps_config": {
                        "description": "The column of the list used to map the token.",
                        "type": "string"
                      },
                      "development": {
                        "description": "Is app a development app.",
                        "type": "boolean"
                      },
                      "created": {
                        "description": "When the app was created.",
                        "type": "string"
                      },
                      "updated": {
                        "description": "The last time the app was updated.",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/push/apps?list_id=<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/push/apps?list_id=<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/push/apps?list_id=<integer>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/push/apps?list_id=<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/push/apps?list_id=<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/push/apps?list_id=<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/push/apps?list_id=<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/push/apps/{app_id}": {
      "get": {
        "tags": [
          "Push"
        ],
        "summary": "Get a Push application from E-goi",
        "description": "Get a Push application from E-goi",
        "operationId": "getPushApp",
        "parameters": [
          {
            "name": "app_id",
            "in": "path",
            "description": "ID of the E-goi push app.",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "title": "App Structure",
                  "description": "Structure of an E-goi app.",
                  "properties": {
                    "app_id": {
                      "description": "The ID of the app.",
                      "type": "string"
                    },
                    "list": {
                      "description": "The list of the app.",
                      "properties": {
                        "id": {
                          "description": "The ID of the list.",
                          "type": "integer"
                        },
                        "internal_name": {
                          "description": "The internal name of the list.",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "name": {
                      "description": "The name of the app.",
                      "type": "string"
                    },
                    "description": {
                      "description": "The description of the app.",
                      "type": "string"
                    },
                    "two_steps_config": {
                      "description": "The column of the list used to map the token.",
                      "type": "string"
                    },
                    "development": {
                      "description": "Is app a development app.",
                      "type": "boolean"
                    },
                    "created": {
                      "description": "When the app was created.",
                      "type": "string"
                    },
                    "updated": {
                      "description": "The last time the app was updated.",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/push/apps/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/push/apps/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/push/apps/<string>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/push/apps/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/push/apps/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/push/apps/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/push/apps/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/push/apps/{app_id}/event": {
      "post": {
        "tags": [
          "Push"
        ],
        "summary": "Registers an event from the push notification.",
        "description": "Registers a Firebase token",
        "operationId": "registerPushEvent",
        "parameters": [
          {
            "name": "app_id",
            "in": "path",
            "description": "ID of the E-goi push app.",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the event",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Push Event",
                "description": "Push event schema",
                "required": [
                  "os",
                  "contact",
                  "message_hash",
                  "event",
                  "device_id"
                ],
                "properties": {
                  "os": {
                    "description": "The OS of the device.",
                    "type": "string"
                  },
                  "contact": {
                    "description": "The UID of the contact.",
                    "type": "string"
                  },
                  "message_hash": {
                    "description": "The hash of the campaign related to the notification.",
                    "type": "string"
                  },
                  "mailing_id": {
                    "description": "The id of the campaign operation related to the notification.",
                    "type": "integer"
                  },
                  "event": {
                    "description": "The event to register (open, canceled).",
                    "type": "string"
                  },
                  "device_id": {
                    "description": "The E-goi's ID of the device.",
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Push Response",
                  "description": "The stucture of the responses.",
                  "properties": {
                    "success": {
                      "description": "The success status of the request.",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/push/apps/<string>/event' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"os\":\"<string>\",\"contact\":\"<string>\",\"message_hash\":\"<string>\",\"event\":\"<string>\",\"device_id\":\"<integer>\",\"mailing_id\":\"<integer>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/push/apps/<string>/event\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"os\\\":\\\"<string>\\\",\\\"contact\\\":\\\"<string>\\\",\\\"message_hash\\\":\\\"<string>\\\",\\\"event\\\":\\\"<string>\\\",\\\"device_id\\\":\\\"<integer>\\\",\\\"mailing_id\\\":\\\"<integer>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"os\\\":\\\"<string>\\\",\\\"contact\\\":\\\"<string>\\\",\\\"message_hash\\\":\\\"<string>\\\",\\\"event\\\":\\\"<string>\\\",\\\"device_id\\\":\\\"<integer>\\\",\\\"mailing_id\\\":\\\"<integer>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/push/apps/<string>/event\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"os\":\"<string>\",\"contact\":\"<string>\",\"message_hash\":\"<string>\",\"event\":\"<string>\",\"device_id\":\"<integer>\",\"mailing_id\":\"<integer>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/push/apps/<string>/event\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/push/apps/<string>/event\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"os\\\":\\\"<string>\\\",\\\"contact\\\":\\\"<string>\\\",\\\"message_hash\\\":\\\"<string>\\\",\\\"event\\\":\\\"<string>\\\",\\\"device_id\\\":\\\"<integer>\\\",\\\"mailing_id\\\":\\\"<integer>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"os\\\":\\\"<string>\\\",\\\"contact\\\":\\\"<string>\\\",\\\"message_hash\\\":\\\"<string>\\\",\\\"event\\\":\\\"<string>\\\",\\\"device_id\\\":\\\"<integer>\\\",\\\"mailing_id\\\":\\\"<integer>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/push/apps/<string>/event\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/push/apps/<string>/event\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"os\\\":\\\"<string>\\\",\\\"contact\\\":\\\"<string>\\\",\\\"message_hash\\\":\\\"<string>\\\",\\\"event\\\":\\\"<string>\\\",\\\"device_id\\\":\\\"<integer>\\\",\\\"mailing_id\\\":\\\"<integer>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/push/apps/{app_id}/token": {
      "post": {
        "tags": [
          "Push"
        ],
        "summary": "Registers a Firebase token",
        "description": "Registers a Firebase token",
        "operationId": "registerPushToken",
        "parameters": [
          {
            "name": "app_id",
            "in": "path",
            "description": "ID of the E-goi push app.",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the token",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Push Token",
                "description": "Push token schema",
                "required": [
                  "os",
                  "token"
                ],
                "properties": {
                  "os": {
                    "description": "The OS of the device.",
                    "type": "string"
                  },
                  "token": {
                    "description": "The Firebase token.",
                    "type": "string"
                  },
                  "two_steps_data": {
                    "description": "The data to register the token with.",
                    "properties": {
                      "field": {
                        "description": "The field on your E-goi list to insert the data in.",
                        "type": "string"
                      },
                      "value": {
                        "description": "The data to insert in the field defined.",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Push Response",
                  "description": "The stucture of the responses.",
                  "properties": {
                    "success": {
                      "description": "The success status of the request.",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/push/apps/<string>/token' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"os\":\"<string>\",\"token\":\"<string>\",\"two_steps_data\":{\"field\":\"<string>\",\"value\":\"<string>\"}}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/push/apps/<string>/token\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"os\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\",\\\"two_steps_data\\\":{\\\"field\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"os\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\",\\\"two_steps_data\\\":{\\\"field\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/push/apps/<string>/token\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"os\":\"<string>\",\"token\":\"<string>\",\"two_steps_data\":{\"field\":\"<string>\",\"value\":\"<string>\"}});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/push/apps/<string>/token\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/push/apps/<string>/token\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"os\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\",\\\"two_steps_data\\\":{\\\"field\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"os\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\",\\\"two_steps_data\\\":{\\\"field\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/push/apps/<string>/token\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/push/apps/<string>/token\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"os\\\":\\\"<string>\\\",\\\"token\\\":\\\"<string>\\\",\\\"two_steps_data\\\":{\\\"field\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced/model": {
      "post": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Generate report by model",
        "description": "Generates a new report by model Id",
        "operationId": "generateByModelReport",
        "requestBody": {
          "description": "Parameters for the report by model Id",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "GenerateByModelReport",
                "description": "Generate report by model schema",
                "required": [
                  "model_id"
                ],
                "properties": {
                  "model_id": {
                    "description": "Model Id",
                    "type": "integer",
                    "example": 20
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/reports/advanced/model' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"model_id\":\"<integer>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced/model\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"model_id\\\":\\\"<integer>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"model_id\\\":\\\"<integer>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced/model\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"model_id\":\"<integer>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/reports/advanced/model\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced/model\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"model_id\\\":\\\"<integer>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"model_id\\\":\\\"<integer>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/reports/advanced/model\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced/model\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"model_id\\\":\\\"<integer>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced/contact-activity": {
      "post": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Generate contact activity report",
        "description": "Generates a new contact activity report",
        "operationId": "generateContactActivityReport",
        "requestBody": {
          "description": "Parameters for the contact activity report",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "GenerateContactActivityReport",
                "description": "Generate contact activity report schema",
                "required": [
                  "title",
                  "range",
                  "lists",
                  "columns",
                  "options"
                ],
                "properties": {
                  "title": {
                    "description": "Advanced report title",
                    "type": "string",
                    "example": "Report title"
                  },
                  "range": {
                    "title": "AdvancedReportRange",
                    "description": "Time range of the report",
                    "required": [
                      "start",
                      "end"
                    ],
                    "properties": {
                      "start": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      },
                      "end": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "lists": {
                    "description": "Array of List Id's (3 items max)",
                    "type": "array",
                    "items": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    }
                  },
                  "columns": {
                    "title": "AdvancedReportContactActivityColumns",
                    "description": "Columns of the report",
                    "required": [
                      "list_base_fields",
                      "list_extra_fields",
                      "contact_activities"
                    ],
                    "properties": {
                      "list_base_fields": {
                        "description": "Array of base fields",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "list_extra_fields": {
                        "title": "AdvancedReportListExtraFields",
                        "required": [
                          "list_id",
                          "fields"
                        ],
                        "type": "array",
                        "items": {
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "fields": {
                              "description": "Array of extra field IDs",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        }
                      },
                      "contact_activities": {
                        "title": "ContactActivityActivitiesFields",
                        "description": "List of contacts activities to include in the report",
                        "required": [
                          "opens",
                          "clicks",
                          "recommends",
                          "conversion",
                          "email_send",
                          "sms_send",
                          "sms_report",
                          "voice_send",
                          "voice_report",
                          "invitation_send",
                          "invitation_open",
                          "unsubscribe",
                          "email_soft_bounce",
                          "email_hard_bounce",
                          "subscription",
                          "resubscription",
                          "unsubscribe_reason",
                          "facebook_like",
                          "social_share",
                          "unsubscribe_manual",
                          "double_optin",
                          "email_spam_complaint",
                          "email_field_disable",
                          "cellphone_field_disable",
                          "phone_field_disable",
                          "unsubscribe_api",
                          "email_field_enable",
                          "cellphone_field_enable",
                          "phone_field_enable",
                          "edit_subscription",
                          "automation_event",
                          "push_send",
                          "push_delivered",
                          "push_error",
                          "push_received",
                          "push_open",
                          "push_canceled",
                          "push_unsubscription",
                          "reply_to_email",
                          "web_push_send",
                          "web_push_delivered",
                          "web_push_open",
                          "web_push_bounce",
                          "web_push_click",
                          "web_push_subscription",
                          "web_push_unsubscription",
                          "forget_subscription",
                          "change_consent",
                          "double_optin_resend",
                          "double_optedit"
                        ],
                        "properties": {
                          "opens": {
                            "description": "True to include opens, false otherwise",
                            "type": "boolean"
                          },
                          "clicks": {
                            "description": "True to include clicks, false otherwise",
                            "type": "boolean"
                          },
                          "recommends": {
                            "description": "True to include recommends, false otherwise",
                            "type": "boolean"
                          },
                          "conversion": {
                            "description": "True to include convertions, false otherwise",
                            "type": "boolean"
                          },
                          "email_send": {
                            "description": "True to include email sends, false otherwise",
                            "type": "boolean"
                          },
                          "sms_send": {
                            "description": "True to include sms sends, false otherwise",
                            "type": "boolean"
                          },
                          "sms_report": {
                            "description": "True to include sms report, false otherwise",
                            "type": "boolean"
                          },
                          "voice_send": {
                            "description": "True to include voice sends, false otherwise",
                            "type": "boolean"
                          },
                          "voice_report": {
                            "description": "True to include voice report, false otherwise",
                            "type": "boolean"
                          },
                          "invitation_send": {
                            "description": "True to include invitation sends, false otherwise",
                            "type": "boolean"
                          },
                          "invitation_open": {
                            "description": "True to include invitation opens, false otherwise",
                            "type": "boolean"
                          },
                          "unsubscribe": {
                            "description": "True to include unsubscriptions, false otherwise",
                            "type": "boolean"
                          },
                          "email_soft_bounce": {
                            "description": "True to include email soft bounces, false otherwise",
                            "type": "boolean"
                          },
                          "email_hard_bounce": {
                            "description": "True to include email hard bounces, false otherwise",
                            "type": "boolean"
                          },
                          "subscription": {
                            "description": "True to include subscriptions, false otherwise",
                            "type": "boolean"
                          },
                          "resubscription": {
                            "description": "True to include re-subscriptions, false otherwise",
                            "type": "boolean"
                          },
                          "unsubscribe_reason": {
                            "description": "True to include unsubscription reason, false otherwise",
                            "type": "boolean"
                          },
                          "facebook_like": {
                            "description": "True to include facebook likes, false otherwise",
                            "type": "boolean"
                          },
                          "social_share": {
                            "description": "True to include social shares, false otherwise",
                            "type": "boolean"
                          },
                          "unsubscribe_manual": {
                            "description": "True to include manual unsubscriptions, false otherwise",
                            "type": "boolean"
                          },
                          "double_optin": {
                            "description": "True to include double optins, false otherwise",
                            "type": "boolean"
                          },
                          "email_spam_complaint": {
                            "description": "True to include spam complaints, false otherwise",
                            "type": "boolean"
                          },
                          "email_field_disable": {
                            "description": "True to include email field disable, false otherwise",
                            "type": "boolean"
                          },
                          "cellphone_field_disable": {
                            "description": "True to include cellphone field disable, false otherwise",
                            "type": "boolean"
                          },
                          "phone_field_disable": {
                            "description": "True to include phone field disable, false otherwise",
                            "type": "boolean"
                          },
                          "unsubscribe_api": {
                            "description": "True to include api unsubscriptions, false otherwise",
                            "type": "boolean"
                          },
                          "email_field_enable": {
                            "description": "True to include email field enable, false otherwise",
                            "type": "boolean"
                          },
                          "cellphone_field_enable": {
                            "description": "True to include cellphone field enable, false otherwise",
                            "type": "boolean"
                          },
                          "phone_field_enable": {
                            "description": "True to include phone field enable, false otherwise",
                            "type": "boolean"
                          },
                          "edit_subscription": {
                            "description": "True to include edit subscriptions, false otherwise",
                            "type": "boolean"
                          },
                          "automation_event": {
                            "description": "True to include automation events, false otherwise",
                            "type": "boolean"
                          },
                          "push_send": {
                            "description": "True to include push events, false otherwise",
                            "type": "boolean"
                          },
                          "push_delivered": {
                            "description": "True to include push delivered, false otherwise",
                            "type": "boolean"
                          },
                          "push_error": {
                            "description": "True to include push error, false otherwise",
                            "type": "boolean"
                          },
                          "push_received": {
                            "description": "True to include push received, false otherwise",
                            "type": "boolean"
                          },
                          "push_open": {
                            "description": "True to include push open, false otherwise",
                            "type": "boolean"
                          },
                          "push_canceled": {
                            "description": "True to include push canceled, false otherwise",
                            "type": "boolean"
                          },
                          "push_unsubscription": {
                            "description": "True to include push unsubscriptions, false otherwise",
                            "type": "boolean"
                          },
                          "reply_to_email": {
                            "description": "True to include reply to email, false otherwise",
                            "type": "boolean"
                          },
                          "web_push_send": {
                            "description": "True to include web push send, false otherwise",
                            "type": "boolean"
                          },
                          "web_push_delivered": {
                            "description": "True to include web push delivered, false otherwise",
                            "type": "boolean"
                          },
                          "web_push_open": {
                            "description": "True to include web push open, false otherwise",
                            "type": "boolean"
                          },
                          "web_push_bounce": {
                            "description": "True to include web push bounces, false otherwise",
                            "type": "boolean"
                          },
                          "web_push_click": {
                            "description": "True to include web push clicks, false otherwise",
                            "type": "boolean"
                          },
                          "web_push_subscription": {
                            "description": "True to include web push subscriptions, false otherwise",
                            "type": "boolean"
                          },
                          "web_push_unsubscription": {
                            "description": "True to include web push unsubscriptions, false otherwise",
                            "type": "boolean"
                          },
                          "forget_subscription": {
                            "description": "True to include forget subscriptions, false otherwise",
                            "type": "boolean"
                          },
                          "change_consent": {
                            "description": "True to include consent change, false otherwise",
                            "type": "boolean"
                          },
                          "double_optin_resend": {
                            "description": "True to include optin resends, false otherwise",
                            "type": "boolean"
                          },
                          "double_optedit": {
                            "description": "True to include double optedit, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  "options": {
                    "title": "AdvancedReportContactActivityOptions",
                    "description": "Columns of the report",
                    "properties": {
                      "notify": {
                        "description": "Array of user IDs to notify",
                        "type": "array",
                        "items": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        }
                      }
                    },
                    "type": "object"
                  },
                  "callback_url": {
                    "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "callbacks": {
          "ContactActivityReport": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "title": "ExportReportWebhookData",
                        "description": "Accepted response schema",
                        "properties": {
                          "file": {
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "type": "object"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/reports/advanced/contact-activity' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"lists\":[\"<integer>\",\"<integer>\"],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"contact_activities\":{\"opens\":\"<boolean>\",\"clicks\":\"<boolean>\",\"recommends\":\"<boolean>\",\"conversion\":\"<boolean>\",\"email_send\":\"<boolean>\",\"sms_send\":\"<boolean>\",\"sms_report\":\"<boolean>\",\"voice_send\":\"<boolean>\",\"voice_report\":\"<boolean>\",\"invitation_send\":\"<boolean>\",\"invitation_open\":\"<boolean>\",\"unsubscribe\":\"<boolean>\",\"email_soft_bounce\":\"<boolean>\",\"email_hard_bounce\":\"<boolean>\",\"subscription\":\"<boolean>\",\"resubscription\":\"<boolean>\",\"unsubscribe_reason\":\"<boolean>\",\"facebook_like\":\"<boolean>\",\"social_share\":\"<boolean>\",\"unsubscribe_manual\":\"<boolean>\",\"double_optin\":\"<boolean>\",\"email_spam_complaint\":\"<boolean>\",\"email_field_disable\":\"<boolean>\",\"cellphone_field_disable\":\"<boolean>\",\"phone_field_disable\":\"<boolean>\",\"unsubscribe_api\":\"<boolean>\",\"email_field_enable\":\"<boolean>\",\"cellphone_field_enable\":\"<boolean>\",\"phone_field_enable\":\"<boolean>\",\"edit_subscription\":\"<boolean>\",\"automation_event\":\"<boolean>\",\"push_send\":\"<boolean>\",\"push_delivered\":\"<boolean>\",\"push_error\":\"<boolean>\",\"push_received\":\"<boolean>\",\"push_open\":\"<boolean>\",\"push_canceled\":\"<boolean>\",\"push_unsubscription\":\"<boolean>\",\"reply_to_email\":\"<boolean>\",\"web_push_send\":\"<boolean>\",\"web_push_delivered\":\"<boolean>\",\"web_push_open\":\"<boolean>\",\"web_push_bounce\":\"<boolean>\",\"web_push_click\":\"<boolean>\",\"web_push_subscription\":\"<boolean>\",\"web_push_unsubscription\":\"<boolean>\",\"forget_subscription\":\"<boolean>\",\"change_consent\":\"<boolean>\",\"double_optin_resend\":\"<boolean>\",\"double_optedit\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced/contact-activity\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"contact_activities\\\":{\\\"opens\\\":\\\"<boolean>\\\",\\\"clicks\\\":\\\"<boolean>\\\",\\\"recommends\\\":\\\"<boolean>\\\",\\\"conversion\\\":\\\"<boolean>\\\",\\\"email_send\\\":\\\"<boolean>\\\",\\\"sms_send\\\":\\\"<boolean>\\\",\\\"sms_report\\\":\\\"<boolean>\\\",\\\"voice_send\\\":\\\"<boolean>\\\",\\\"voice_report\\\":\\\"<boolean>\\\",\\\"invitation_send\\\":\\\"<boolean>\\\",\\\"invitation_open\\\":\\\"<boolean>\\\",\\\"unsubscribe\\\":\\\"<boolean>\\\",\\\"email_soft_bounce\\\":\\\"<boolean>\\\",\\\"email_hard_bounce\\\":\\\"<boolean>\\\",\\\"subscription\\\":\\\"<boolean>\\\",\\\"resubscription\\\":\\\"<boolean>\\\",\\\"unsubscribe_reason\\\":\\\"<boolean>\\\",\\\"facebook_like\\\":\\\"<boolean>\\\",\\\"social_share\\\":\\\"<boolean>\\\",\\\"unsubscribe_manual\\\":\\\"<boolean>\\\",\\\"double_optin\\\":\\\"<boolean>\\\",\\\"email_spam_complaint\\\":\\\"<boolean>\\\",\\\"email_field_disable\\\":\\\"<boolean>\\\",\\\"cellphone_field_disable\\\":\\\"<boolean>\\\",\\\"phone_field_disable\\\":\\\"<boolean>\\\",\\\"unsubscribe_api\\\":\\\"<boolean>\\\",\\\"email_field_enable\\\":\\\"<boolean>\\\",\\\"cellphone_field_enable\\\":\\\"<boolean>\\\",\\\"phone_field_enable\\\":\\\"<boolean>\\\",\\\"edit_subscription\\\":\\\"<boolean>\\\",\\\"automation_event\\\":\\\"<boolean>\\\",\\\"push_send\\\":\\\"<boolean>\\\",\\\"push_delivered\\\":\\\"<boolean>\\\",\\\"push_error\\\":\\\"<boolean>\\\",\\\"push_received\\\":\\\"<boolean>\\\",\\\"push_open\\\":\\\"<boolean>\\\",\\\"push_canceled\\\":\\\"<boolean>\\\",\\\"push_unsubscription\\\":\\\"<boolean>\\\",\\\"reply_to_email\\\":\\\"<boolean>\\\",\\\"web_push_send\\\":\\\"<boolean>\\\",\\\"web_push_delivered\\\":\\\"<boolean>\\\",\\\"web_push_open\\\":\\\"<boolean>\\\",\\\"web_push_bounce\\\":\\\"<boolean>\\\",\\\"web_push_click\\\":\\\"<boolean>\\\",\\\"web_push_subscription\\\":\\\"<boolean>\\\",\\\"web_push_unsubscription\\\":\\\"<boolean>\\\",\\\"forget_subscription\\\":\\\"<boolean>\\\",\\\"change_consent\\\":\\\"<boolean>\\\",\\\"double_optin_resend\\\":\\\"<boolean>\\\",\\\"double_optedit\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"contact_activities\\\":{\\\"opens\\\":\\\"<boolean>\\\",\\\"clicks\\\":\\\"<boolean>\\\",\\\"recommends\\\":\\\"<boolean>\\\",\\\"conversion\\\":\\\"<boolean>\\\",\\\"email_send\\\":\\\"<boolean>\\\",\\\"sms_send\\\":\\\"<boolean>\\\",\\\"sms_report\\\":\\\"<boolean>\\\",\\\"voice_send\\\":\\\"<boolean>\\\",\\\"voice_report\\\":\\\"<boolean>\\\",\\\"invitation_send\\\":\\\"<boolean>\\\",\\\"invitation_open\\\":\\\"<boolean>\\\",\\\"unsubscribe\\\":\\\"<boolean>\\\",\\\"email_soft_bounce\\\":\\\"<boolean>\\\",\\\"email_hard_bounce\\\":\\\"<boolean>\\\",\\\"subscription\\\":\\\"<boolean>\\\",\\\"resubscription\\\":\\\"<boolean>\\\",\\\"unsubscribe_reason\\\":\\\"<boolean>\\\",\\\"facebook_like\\\":\\\"<boolean>\\\",\\\"social_share\\\":\\\"<boolean>\\\",\\\"unsubscribe_manual\\\":\\\"<boolean>\\\",\\\"double_optin\\\":\\\"<boolean>\\\",\\\"email_spam_complaint\\\":\\\"<boolean>\\\",\\\"email_field_disable\\\":\\\"<boolean>\\\",\\\"cellphone_field_disable\\\":\\\"<boolean>\\\",\\\"phone_field_disable\\\":\\\"<boolean>\\\",\\\"unsubscribe_api\\\":\\\"<boolean>\\\",\\\"email_field_enable\\\":\\\"<boolean>\\\",\\\"cellphone_field_enable\\\":\\\"<boolean>\\\",\\\"phone_field_enable\\\":\\\"<boolean>\\\",\\\"edit_subscription\\\":\\\"<boolean>\\\",\\\"automation_event\\\":\\\"<boolean>\\\",\\\"push_send\\\":\\\"<boolean>\\\",\\\"push_delivered\\\":\\\"<boolean>\\\",\\\"push_error\\\":\\\"<boolean>\\\",\\\"push_received\\\":\\\"<boolean>\\\",\\\"push_open\\\":\\\"<boolean>\\\",\\\"push_canceled\\\":\\\"<boolean>\\\",\\\"push_unsubscription\\\":\\\"<boolean>\\\",\\\"reply_to_email\\\":\\\"<boolean>\\\",\\\"web_push_send\\\":\\\"<boolean>\\\",\\\"web_push_delivered\\\":\\\"<boolean>\\\",\\\"web_push_open\\\":\\\"<boolean>\\\",\\\"web_push_bounce\\\":\\\"<boolean>\\\",\\\"web_push_click\\\":\\\"<boolean>\\\",\\\"web_push_subscription\\\":\\\"<boolean>\\\",\\\"web_push_unsubscription\\\":\\\"<boolean>\\\",\\\"forget_subscription\\\":\\\"<boolean>\\\",\\\"change_consent\\\":\\\"<boolean>\\\",\\\"double_optin_resend\\\":\\\"<boolean>\\\",\\\"double_optedit\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced/contact-activity\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"lists\":[\"<integer>\",\"<integer>\"],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"contact_activities\":{\"opens\":\"<boolean>\",\"clicks\":\"<boolean>\",\"recommends\":\"<boolean>\",\"conversion\":\"<boolean>\",\"email_send\":\"<boolean>\",\"sms_send\":\"<boolean>\",\"sms_report\":\"<boolean>\",\"voice_send\":\"<boolean>\",\"voice_report\":\"<boolean>\",\"invitation_send\":\"<boolean>\",\"invitation_open\":\"<boolean>\",\"unsubscribe\":\"<boolean>\",\"email_soft_bounce\":\"<boolean>\",\"email_hard_bounce\":\"<boolean>\",\"subscription\":\"<boolean>\",\"resubscription\":\"<boolean>\",\"unsubscribe_reason\":\"<boolean>\",\"facebook_like\":\"<boolean>\",\"social_share\":\"<boolean>\",\"unsubscribe_manual\":\"<boolean>\",\"double_optin\":\"<boolean>\",\"email_spam_complaint\":\"<boolean>\",\"email_field_disable\":\"<boolean>\",\"cellphone_field_disable\":\"<boolean>\",\"phone_field_disable\":\"<boolean>\",\"unsubscribe_api\":\"<boolean>\",\"email_field_enable\":\"<boolean>\",\"cellphone_field_enable\":\"<boolean>\",\"phone_field_enable\":\"<boolean>\",\"edit_subscription\":\"<boolean>\",\"automation_event\":\"<boolean>\",\"push_send\":\"<boolean>\",\"push_delivered\":\"<boolean>\",\"push_error\":\"<boolean>\",\"push_received\":\"<boolean>\",\"push_open\":\"<boolean>\",\"push_canceled\":\"<boolean>\",\"push_unsubscription\":\"<boolean>\",\"reply_to_email\":\"<boolean>\",\"web_push_send\":\"<boolean>\",\"web_push_delivered\":\"<boolean>\",\"web_push_open\":\"<boolean>\",\"web_push_bounce\":\"<boolean>\",\"web_push_click\":\"<boolean>\",\"web_push_subscription\":\"<boolean>\",\"web_push_unsubscription\":\"<boolean>\",\"forget_subscription\":\"<boolean>\",\"change_consent\":\"<boolean>\",\"double_optin_resend\":\"<boolean>\",\"double_optedit\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/reports/advanced/contact-activity\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced/contact-activity\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"contact_activities\\\":{\\\"opens\\\":\\\"<boolean>\\\",\\\"clicks\\\":\\\"<boolean>\\\",\\\"recommends\\\":\\\"<boolean>\\\",\\\"conversion\\\":\\\"<boolean>\\\",\\\"email_send\\\":\\\"<boolean>\\\",\\\"sms_send\\\":\\\"<boolean>\\\",\\\"sms_report\\\":\\\"<boolean>\\\",\\\"voice_send\\\":\\\"<boolean>\\\",\\\"voice_report\\\":\\\"<boolean>\\\",\\\"invitation_send\\\":\\\"<boolean>\\\",\\\"invitation_open\\\":\\\"<boolean>\\\",\\\"unsubscribe\\\":\\\"<boolean>\\\",\\\"email_soft_bounce\\\":\\\"<boolean>\\\",\\\"email_hard_bounce\\\":\\\"<boolean>\\\",\\\"subscription\\\":\\\"<boolean>\\\",\\\"resubscription\\\":\\\"<boolean>\\\",\\\"unsubscribe_reason\\\":\\\"<boolean>\\\",\\\"facebook_like\\\":\\\"<boolean>\\\",\\\"social_share\\\":\\\"<boolean>\\\",\\\"unsubscribe_manual\\\":\\\"<boolean>\\\",\\\"double_optin\\\":\\\"<boolean>\\\",\\\"email_spam_complaint\\\":\\\"<boolean>\\\",\\\"email_field_disable\\\":\\\"<boolean>\\\",\\\"cellphone_field_disable\\\":\\\"<boolean>\\\",\\\"phone_field_disable\\\":\\\"<boolean>\\\",\\\"unsubscribe_api\\\":\\\"<boolean>\\\",\\\"email_field_enable\\\":\\\"<boolean>\\\",\\\"cellphone_field_enable\\\":\\\"<boolean>\\\",\\\"phone_field_enable\\\":\\\"<boolean>\\\",\\\"edit_subscription\\\":\\\"<boolean>\\\",\\\"automation_event\\\":\\\"<boolean>\\\",\\\"push_send\\\":\\\"<boolean>\\\",\\\"push_delivered\\\":\\\"<boolean>\\\",\\\"push_error\\\":\\\"<boolean>\\\",\\\"push_received\\\":\\\"<boolean>\\\",\\\"push_open\\\":\\\"<boolean>\\\",\\\"push_canceled\\\":\\\"<boolean>\\\",\\\"push_unsubscription\\\":\\\"<boolean>\\\",\\\"reply_to_email\\\":\\\"<boolean>\\\",\\\"web_push_send\\\":\\\"<boolean>\\\",\\\"web_push_delivered\\\":\\\"<boolean>\\\",\\\"web_push_open\\\":\\\"<boolean>\\\",\\\"web_push_bounce\\\":\\\"<boolean>\\\",\\\"web_push_click\\\":\\\"<boolean>\\\",\\\"web_push_subscription\\\":\\\"<boolean>\\\",\\\"web_push_unsubscription\\\":\\\"<boolean>\\\",\\\"forget_subscription\\\":\\\"<boolean>\\\",\\\"change_consent\\\":\\\"<boolean>\\\",\\\"double_optin_resend\\\":\\\"<boolean>\\\",\\\"double_optedit\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"contact_activities\\\":{\\\"opens\\\":\\\"<boolean>\\\",\\\"clicks\\\":\\\"<boolean>\\\",\\\"recommends\\\":\\\"<boolean>\\\",\\\"conversion\\\":\\\"<boolean>\\\",\\\"email_send\\\":\\\"<boolean>\\\",\\\"sms_send\\\":\\\"<boolean>\\\",\\\"sms_report\\\":\\\"<boolean>\\\",\\\"voice_send\\\":\\\"<boolean>\\\",\\\"voice_report\\\":\\\"<boolean>\\\",\\\"invitation_send\\\":\\\"<boolean>\\\",\\\"invitation_open\\\":\\\"<boolean>\\\",\\\"unsubscribe\\\":\\\"<boolean>\\\",\\\"email_soft_bounce\\\":\\\"<boolean>\\\",\\\"email_hard_bounce\\\":\\\"<boolean>\\\",\\\"subscription\\\":\\\"<boolean>\\\",\\\"resubscription\\\":\\\"<boolean>\\\",\\\"unsubscribe_reason\\\":\\\"<boolean>\\\",\\\"facebook_like\\\":\\\"<boolean>\\\",\\\"social_share\\\":\\\"<boolean>\\\",\\\"unsubscribe_manual\\\":\\\"<boolean>\\\",\\\"double_optin\\\":\\\"<boolean>\\\",\\\"email_spam_complaint\\\":\\\"<boolean>\\\",\\\"email_field_disable\\\":\\\"<boolean>\\\",\\\"cellphone_field_disable\\\":\\\"<boolean>\\\",\\\"phone_field_disable\\\":\\\"<boolean>\\\",\\\"unsubscribe_api\\\":\\\"<boolean>\\\",\\\"email_field_enable\\\":\\\"<boolean>\\\",\\\"cellphone_field_enable\\\":\\\"<boolean>\\\",\\\"phone_field_enable\\\":\\\"<boolean>\\\",\\\"edit_subscription\\\":\\\"<boolean>\\\",\\\"automation_event\\\":\\\"<boolean>\\\",\\\"push_send\\\":\\\"<boolean>\\\",\\\"push_delivered\\\":\\\"<boolean>\\\",\\\"push_error\\\":\\\"<boolean>\\\",\\\"push_received\\\":\\\"<boolean>\\\",\\\"push_open\\\":\\\"<boolean>\\\",\\\"push_canceled\\\":\\\"<boolean>\\\",\\\"push_unsubscription\\\":\\\"<boolean>\\\",\\\"reply_to_email\\\":\\\"<boolean>\\\",\\\"web_push_send\\\":\\\"<boolean>\\\",\\\"web_push_delivered\\\":\\\"<boolean>\\\",\\\"web_push_open\\\":\\\"<boolean>\\\",\\\"web_push_bounce\\\":\\\"<boolean>\\\",\\\"web_push_click\\\":\\\"<boolean>\\\",\\\"web_push_subscription\\\":\\\"<boolean>\\\",\\\"web_push_unsubscription\\\":\\\"<boolean>\\\",\\\"forget_subscription\\\":\\\"<boolean>\\\",\\\"change_consent\\\":\\\"<boolean>\\\",\\\"double_optin_resend\\\":\\\"<boolean>\\\",\\\"double_optedit\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/reports/advanced/contact-activity\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced/contact-activity\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"contact_activities\\\":{\\\"opens\\\":\\\"<boolean>\\\",\\\"clicks\\\":\\\"<boolean>\\\",\\\"recommends\\\":\\\"<boolean>\\\",\\\"conversion\\\":\\\"<boolean>\\\",\\\"email_send\\\":\\\"<boolean>\\\",\\\"sms_send\\\":\\\"<boolean>\\\",\\\"sms_report\\\":\\\"<boolean>\\\",\\\"voice_send\\\":\\\"<boolean>\\\",\\\"voice_report\\\":\\\"<boolean>\\\",\\\"invitation_send\\\":\\\"<boolean>\\\",\\\"invitation_open\\\":\\\"<boolean>\\\",\\\"unsubscribe\\\":\\\"<boolean>\\\",\\\"email_soft_bounce\\\":\\\"<boolean>\\\",\\\"email_hard_bounce\\\":\\\"<boolean>\\\",\\\"subscription\\\":\\\"<boolean>\\\",\\\"resubscription\\\":\\\"<boolean>\\\",\\\"unsubscribe_reason\\\":\\\"<boolean>\\\",\\\"facebook_like\\\":\\\"<boolean>\\\",\\\"social_share\\\":\\\"<boolean>\\\",\\\"unsubscribe_manual\\\":\\\"<boolean>\\\",\\\"double_optin\\\":\\\"<boolean>\\\",\\\"email_spam_complaint\\\":\\\"<boolean>\\\",\\\"email_field_disable\\\":\\\"<boolean>\\\",\\\"cellphone_field_disable\\\":\\\"<boolean>\\\",\\\"phone_field_disable\\\":\\\"<boolean>\\\",\\\"unsubscribe_api\\\":\\\"<boolean>\\\",\\\"email_field_enable\\\":\\\"<boolean>\\\",\\\"cellphone_field_enable\\\":\\\"<boolean>\\\",\\\"phone_field_enable\\\":\\\"<boolean>\\\",\\\"edit_subscription\\\":\\\"<boolean>\\\",\\\"automation_event\\\":\\\"<boolean>\\\",\\\"push_send\\\":\\\"<boolean>\\\",\\\"push_delivered\\\":\\\"<boolean>\\\",\\\"push_error\\\":\\\"<boolean>\\\",\\\"push_received\\\":\\\"<boolean>\\\",\\\"push_open\\\":\\\"<boolean>\\\",\\\"push_canceled\\\":\\\"<boolean>\\\",\\\"push_unsubscription\\\":\\\"<boolean>\\\",\\\"reply_to_email\\\":\\\"<boolean>\\\",\\\"web_push_send\\\":\\\"<boolean>\\\",\\\"web_push_delivered\\\":\\\"<boolean>\\\",\\\"web_push_open\\\":\\\"<boolean>\\\",\\\"web_push_bounce\\\":\\\"<boolean>\\\",\\\"web_push_click\\\":\\\"<boolean>\\\",\\\"web_push_subscription\\\":\\\"<boolean>\\\",\\\"web_push_unsubscription\\\":\\\"<boolean>\\\",\\\"forget_subscription\\\":\\\"<boolean>\\\",\\\"change_consent\\\":\\\"<boolean>\\\",\\\"double_optin_resend\\\":\\\"<boolean>\\\",\\\"double_optedit\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced": {
      "get": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Get all advanced reports",
        "description": "Returns all advanced reports",
        "operationId": "getAllAdvancedReports",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "description": "Advanced report status",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "queued",
                "running",
                "finished",
                "stopped",
                "canceled",
                "paused",
                "error"
              ]
            }
          },
          {
            "name": "title",
            "in": "query",
            "description": "Advanced report title",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_min",
            "in": "query",
            "description": "Created initial date",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "created_max",
            "in": "query",
            "description": "Created finish",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "Type of order",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "order_by",
            "in": "query",
            "description": "Reference attribute to order the advanced reports",
            "required": false,
            "schema": {
              "type": "string",
              "default": "advanced_report_id",
              "enum": [
                "advanced_report_id",
                "title",
                "created"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AdvancedReportsCollection",
                  "description": "Collection of advanced reports",
                  "properties": {
                    "total_items": {
                      "description": "Total advanced reports",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned advanced reports",
                      "type": "array",
                      "items": {
                        "title": "AdvancedReport",
                        "description": "Advanced report schema",
                        "properties": {
                          "advanced_report_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "title": {
                            "description": "Advanced report title",
                            "type": "string",
                            "example": "Report title"
                          },
                          "hash": {
                            "description": "Advanced report hash",
                            "type": "string"
                          },
                          "file": {
                            "description": "Advanced report file",
                            "type": "string"
                          },
                          "status": {
                            "description": "Advanced report status",
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "finished",
                              "stopped",
                              "canceled",
                              "paused",
                              "error"
                            ]
                          },
                          "created": {
                            "allOf": [
                              {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              }
                            ]
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/reports/advanced?status=<string>&title=<string>&created_min=<dateTime>&created_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=advanced_report_id' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced?status=<string>&title=<string>&created_min=<dateTime>&created_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=advanced_report_id\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced?status=<string>&title=<string>&created_min=<dateTime>&created_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=advanced_report_id\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/reports/advanced?status=<string>&title=<string>&created_min=<dateTime>&created_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=advanced_report_id\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced?status=<string>&title=<string>&created_min=<dateTime>&created_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=advanced_report_id\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/reports/advanced?status=<string>&title=<string>&created_min=<dateTime>&created_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=advanced_report_id\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced?status=<string>&title=<string>&created_min=<dateTime>&created_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=advanced_report_id\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced/email-bounces": {
      "post": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Generate email bounces report",
        "description": "Generates a new email bounces report",
        "operationId": "generateEmailBouncesReport",
        "requestBody": {
          "description": "Parameters for the email bounces report",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "GenerateEmailBouncesReport",
                "description": "Generate email bounces report schema",
                "required": [
                  "title",
                  "range",
                  "campaigns",
                  "columns",
                  "options"
                ],
                "properties": {
                  "title": {
                    "description": "Advanced report title",
                    "type": "string",
                    "example": "Report title"
                  },
                  "range": {
                    "title": "AdvancedReportRange",
                    "description": "Time range of the report",
                    "required": [
                      "start",
                      "end"
                    ],
                    "properties": {
                      "start": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      },
                      "end": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "campaigns": {
                    "title": "AdvancedReportCampaigns",
                    "description": "Campaigns of the report",
                    "type": "array",
                    "items": {
                      "title": "AdvancedReportCampaignsObject",
                      "type": "object",
                      "discriminator": {
                        "propertyName": "type",
                        "mapping": {
                          "all": "#/components/schemas/ReportCampaignsAll",
                          "last": "#/components/schemas/ReportCampaignsLast",
                          "specific": "#/components/schemas/ReportCampaignsSpecific",
                          "group": "#/components/schemas/ReportCampaignsGroup"
                        }
                      },
                      "oneOf": [
                        {
                          "title": "ReportCampaignsAll",
                          "required": [
                            "list_id",
                            "type"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "all"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsLast",
                          "required": [
                            "list_id",
                            "type"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "last"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsSpecific",
                          "required": [
                            "list_id",
                            "type",
                            "data"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "specific"
                              ]
                            },
                            "data": {
                              "description": "Array of campaign hashes",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsGroup",
                          "required": [
                            "list_id",
                            "type",
                            "data"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "group"
                              ]
                            },
                            "data": {
                              "description": "Array of campaign groups",
                              "type": "array",
                              "items": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "example": 1
                              }
                            }
                          },
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "columns": {
                    "title": "AdvancedReportEmailBouncesColumns",
                    "description": "Columns of the report",
                    "required": [
                      "list_base_fields",
                      "list_extra_fields",
                      "list_stats_fields",
                      "campaign_fields"
                    ],
                    "properties": {
                      "list_base_fields": {
                        "description": "Array of base fields",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "list_extra_fields": {
                        "title": "AdvancedReportListExtraFields",
                        "required": [
                          "list_id",
                          "fields"
                        ],
                        "type": "array",
                        "items": {
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "fields": {
                              "description": "Array of extra field IDs",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        }
                      },
                      "list_stats_fields": {
                        "title": "EmailBouncesListStatsFields",
                        "description": "List stats fields to include in the report",
                        "required": [
                          "bounce_date",
                          "bounce_type",
                          "bounce_detail"
                        ],
                        "properties": {
                          "bounce_date": {
                            "description": "True to include bounce date, false otherwise",
                            "type": "boolean"
                          },
                          "bounce_type": {
                            "description": "True to include bounce type, false otherwise",
                            "type": "boolean"
                          },
                          "bounce_detail": {
                            "description": "True to include bounce detail, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      },
                      "campaign_fields": {
                        "title": "EmailBouncesCampaignFields",
                        "description": "Campaign fields to include in the report",
                        "required": [
                          "internal_name",
                          "campaign_hash"
                        ],
                        "properties": {
                          "internal_name": {
                            "description": "True to include the internal name of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "campaign_hash": {
                            "description": "True to include the hash of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "send_date": {
                            "description": "True to include the send date of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "group": {
                            "description": "True to include the group of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "channel": {
                            "description": "True to include the channel of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "sender": {
                            "description": "True to include the sender of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "type": {
                            "description": "True to include the type of the campaign, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  "options": {
                    "title": "AdvancedReportEmailBouncesOptions",
                    "description": "Columns of the report",
                    "required": [
                      "include_unopens"
                    ],
                    "properties": {
                      "include_unopens": {
                        "description": "True to include info for not opened campaigns, false otherwise",
                        "type": "boolean"
                      },
                      "notify": {
                        "description": "Array of user IDs to notify",
                        "type": "array",
                        "items": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        }
                      },
                      "grouping": {
                        "description": "Field to group data",
                        "type": "string",
                        "default": "by_campaign",
                        "enum": [
                          "by_contact",
                          "by_campaign"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "callback_url": {
                    "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "callbacks": {
          "ExportContacts": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "title": "ExportReportWebhookData",
                        "description": "Accepted response schema",
                        "properties": {
                          "file": {
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "type": "object"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/reports/advanced/email-bounces' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"campaigns\":[{\"list_id\":\"<integer>\",\"type\":\"<string>\"},{\"list_id\":\"<integer>\",\"type\":\"<string>\"}],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"bounce_date\":\"<boolean>\",\"bounce_type\":\"<boolean>\",\"bounce_detail\":\"<boolean>\"},\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"send_date\":\"<boolean>\",\"group\":\"<boolean>\",\"channel\":\"<boolean>\",\"sender\":\"<boolean>\",\"type\":\"<boolean>\"}},\"options\":{\"include_unopens\":\"<boolean>\",\"notify\":[\"<integer>\",\"<integer>\"],\"grouping\":\"by_campaign\"},\"callback_url\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced/email-bounces\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"bounce_date\\\":\\\"<boolean>\\\",\\\"bounce_type\\\":\\\"<boolean>\\\",\\\"bounce_detail\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"include_unopens\\\":\\\"<boolean>\\\",\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"grouping\\\":\\\"by_campaign\\\"},\\\"callback_url\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"bounce_date\\\":\\\"<boolean>\\\",\\\"bounce_type\\\":\\\"<boolean>\\\",\\\"bounce_detail\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"include_unopens\\\":\\\"<boolean>\\\",\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"grouping\\\":\\\"by_campaign\\\"},\\\"callback_url\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced/email-bounces\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"campaigns\":[{\"list_id\":\"<integer>\",\"type\":\"<string>\"},{\"list_id\":\"<integer>\",\"type\":\"<string>\"}],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"bounce_date\":\"<boolean>\",\"bounce_type\":\"<boolean>\",\"bounce_detail\":\"<boolean>\"},\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"send_date\":\"<boolean>\",\"group\":\"<boolean>\",\"channel\":\"<boolean>\",\"sender\":\"<boolean>\",\"type\":\"<boolean>\"}},\"options\":{\"include_unopens\":\"<boolean>\",\"notify\":[\"<integer>\",\"<integer>\"],\"grouping\":\"by_campaign\"},\"callback_url\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/reports/advanced/email-bounces\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced/email-bounces\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"bounce_date\\\":\\\"<boolean>\\\",\\\"bounce_type\\\":\\\"<boolean>\\\",\\\"bounce_detail\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"include_unopens\\\":\\\"<boolean>\\\",\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"grouping\\\":\\\"by_campaign\\\"},\\\"callback_url\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"bounce_date\\\":\\\"<boolean>\\\",\\\"bounce_type\\\":\\\"<boolean>\\\",\\\"bounce_detail\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"include_unopens\\\":\\\"<boolean>\\\",\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"grouping\\\":\\\"by_campaign\\\"},\\\"callback_url\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/reports/advanced/email-bounces\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced/email-bounces\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"bounce_date\\\":\\\"<boolean>\\\",\\\"bounce_type\\\":\\\"<boolean>\\\",\\\"bounce_detail\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"include_unopens\\\":\\\"<boolean>\\\",\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"grouping\\\":\\\"by_campaign\\\"},\\\"callback_url\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced/email-clicks-by-contact": {
      "post": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Generate email clicks by contact report",
        "description": "Generates a new email clicks by contact report",
        "operationId": "generateEmailClicksByContactReport",
        "requestBody": {
          "description": "Parameters for the email clicks by contact report",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "GenerateEmailClicksByContactReport",
                "description": "Generate email clicks by contact report schema",
                "required": [
                  "title",
                  "range",
                  "campaigns",
                  "columns",
                  "options"
                ],
                "properties": {
                  "title": {
                    "description": "Advanced report title",
                    "type": "string",
                    "example": "Report title"
                  },
                  "range": {
                    "title": "AdvancedReportRange",
                    "description": "Time range of the report",
                    "required": [
                      "start",
                      "end"
                    ],
                    "properties": {
                      "start": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      },
                      "end": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "campaigns": {
                    "title": "AdvancedReportCampaigns",
                    "description": "Campaigns of the report",
                    "type": "array",
                    "items": {
                      "title": "AdvancedReportCampaignsObject",
                      "type": "object",
                      "discriminator": {
                        "propertyName": "type",
                        "mapping": {
                          "all": "#/components/schemas/ReportCampaignsAll",
                          "last": "#/components/schemas/ReportCampaignsLast",
                          "specific": "#/components/schemas/ReportCampaignsSpecific",
                          "group": "#/components/schemas/ReportCampaignsGroup"
                        }
                      },
                      "oneOf": [
                        {
                          "title": "ReportCampaignsAll",
                          "required": [
                            "list_id",
                            "type"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "all"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsLast",
                          "required": [
                            "list_id",
                            "type"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "last"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsSpecific",
                          "required": [
                            "list_id",
                            "type",
                            "data"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "specific"
                              ]
                            },
                            "data": {
                              "description": "Array of campaign hashes",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsGroup",
                          "required": [
                            "list_id",
                            "type",
                            "data"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "group"
                              ]
                            },
                            "data": {
                              "description": "Array of campaign groups",
                              "type": "array",
                              "items": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "example": 1
                              }
                            }
                          },
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "columns": {
                    "title": "AdvancedReportEmailClicksByContactColumns",
                    "description": "Columns of the report",
                    "required": [
                      "list_base_fields",
                      "list_extra_fields",
                      "list_stats_fields",
                      "campaign_fields"
                    ],
                    "properties": {
                      "list_base_fields": {
                        "description": "Array of base fields",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "list_extra_fields": {
                        "title": "AdvancedReportListExtraFields",
                        "required": [
                          "list_id",
                          "fields"
                        ],
                        "type": "array",
                        "items": {
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "fields": {
                              "description": "Array of extra field IDs",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        }
                      },
                      "list_stats_fields": {
                        "title": "EmailClicksByContactListStatsFields",
                        "description": "List stats fields to include in the report",
                        "required": [
                          "clicks"
                        ],
                        "properties": {
                          "clicks": {
                            "description": "True to include clicks, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      },
                      "campaign_fields": {
                        "title": "EmailClicksByContactCampaignFields",
                        "description": "Campaign fields to include in the report",
                        "required": [
                          "internal_name",
                          "campaign_hash",
                          "url"
                        ],
                        "properties": {
                          "internal_name": {
                            "description": "True to include the internal name of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "campaign_hash": {
                            "description": "True to include the hash of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "url": {
                            "description": "True to include the URL of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "send_date": {
                            "description": "True to include the send date of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "group": {
                            "description": "True to include the group of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "channel": {
                            "description": "True to include the channel of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "type": {
                            "description": "True to include the type of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "sender": {
                            "description": "True to include the sender of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "city": {
                            "description": "True to include city information, false otherwise (deprecated)",
                            "type": "boolean"
                          },
                          "country": {
                            "description": "True to include country information, false otherwise (deprecated)",
                            "type": "boolean"
                          },
                          "region": {
                            "description": "True to include region information, false otherwise (deprecated)",
                            "type": "boolean"
                          },
                          "program": {
                            "description": "True to include device program information, false otherwise (deprecated)",
                            "type": "boolean"
                          },
                          "os": {
                            "description": "True to include operating system information, false otherwise (deprecated)",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  "options": {
                    "title": "AdvancedReportEmailClicksByContactOptions",
                    "description": "Columns of the report",
                    "properties": {
                      "notify": {
                        "description": "Array of user IDs to notify",
                        "type": "array",
                        "items": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        }
                      }
                    },
                    "type": "object"
                  },
                  "callback_url": {
                    "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "callbacks": {
          "EmailClicksByContactReport": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "title": "ExportReportWebhookData",
                        "description": "Accepted response schema",
                        "properties": {
                          "file": {
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "type": "object"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/reports/advanced/email-clicks-by-contact' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"campaigns\":[{\"list_id\":\"<integer>\",\"type\":\"<string>\"},{\"list_id\":\"<integer>\",\"type\":\"<string>\"}],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"clicks\":\"<boolean>\"},\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"url\":\"<boolean>\",\"send_date\":\"<boolean>\",\"group\":\"<boolean>\",\"channel\":\"<boolean>\",\"type\":\"<boolean>\",\"sender\":\"<boolean>\",\"city\":\"<boolean>\",\"country\":\"<boolean>\",\"region\":\"<boolean>\",\"program\":\"<boolean>\",\"os\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced/email-clicks-by-contact\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"clicks\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"clicks\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced/email-clicks-by-contact\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"campaigns\":[{\"list_id\":\"<integer>\",\"type\":\"<string>\"},{\"list_id\":\"<integer>\",\"type\":\"<string>\"}],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"clicks\":\"<boolean>\"},\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"url\":\"<boolean>\",\"send_date\":\"<boolean>\",\"group\":\"<boolean>\",\"channel\":\"<boolean>\",\"type\":\"<boolean>\",\"sender\":\"<boolean>\",\"city\":\"<boolean>\",\"country\":\"<boolean>\",\"region\":\"<boolean>\",\"program\":\"<boolean>\",\"os\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/reports/advanced/email-clicks-by-contact\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced/email-clicks-by-contact\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"clicks\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"clicks\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/reports/advanced/email-clicks-by-contact\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced/email-clicks-by-contact\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"clicks\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced/email-clicks-by-url": {
      "post": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Generate email clicks by URL report",
        "description": "Generates a new email clicks by URL report",
        "operationId": "generateEmailClicksByUrlReport",
        "requestBody": {
          "description": "Parameters for the email clicks by URL report",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "GenerateEmailClicksByUrlReport",
                "description": "Generate email clicks by URL report schema",
                "required": [
                  "title",
                  "range",
                  "campaigns",
                  "columns",
                  "options"
                ],
                "properties": {
                  "title": {
                    "description": "Advanced report title",
                    "type": "string",
                    "example": "Report title"
                  },
                  "range": {
                    "title": "AdvancedReportRange",
                    "description": "Time range of the report",
                    "required": [
                      "start",
                      "end"
                    ],
                    "properties": {
                      "start": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      },
                      "end": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "campaigns": {
                    "title": "AdvancedReportCampaigns",
                    "description": "Campaigns of the report",
                    "type": "array",
                    "items": {
                      "title": "AdvancedReportCampaignsObject",
                      "type": "object",
                      "discriminator": {
                        "propertyName": "type",
                        "mapping": {
                          "all": "#/components/schemas/ReportCampaignsAll",
                          "last": "#/components/schemas/ReportCampaignsLast",
                          "specific": "#/components/schemas/ReportCampaignsSpecific",
                          "group": "#/components/schemas/ReportCampaignsGroup"
                        }
                      },
                      "oneOf": [
                        {
                          "title": "ReportCampaignsAll",
                          "required": [
                            "list_id",
                            "type"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "all"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsLast",
                          "required": [
                            "list_id",
                            "type"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "last"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsSpecific",
                          "required": [
                            "list_id",
                            "type",
                            "data"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "specific"
                              ]
                            },
                            "data": {
                              "description": "Array of campaign hashes",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsGroup",
                          "required": [
                            "list_id",
                            "type",
                            "data"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "group"
                              ]
                            },
                            "data": {
                              "description": "Array of campaign groups",
                              "type": "array",
                              "items": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "example": 1
                              }
                            }
                          },
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "columns": {
                    "title": "AdvancedReportEmailClicksByUrlColumns",
                    "description": "Columns of the report",
                    "required": [
                      "list_base_fields",
                      "list_extra_fields",
                      "list_stats_fields",
                      "campaign_fields"
                    ],
                    "properties": {
                      "list_base_fields": {
                        "description": "Array of base fields",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "list_extra_fields": {
                        "title": "AdvancedReportListExtraFields",
                        "required": [
                          "list_id",
                          "fields"
                        ],
                        "type": "array",
                        "items": {
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "fields": {
                              "description": "Array of extra field IDs",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        }
                      },
                      "list_stats_fields": {
                        "title": "EmailClicksByUrlListStatsFields",
                        "description": "List stats fields to include in the report",
                        "required": [
                          "clicks",
                          "unique_clicks",
                          "click_rate_per_url"
                        ],
                        "properties": {
                          "clicks": {
                            "description": "True to include clicks, false otherwise",
                            "type": "boolean"
                          },
                          "unique_clicks": {
                            "description": "True to include unique clicks, false otherwise",
                            "type": "boolean"
                          },
                          "click_rate_per_url": {
                            "description": "True to include click rate per URL, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      },
                      "campaign_fields": {
                        "title": "EmailClicksByUrlCampaignFields",
                        "description": "Campaign fields to include in the report",
                        "required": [
                          "internal_name",
                          "campaign_hash",
                          "url"
                        ],
                        "properties": {
                          "internal_name": {
                            "description": "True to include the internal name of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "campaign_hash": {
                            "description": "True to include the hash of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "url": {
                            "description": "True to include the URL of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "send_date": {
                            "description": "True to include the send date of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "group": {
                            "description": "True to include the group of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "channel": {
                            "description": "True to include the channel of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "type": {
                            "description": "True to include the type of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "city": {
                            "description": "True to include city information, false otherwise (deprecated)",
                            "type": "boolean"
                          },
                          "country": {
                            "description": "True to include country information, false otherwise (deprecated)",
                            "type": "boolean"
                          },
                          "region": {
                            "description": "True to include region information, false otherwise (deprecated)",
                            "type": "boolean"
                          },
                          "program": {
                            "description": "True to include device program information, false otherwise (deprecated)",
                            "type": "boolean"
                          },
                          "os": {
                            "description": "True to include operating system information, false otherwise (deprecated)",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  "options": {
                    "title": "AdvancedReportEmailClicksByUrlOptions",
                    "description": "Columns of the report",
                    "properties": {
                      "notify": {
                        "description": "Array of user IDs to notify",
                        "type": "array",
                        "items": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        }
                      }
                    },
                    "type": "object"
                  },
                  "callback_url": {
                    "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "callbacks": {
          "ExportContacts": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "title": "ExportReportWebhookData",
                        "description": "Accepted response schema",
                        "properties": {
                          "file": {
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "type": "object"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/reports/advanced/email-clicks-by-url' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"campaigns\":[{\"list_id\":\"<integer>\",\"type\":\"<string>\"},{\"list_id\":\"<integer>\",\"type\":\"<string>\"}],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"clicks\":\"<boolean>\",\"unique_clicks\":\"<boolean>\",\"click_rate_per_url\":\"<boolean>\"},\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"url\":\"<boolean>\",\"send_date\":\"<boolean>\",\"group\":\"<boolean>\",\"channel\":\"<boolean>\",\"type\":\"<boolean>\",\"city\":\"<boolean>\",\"country\":\"<boolean>\",\"region\":\"<boolean>\",\"program\":\"<boolean>\",\"os\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced/email-clicks-by-url\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"clicks\\\":\\\"<boolean>\\\",\\\"unique_clicks\\\":\\\"<boolean>\\\",\\\"click_rate_per_url\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"clicks\\\":\\\"<boolean>\\\",\\\"unique_clicks\\\":\\\"<boolean>\\\",\\\"click_rate_per_url\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced/email-clicks-by-url\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"campaigns\":[{\"list_id\":\"<integer>\",\"type\":\"<string>\"},{\"list_id\":\"<integer>\",\"type\":\"<string>\"}],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"clicks\":\"<boolean>\",\"unique_clicks\":\"<boolean>\",\"click_rate_per_url\":\"<boolean>\"},\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"url\":\"<boolean>\",\"send_date\":\"<boolean>\",\"group\":\"<boolean>\",\"channel\":\"<boolean>\",\"type\":\"<boolean>\",\"city\":\"<boolean>\",\"country\":\"<boolean>\",\"region\":\"<boolean>\",\"program\":\"<boolean>\",\"os\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/reports/advanced/email-clicks-by-url\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced/email-clicks-by-url\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"clicks\\\":\\\"<boolean>\\\",\\\"unique_clicks\\\":\\\"<boolean>\\\",\\\"click_rate_per_url\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"clicks\\\":\\\"<boolean>\\\",\\\"unique_clicks\\\":\\\"<boolean>\\\",\\\"click_rate_per_url\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/reports/advanced/email-clicks-by-url\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced/email-clicks-by-url\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"clicks\\\":\\\"<boolean>\\\",\\\"unique_clicks\\\":\\\"<boolean>\\\",\\\"click_rate_per_url\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced/email-events": {
      "post": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Generate email events report",
        "description": "Generates a new email events report",
        "operationId": "generateEmailEventsReport",
        "requestBody": {
          "description": "Parameters for the email events report",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "GenerateEmailEventsReport",
                "description": "Generate email events report schema",
                "required": [
                  "title",
                  "range",
                  "campaigns",
                  "columns",
                  "options"
                ],
                "properties": {
                  "title": {
                    "description": "Advanced report title",
                    "type": "string",
                    "example": "Report title"
                  },
                  "range": {
                    "title": "AdvancedReportRange",
                    "description": "Time range of the report",
                    "required": [
                      "start",
                      "end"
                    ],
                    "properties": {
                      "start": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      },
                      "end": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "campaigns": {
                    "title": "AdvancedReportCampaigns",
                    "description": "Campaigns of the report",
                    "type": "array",
                    "items": {
                      "title": "AdvancedReportCampaignsObject",
                      "type": "object",
                      "discriminator": {
                        "propertyName": "type",
                        "mapping": {
                          "all": "#/components/schemas/ReportCampaignsAll",
                          "last": "#/components/schemas/ReportCampaignsLast",
                          "specific": "#/components/schemas/ReportCampaignsSpecific",
                          "group": "#/components/schemas/ReportCampaignsGroup"
                        }
                      },
                      "oneOf": [
                        {
                          "title": "ReportCampaignsAll",
                          "required": [
                            "list_id",
                            "type"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "all"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsLast",
                          "required": [
                            "list_id",
                            "type"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "last"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsSpecific",
                          "required": [
                            "list_id",
                            "type",
                            "data"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "specific"
                              ]
                            },
                            "data": {
                              "description": "Array of campaign hashes",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsGroup",
                          "required": [
                            "list_id",
                            "type",
                            "data"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "group"
                              ]
                            },
                            "data": {
                              "description": "Array of campaign groups",
                              "type": "array",
                              "items": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "example": 1
                              }
                            }
                          },
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "columns": {
                    "title": "AdvancedReportEmailEventsColumns",
                    "description": "Columns of the report",
                    "required": [
                      "list_base_fields",
                      "list_extra_fields",
                      "list_stats_fields",
                      "campaign_fields"
                    ],
                    "properties": {
                      "list_base_fields": {
                        "description": "Array of base fields",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "list_extra_fields": {
                        "title": "AdvancedReportListExtraFields",
                        "required": [
                          "list_id",
                          "fields"
                        ],
                        "type": "array",
                        "items": {
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "fields": {
                              "description": "Array of extra field IDs",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        }
                      },
                      "list_stats_fields": {
                        "title": "EmailEventsListStatsFields",
                        "description": "List stats fields to include in the report",
                        "required": [
                          "opens",
                          "clicks",
                          "complaints",
                          "unsubscribes",
                          "bounces",
                          "forwards",
                          "forwards_conversion",
                          "fb_likes",
                          "fb_shares",
                          "tw_shares",
                          "social_shares"
                        ],
                        "properties": {
                          "opens": {
                            "description": "True to include opens, false otherwise",
                            "type": "boolean"
                          },
                          "clicks": {
                            "description": "True to include clicks, false otherwise",
                            "type": "boolean"
                          },
                          "complaints": {
                            "description": "True to include complaints, false otherwise",
                            "type": "boolean"
                          },
                          "unsubscribes": {
                            "description": "True to include unsubscriptions, false otherwise",
                            "type": "boolean"
                          },
                          "bounces": {
                            "description": "True to include bounces, false otherwise",
                            "type": "boolean"
                          },
                          "forwards": {
                            "description": "True to include forwards, false otherwise",
                            "type": "boolean"
                          },
                          "forwards_conversion": {
                            "description": "True to include converted forwards, false otherwise",
                            "type": "boolean"
                          },
                          "fb_likes": {
                            "description": "True to include facebook likes, false otherwise",
                            "type": "boolean"
                          },
                          "fb_shares": {
                            "description": "True to include facebook shares, false otherwise",
                            "type": "boolean"
                          },
                          "tw_shares": {
                            "description": "True to include twitter shares, false otherwise",
                            "type": "boolean"
                          },
                          "social_shares": {
                            "description": "True to include social shares, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      },
                      "campaign_fields": {
                        "title": "EmailEventsCampaignFields",
                        "description": "Campaign fields to include in the report",
                        "required": [
                          "internal_name",
                          "campaign_hash",
                          "send_date",
                          "group"
                        ],
                        "properties": {
                          "internal_name": {
                            "description": "True to include the internal name of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "campaign_hash": {
                            "description": "True to include the hash of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "send_date": {
                            "description": "True to include the send date of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "group": {
                            "description": "True to include the group of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "channel": {
                            "description": "True to include the channel of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "type": {
                            "description": "True to include the type of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "url": {
                            "description": "True to include the URL of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "sender": {
                            "description": "True to include the sender of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "city": {
                            "description": "True to include city information, false otherwise (deprecated)",
                            "type": "boolean"
                          },
                          "country": {
                            "description": "True to include country information, false otherwise (deprecated)",
                            "type": "boolean"
                          },
                          "region": {
                            "description": "True to include region information, false otherwise (deprecated)",
                            "type": "boolean"
                          },
                          "program": {
                            "description": "True to include device program information, false otherwise (deprecated)",
                            "type": "boolean"
                          },
                          "os": {
                            "description": "True to include operating system information, false otherwise (deprecated)",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  "options": {
                    "title": "AdvancedReportEmailEventsOptions",
                    "description": "Columns of the report",
                    "required": [
                      "include_unopens"
                    ],
                    "properties": {
                      "include_unopens": {
                        "description": "True to include info for not opened campaigns, false otherwise",
                        "type": "boolean"
                      },
                      "notify": {
                        "description": "Array of user IDs to notify",
                        "type": "array",
                        "items": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        }
                      }
                    },
                    "type": "object"
                  },
                  "callback_url": {
                    "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "callbacks": {
          "EmailEventsReport": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "title": "ExportReportWebhookData",
                        "description": "Accepted response schema",
                        "properties": {
                          "file": {
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "type": "object"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/reports/advanced/email-events' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"campaigns\":[{\"list_id\":\"<integer>\",\"type\":\"<string>\"},{\"list_id\":\"<integer>\",\"type\":\"<string>\"}],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"opens\":\"<boolean>\",\"clicks\":\"<boolean>\",\"complaints\":\"<boolean>\",\"unsubscribes\":\"<boolean>\",\"bounces\":\"<boolean>\",\"forwards\":\"<boolean>\",\"forwards_conversion\":\"<boolean>\",\"fb_likes\":\"<boolean>\",\"fb_shares\":\"<boolean>\",\"tw_shares\":\"<boolean>\",\"social_shares\":\"<boolean>\"},\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"send_date\":\"<boolean>\",\"group\":\"<boolean>\",\"channel\":\"<boolean>\",\"type\":\"<boolean>\",\"url\":\"<boolean>\",\"sender\":\"<boolean>\",\"city\":\"<boolean>\",\"country\":\"<boolean>\",\"region\":\"<boolean>\",\"program\":\"<boolean>\",\"os\":\"<boolean>\"}},\"options\":{\"include_unopens\":\"<boolean>\",\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced/email-events\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"opens\\\":\\\"<boolean>\\\",\\\"clicks\\\":\\\"<boolean>\\\",\\\"complaints\\\":\\\"<boolean>\\\",\\\"unsubscribes\\\":\\\"<boolean>\\\",\\\"bounces\\\":\\\"<boolean>\\\",\\\"forwards\\\":\\\"<boolean>\\\",\\\"forwards_conversion\\\":\\\"<boolean>\\\",\\\"fb_likes\\\":\\\"<boolean>\\\",\\\"fb_shares\\\":\\\"<boolean>\\\",\\\"tw_shares\\\":\\\"<boolean>\\\",\\\"social_shares\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"include_unopens\\\":\\\"<boolean>\\\",\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"opens\\\":\\\"<boolean>\\\",\\\"clicks\\\":\\\"<boolean>\\\",\\\"complaints\\\":\\\"<boolean>\\\",\\\"unsubscribes\\\":\\\"<boolean>\\\",\\\"bounces\\\":\\\"<boolean>\\\",\\\"forwards\\\":\\\"<boolean>\\\",\\\"forwards_conversion\\\":\\\"<boolean>\\\",\\\"fb_likes\\\":\\\"<boolean>\\\",\\\"fb_shares\\\":\\\"<boolean>\\\",\\\"tw_shares\\\":\\\"<boolean>\\\",\\\"social_shares\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"include_unopens\\\":\\\"<boolean>\\\",\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced/email-events\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"campaigns\":[{\"list_id\":\"<integer>\",\"type\":\"<string>\"},{\"list_id\":\"<integer>\",\"type\":\"<string>\"}],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"opens\":\"<boolean>\",\"clicks\":\"<boolean>\",\"complaints\":\"<boolean>\",\"unsubscribes\":\"<boolean>\",\"bounces\":\"<boolean>\",\"forwards\":\"<boolean>\",\"forwards_conversion\":\"<boolean>\",\"fb_likes\":\"<boolean>\",\"fb_shares\":\"<boolean>\",\"tw_shares\":\"<boolean>\",\"social_shares\":\"<boolean>\"},\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"send_date\":\"<boolean>\",\"group\":\"<boolean>\",\"channel\":\"<boolean>\",\"type\":\"<boolean>\",\"url\":\"<boolean>\",\"sender\":\"<boolean>\",\"city\":\"<boolean>\",\"country\":\"<boolean>\",\"region\":\"<boolean>\",\"program\":\"<boolean>\",\"os\":\"<boolean>\"}},\"options\":{\"include_unopens\":\"<boolean>\",\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/reports/advanced/email-events\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced/email-events\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"opens\\\":\\\"<boolean>\\\",\\\"clicks\\\":\\\"<boolean>\\\",\\\"complaints\\\":\\\"<boolean>\\\",\\\"unsubscribes\\\":\\\"<boolean>\\\",\\\"bounces\\\":\\\"<boolean>\\\",\\\"forwards\\\":\\\"<boolean>\\\",\\\"forwards_conversion\\\":\\\"<boolean>\\\",\\\"fb_likes\\\":\\\"<boolean>\\\",\\\"fb_shares\\\":\\\"<boolean>\\\",\\\"tw_shares\\\":\\\"<boolean>\\\",\\\"social_shares\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"include_unopens\\\":\\\"<boolean>\\\",\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"opens\\\":\\\"<boolean>\\\",\\\"clicks\\\":\\\"<boolean>\\\",\\\"complaints\\\":\\\"<boolean>\\\",\\\"unsubscribes\\\":\\\"<boolean>\\\",\\\"bounces\\\":\\\"<boolean>\\\",\\\"forwards\\\":\\\"<boolean>\\\",\\\"forwards_conversion\\\":\\\"<boolean>\\\",\\\"fb_likes\\\":\\\"<boolean>\\\",\\\"fb_shares\\\":\\\"<boolean>\\\",\\\"tw_shares\\\":\\\"<boolean>\\\",\\\"social_shares\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"include_unopens\\\":\\\"<boolean>\\\",\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/reports/advanced/email-events\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced/email-events\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"opens\\\":\\\"<boolean>\\\",\\\"clicks\\\":\\\"<boolean>\\\",\\\"complaints\\\":\\\"<boolean>\\\",\\\"unsubscribes\\\":\\\"<boolean>\\\",\\\"bounces\\\":\\\"<boolean>\\\",\\\"forwards\\\":\\\"<boolean>\\\",\\\"forwards_conversion\\\":\\\"<boolean>\\\",\\\"fb_likes\\\":\\\"<boolean>\\\",\\\"fb_shares\\\":\\\"<boolean>\\\",\\\"tw_shares\\\":\\\"<boolean>\\\",\\\"social_shares\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"url\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"city\\\":\\\"<boolean>\\\",\\\"country\\\":\\\"<boolean>\\\",\\\"region\\\":\\\"<boolean>\\\",\\\"program\\\":\\\"<boolean>\\\",\\\"os\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"include_unopens\\\":\\\"<boolean>\\\",\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced/email-unsubscriptions": {
      "post": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Generate email unsubscriptions report",
        "description": "Generates a new email unsubscriptions report",
        "operationId": "generateEmailUnsubscriptionsReport",
        "requestBody": {
          "description": "Parameters for the email unsubscriptions report",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "GenerateEmailUnsubscriptionsReport",
                "description": "Generate email unsubscriptions report schema",
                "required": [
                  "title",
                  "range",
                  "campaigns",
                  "columns",
                  "options"
                ],
                "properties": {
                  "title": {
                    "description": "Advanced report title",
                    "type": "string",
                    "example": "Report title"
                  },
                  "range": {
                    "title": "AdvancedReportRange",
                    "description": "Time range of the report",
                    "required": [
                      "start",
                      "end"
                    ],
                    "properties": {
                      "start": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      },
                      "end": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "campaigns": {
                    "title": "AdvancedReportCampaigns",
                    "description": "Campaigns of the report",
                    "type": "array",
                    "items": {
                      "title": "AdvancedReportCampaignsObject",
                      "type": "object",
                      "discriminator": {
                        "propertyName": "type",
                        "mapping": {
                          "all": "#/components/schemas/ReportCampaignsAll",
                          "last": "#/components/schemas/ReportCampaignsLast",
                          "specific": "#/components/schemas/ReportCampaignsSpecific",
                          "group": "#/components/schemas/ReportCampaignsGroup"
                        }
                      },
                      "oneOf": [
                        {
                          "title": "ReportCampaignsAll",
                          "required": [
                            "list_id",
                            "type"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "all"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsLast",
                          "required": [
                            "list_id",
                            "type"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "last"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsSpecific",
                          "required": [
                            "list_id",
                            "type",
                            "data"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "specific"
                              ]
                            },
                            "data": {
                              "description": "Array of campaign hashes",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsGroup",
                          "required": [
                            "list_id",
                            "type",
                            "data"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "group"
                              ]
                            },
                            "data": {
                              "description": "Array of campaign groups",
                              "type": "array",
                              "items": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "example": 1
                              }
                            }
                          },
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "columns": {
                    "title": "AdvancedReportEmailUnsubscriptionsColumns",
                    "description": "Columns of the report",
                    "required": [
                      "list_base_fields",
                      "list_extra_fields",
                      "list_stats_fields",
                      "campaign_fields"
                    ],
                    "properties": {
                      "list_base_fields": {
                        "description": "Array of base fields",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "list_extra_fields": {
                        "title": "AdvancedReportListExtraFields",
                        "required": [
                          "list_id",
                          "fields"
                        ],
                        "type": "array",
                        "items": {
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "fields": {
                              "description": "Array of extra field IDs",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        }
                      },
                      "list_stats_fields": {
                        "title": "EmailUnsubscriptionsListStatsFields",
                        "description": "List stats fields to include in the report",
                        "required": [
                          "unsubscription_method",
                          "unsubscription_motive",
                          "unsubscription_date"
                        ],
                        "properties": {
                          "unsubscription_method": {
                            "description": "True to include unsubscription method, false otherwise",
                            "type": "boolean"
                          },
                          "unsubscription_motive": {
                            "description": "True to include unsubscription motive, false otherwise",
                            "type": "boolean"
                          },
                          "unsubscription_date": {
                            "description": "True to include unsubscription date, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      },
                      "campaign_fields": {
                        "title": "EmailUnsubscriptionsCampaignFields",
                        "description": "Campaign fields to include in the report",
                        "required": [
                          "internal_name",
                          "campaign_hash",
                          "sender"
                        ],
                        "properties": {
                          "internal_name": {
                            "description": "True to include the internal name of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "campaign_hash": {
                            "description": "True to include the hash of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "send_date": {
                            "description": "True to include the send date of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "group": {
                            "description": "True to include the group of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "channel": {
                            "description": "True to include the channel of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "type": {
                            "description": "True to include the type of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "sender": {
                            "description": "True to include the sender of the campaign, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  "options": {
                    "title": "AdvancedReportEmailUnsubscriptionsOptions",
                    "description": "Columns of the report",
                    "properties": {
                      "notify": {
                        "description": "Array of user IDs to notify",
                        "type": "array",
                        "items": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        }
                      }
                    },
                    "type": "object"
                  },
                  "callback_url": {
                    "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "callbacks": {
          "EmailUnsubscriptionsReport": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "title": "ExportReportWebhookData",
                        "description": "Accepted response schema",
                        "properties": {
                          "file": {
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "type": "object"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/reports/advanced/email-unsubscriptions' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"campaigns\":[{\"list_id\":\"<integer>\",\"type\":\"<string>\"},{\"list_id\":\"<integer>\",\"type\":\"<string>\"}],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"unsubscription_method\":\"<boolean>\",\"unsubscription_motive\":\"<boolean>\",\"unsubscription_date\":\"<boolean>\"},\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"sender\":\"<boolean>\",\"send_date\":\"<boolean>\",\"group\":\"<boolean>\",\"channel\":\"<boolean>\",\"type\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced/email-unsubscriptions\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"unsubscription_method\\\":\\\"<boolean>\\\",\\\"unsubscription_motive\\\":\\\"<boolean>\\\",\\\"unsubscription_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"unsubscription_method\\\":\\\"<boolean>\\\",\\\"unsubscription_motive\\\":\\\"<boolean>\\\",\\\"unsubscription_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced/email-unsubscriptions\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"campaigns\":[{\"list_id\":\"<integer>\",\"type\":\"<string>\"},{\"list_id\":\"<integer>\",\"type\":\"<string>\"}],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"unsubscription_method\":\"<boolean>\",\"unsubscription_motive\":\"<boolean>\",\"unsubscription_date\":\"<boolean>\"},\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"sender\":\"<boolean>\",\"send_date\":\"<boolean>\",\"group\":\"<boolean>\",\"channel\":\"<boolean>\",\"type\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/reports/advanced/email-unsubscriptions\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced/email-unsubscriptions\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"unsubscription_method\\\":\\\"<boolean>\\\",\\\"unsubscription_motive\\\":\\\"<boolean>\\\",\\\"unsubscription_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"unsubscription_method\\\":\\\"<boolean>\\\",\\\"unsubscription_motive\\\":\\\"<boolean>\\\",\\\"unsubscription_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/reports/advanced/email-unsubscriptions\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced/email-unsubscriptions\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"unsubscription_method\\\":\\\"<boolean>\\\",\\\"unsubscription_motive\\\":\\\"<boolean>\\\",\\\"unsubscription_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced/form-answers": {
      "post": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Generate form answers report",
        "description": "Generates a new form answers report",
        "operationId": "generateFormAnswersReport",
        "requestBody": {
          "description": "Parameters for the form answers report",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "GenerateFormAnswersReport",
                "description": "Generate form answers report schema",
                "required": [
                  "title",
                  "range",
                  "forms"
                ],
                "properties": {
                  "title": {
                    "description": "Advanced report title",
                    "type": "string",
                    "example": "Report title"
                  },
                  "range": {
                    "title": "AdvancedReportRange",
                    "description": "Time range of the report",
                    "required": [
                      "start",
                      "end"
                    ],
                    "properties": {
                      "start": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      },
                      "end": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "forms": {
                    "title": "AdvancedReportForms",
                    "required": [
                      "list_id",
                      "forms"
                    ],
                    "type": "array",
                    "items": {
                      "properties": {
                        "list_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "forms": {
                          "description": "Array of form IDs",
                          "type": "array",
                          "items": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "example": 1
                          }
                        }
                      },
                      "type": "object"
                    }
                  },
                  "callback_url": {
                    "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "callbacks": {
          "FormAnswersReport": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "title": "ExportReportWebhookData",
                        "description": "Accepted response schema",
                        "properties": {
                          "file": {
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "type": "object"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/reports/advanced/form-answers' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"forms\":[{\"list_id\":\"<integer>\",\"forms\":[\"<integer>\",\"<integer>\"]},{\"list_id\":\"<integer>\",\"forms\":[\"<integer>\",\"<integer>\"]}],\"callback_url\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced/form-answers\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"forms\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"forms\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"forms\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}],\\\"callback_url\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"forms\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"forms\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"forms\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}],\\\"callback_url\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced/form-answers\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"forms\":[{\"list_id\":\"<integer>\",\"forms\":[\"<integer>\",\"<integer>\"]},{\"list_id\":\"<integer>\",\"forms\":[\"<integer>\",\"<integer>\"]}],\"callback_url\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/reports/advanced/form-answers\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced/form-answers\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"forms\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"forms\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"forms\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}],\\\"callback_url\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"forms\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"forms\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"forms\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}],\\\"callback_url\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/reports/advanced/form-answers\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced/form-answers\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"forms\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"forms\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"forms\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]}],\\\"callback_url\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced/models": {
      "get": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Get all advanced reports models",
        "description": "Returns all advanced reports",
        "operationId": "getAllAdvancedReportsModels",
        "parameters": [
          {
            "name": "title",
            "in": "query",
            "description": "Advanced report model title",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "Type of order",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "order_by",
            "in": "query",
            "description": "Reference attribute to order the advanced reports",
            "required": false,
            "schema": {
              "type": "string",
              "default": "model_id",
              "enum": [
                "model_id",
                "title",
                "created"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AdvancedReportsModelsCollection",
                  "description": "Collection of advanced reports models",
                  "properties": {
                    "total_items": {
                      "description": "Total advanced reports models",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned advanced reports models",
                      "type": "array",
                      "items": {
                        "title": "AdvancedReportModels",
                        "description": "Advanced report schema",
                        "properties": {
                          "model_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "title": {
                            "description": "Advanced report model title",
                            "type": "string",
                            "example": "Report title"
                          },
                          "created": {
                            "allOf": [
                              {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              }
                            ]
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/reports/advanced/models?title=<string>&offset=<integer>&limit=10&order=desc&order_by=model_id' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced/models?title=<string>&offset=<integer>&limit=10&order=desc&order_by=model_id\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced/models?title=<string>&offset=<integer>&limit=10&order=desc&order_by=model_id\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/reports/advanced/models?title=<string>&offset=<integer>&limit=10&order=desc&order_by=model_id\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced/models?title=<string>&offset=<integer>&limit=10&order=desc&order_by=model_id\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/reports/advanced/models?title=<string>&offset=<integer>&limit=10&order=desc&order_by=model_id\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced/models?title=<string>&offset=<integer>&limit=10&order=desc&order_by=model_id\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced/sends": {
      "post": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Generate sends report",
        "description": "Generates a new sends report",
        "operationId": "generateSendsReport",
        "requestBody": {
          "description": "Parameters for the sends report",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "GenerateSendsReport",
                "description": "Generate sends report schema",
                "required": [
                  "title",
                  "range",
                  "lists",
                  "columns",
                  "options"
                ],
                "properties": {
                  "title": {
                    "description": "Advanced report title",
                    "type": "string",
                    "example": "Report title"
                  },
                  "range": {
                    "title": "AdvancedReportRange",
                    "description": "Time range of the report",
                    "required": [
                      "start",
                      "end"
                    ],
                    "properties": {
                      "start": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      },
                      "end": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "lists": {
                    "description": "Array of List Id's",
                    "type": "array",
                    "items": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    }
                  },
                  "columns": {
                    "title": "AdvancedReportSendsColumns",
                    "description": "Columns of the report",
                    "required": [
                      "list_base_fields",
                      "list_extra_fields",
                      "campaign_fields"
                    ],
                    "properties": {
                      "list_base_fields": {
                        "description": "Array of base fields",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "list_extra_fields": {
                        "title": "AdvancedReportListExtraFields",
                        "required": [
                          "list_id",
                          "fields"
                        ],
                        "type": "array",
                        "items": {
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "fields": {
                              "description": "Array of extra field IDs",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        }
                      },
                      "campaign_fields": {
                        "title": "SendsCampaignFields",
                        "description": "Campaign fields to include in the report",
                        "required": [
                          "internal_name",
                          "campaign_hash",
                          "group",
                          "channel",
                          "type",
                          "sender"
                        ],
                        "properties": {
                          "internal_name": {
                            "description": "True to include the internal name of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "campaign_hash": {
                            "description": "True to include the hash of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "send_date": {
                            "description": "True to include the send date of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "group": {
                            "description": "True to include the group of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "channel": {
                            "description": "True to include the channel of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "type": {
                            "description": "True to include the type of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "sender": {
                            "description": "True to include the sender of the campaign, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  "options": {
                    "title": "AdvancedReportSendsOptions",
                    "description": "Columns of the report",
                    "properties": {
                      "notify": {
                        "description": "Array of user IDs to notify",
                        "type": "array",
                        "items": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        }
                      }
                    },
                    "type": "object"
                  },
                  "callback_url": {
                    "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "callbacks": {
          "SendsReport": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "title": "ExportReportWebhookData",
                        "description": "Accepted response schema",
                        "properties": {
                          "file": {
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "type": "object"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/reports/advanced/sends' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"lists\":[\"<integer>\",\"<integer>\"],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"group\":\"<boolean>\",\"channel\":\"<boolean>\",\"type\":\"<boolean>\",\"sender\":\"<boolean>\",\"send_date\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced/sends\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced/sends\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"lists\":[\"<integer>\",\"<integer>\"],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"group\":\"<boolean>\",\"channel\":\"<boolean>\",\"type\":\"<boolean>\",\"sender\":\"<boolean>\",\"send_date\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/reports/advanced/sends\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced/sends\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/reports/advanced/sends\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced/sends\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced/sms-bounces": {
      "post": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Generate SMS bounces report",
        "description": "Generates a new SMS bounces report",
        "operationId": "generateSmsBouncesReport",
        "requestBody": {
          "description": "Parameters for the SMS bounces report",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "GenerateSmsBouncesReport",
                "description": "Generate SMS bounces report schema",
                "required": [
                  "title",
                  "range",
                  "campaigns",
                  "columns",
                  "options"
                ],
                "properties": {
                  "title": {
                    "description": "Advanced report title",
                    "type": "string",
                    "example": "Report title"
                  },
                  "range": {
                    "title": "AdvancedReportRange",
                    "description": "Time range of the report",
                    "required": [
                      "start",
                      "end"
                    ],
                    "properties": {
                      "start": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      },
                      "end": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "campaigns": {
                    "title": "AdvancedReportCampaigns",
                    "description": "Campaigns of the report",
                    "type": "array",
                    "items": {
                      "title": "AdvancedReportCampaignsObject",
                      "type": "object",
                      "discriminator": {
                        "propertyName": "type",
                        "mapping": {
                          "all": "#/components/schemas/ReportCampaignsAll",
                          "last": "#/components/schemas/ReportCampaignsLast",
                          "specific": "#/components/schemas/ReportCampaignsSpecific",
                          "group": "#/components/schemas/ReportCampaignsGroup"
                        }
                      },
                      "oneOf": [
                        {
                          "title": "ReportCampaignsAll",
                          "required": [
                            "list_id",
                            "type"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "all"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsLast",
                          "required": [
                            "list_id",
                            "type"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "last"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsSpecific",
                          "required": [
                            "list_id",
                            "type",
                            "data"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "specific"
                              ]
                            },
                            "data": {
                              "description": "Array of campaign hashes",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsGroup",
                          "required": [
                            "list_id",
                            "type",
                            "data"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "group"
                              ]
                            },
                            "data": {
                              "description": "Array of campaign groups",
                              "type": "array",
                              "items": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "example": 1
                              }
                            }
                          },
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "columns": {
                    "title": "AdvancedReportSmsBouncesColumns",
                    "description": "Columns of the report",
                    "required": [
                      "list_base_fields",
                      "list_extra_fields",
                      "list_stats_fields",
                      "campaign_fields"
                    ],
                    "properties": {
                      "list_base_fields": {
                        "description": "Array of base fields",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "list_extra_fields": {
                        "title": "AdvancedReportListExtraFields",
                        "required": [
                          "list_id",
                          "fields"
                        ],
                        "type": "array",
                        "items": {
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "fields": {
                              "description": "Array of extra field IDs",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        }
                      },
                      "list_stats_fields": {
                        "title": "SmsBouncesListStatsFields",
                        "description": "List stats fields to include in the report",
                        "required": [
                          "delivery_answer",
                          "delivery_date"
                        ],
                        "properties": {
                          "delivery_answer": {
                            "description": "True to include delivery answer, false otherwise",
                            "type": "boolean"
                          },
                          "delivery_date": {
                            "description": "True to include delivery date, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      },
                      "campaign_fields": {
                        "title": "SmsBouncesCampaignFields",
                        "description": "Campaign fields to include in the report",
                        "required": [
                          "internal_name",
                          "campaign_hash",
                          "send_date",
                          "sender"
                        ],
                        "properties": {
                          "internal_name": {
                            "description": "True to include the internal name of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "campaign_hash": {
                            "description": "True to include the hash of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "send_date": {
                            "description": "True to include the send date of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "group": {
                            "description": "True to include the group of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "channel": {
                            "description": "True to include the channel of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "type": {
                            "description": "True to include the type of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "sender": {
                            "description": "True to include the sender of the campaign, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  "options": {
                    "title": "AdvancedReportSmsBouncesOptions",
                    "description": "Columns of the report",
                    "properties": {
                      "notify": {
                        "description": "Array of user IDs to notify",
                        "type": "array",
                        "items": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        }
                      },
                      "grouping": {
                        "description": "Field to group data",
                        "type": "string",
                        "default": "by_campaign",
                        "enum": [
                          "by_contact",
                          "by_campaign"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "callback_url": {
                    "description": "URL which will receive the information of the report<a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "callbacks": {
          "SmsBouncesReport": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "title": "ExportReportWebhookData",
                        "description": "Accepted response schema",
                        "properties": {
                          "file": {
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "type": "object"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/reports/advanced/sms-bounces' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"campaigns\":[{\"list_id\":\"<integer>\",\"type\":\"<string>\"},{\"list_id\":\"<integer>\",\"type\":\"<string>\"}],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"delivery_answer\":\"<boolean>\",\"delivery_date\":\"<boolean>\"},\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"send_date\":\"<boolean>\",\"sender\":\"<boolean>\",\"group\":\"<boolean>\",\"channel\":\"<boolean>\",\"type\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"],\"grouping\":\"by_campaign\"},\"callback_url\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced/sms-bounces\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"delivery_answer\\\":\\\"<boolean>\\\",\\\"delivery_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"grouping\\\":\\\"by_campaign\\\"},\\\"callback_url\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"delivery_answer\\\":\\\"<boolean>\\\",\\\"delivery_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"grouping\\\":\\\"by_campaign\\\"},\\\"callback_url\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced/sms-bounces\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"campaigns\":[{\"list_id\":\"<integer>\",\"type\":\"<string>\"},{\"list_id\":\"<integer>\",\"type\":\"<string>\"}],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"delivery_answer\":\"<boolean>\",\"delivery_date\":\"<boolean>\"},\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"send_date\":\"<boolean>\",\"sender\":\"<boolean>\",\"group\":\"<boolean>\",\"channel\":\"<boolean>\",\"type\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"],\"grouping\":\"by_campaign\"},\"callback_url\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/reports/advanced/sms-bounces\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced/sms-bounces\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"delivery_answer\\\":\\\"<boolean>\\\",\\\"delivery_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"grouping\\\":\\\"by_campaign\\\"},\\\"callback_url\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"delivery_answer\\\":\\\"<boolean>\\\",\\\"delivery_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"grouping\\\":\\\"by_campaign\\\"},\\\"callback_url\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/reports/advanced/sms-bounces\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced/sms-bounces\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"delivery_answer\\\":\\\"<boolean>\\\",\\\"delivery_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"grouping\\\":\\\"by_campaign\\\"},\\\"callback_url\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced/sms-events": {
      "post": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Generate SMS events report",
        "description": "Generates a new SMS events report",
        "operationId": "generateSmsEventsReport",
        "requestBody": {
          "description": "Parameters for the SMS events report",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "GenerateSmsEventsReport",
                "description": "Generate SMS events report schema",
                "required": [
                  "title",
                  "range",
                  "campaigns",
                  "columns",
                  "options"
                ],
                "properties": {
                  "title": {
                    "description": "Advanced report title",
                    "type": "string",
                    "example": "Report title"
                  },
                  "range": {
                    "title": "AdvancedReportRange",
                    "description": "Time range of the report",
                    "required": [
                      "start",
                      "end"
                    ],
                    "properties": {
                      "start": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      },
                      "end": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "campaigns": {
                    "title": "AdvancedReportCampaigns",
                    "description": "Campaigns of the report",
                    "type": "array",
                    "items": {
                      "title": "AdvancedReportCampaignsObject",
                      "type": "object",
                      "discriminator": {
                        "propertyName": "type",
                        "mapping": {
                          "all": "#/components/schemas/ReportCampaignsAll",
                          "last": "#/components/schemas/ReportCampaignsLast",
                          "specific": "#/components/schemas/ReportCampaignsSpecific",
                          "group": "#/components/schemas/ReportCampaignsGroup"
                        }
                      },
                      "oneOf": [
                        {
                          "title": "ReportCampaignsAll",
                          "required": [
                            "list_id",
                            "type"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "all"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsLast",
                          "required": [
                            "list_id",
                            "type"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "last"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsSpecific",
                          "required": [
                            "list_id",
                            "type",
                            "data"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "specific"
                              ]
                            },
                            "data": {
                              "description": "Array of campaign hashes",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ReportCampaignsGroup",
                          "required": [
                            "list_id",
                            "type",
                            "data"
                          ],
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "group"
                              ]
                            },
                            "data": {
                              "description": "Array of campaign groups",
                              "type": "array",
                              "items": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "example": 1
                              }
                            }
                          },
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "columns": {
                    "title": "AdvancedReportSmsEventsColumns",
                    "description": "Columns of the report",
                    "required": [
                      "list_base_fields",
                      "list_extra_fields",
                      "list_stats_fields",
                      "campaign_fields"
                    ],
                    "properties": {
                      "list_base_fields": {
                        "description": "Array of base fields",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "list_extra_fields": {
                        "title": "AdvancedReportListExtraFields",
                        "required": [
                          "list_id",
                          "fields"
                        ],
                        "type": "array",
                        "items": {
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "fields": {
                              "description": "Array of extra field IDs",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        }
                      },
                      "list_stats_fields": {
                        "title": "SmsEventsListStatsFields",
                        "description": "List stats fields to include in the report",
                        "required": [
                          "delivery_answer",
                          "delivery_date"
                        ],
                        "properties": {
                          "delivery_answer": {
                            "description": "True to include delivery answer, false otherwise",
                            "type": "boolean"
                          },
                          "delivery_date": {
                            "description": "True to include delivery date, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      },
                      "campaign_fields": {
                        "title": "SmsEventsCampaignFields",
                        "description": "Campaign fields to include in the report",
                        "required": [
                          "internal_name",
                          "campaign_hash",
                          "send_date",
                          "group",
                          "sender"
                        ],
                        "properties": {
                          "internal_name": {
                            "description": "True to include the internal name of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "campaign_hash": {
                            "description": "True to include the hash of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "send_date": {
                            "description": "True to include the send date of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "group": {
                            "description": "True to include the group of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "channel": {
                            "description": "True to include the channel of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "type": {
                            "description": "True to include the type of the campaign, false otherwise",
                            "type": "boolean"
                          },
                          "sender": {
                            "description": "True to include the sender of the campaign, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  "options": {
                    "title": "AdvancedReportSmsEventsOptions",
                    "description": "Columns of the report",
                    "properties": {
                      "notify": {
                        "description": "Array of user IDs to notify",
                        "type": "array",
                        "items": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        }
                      }
                    },
                    "type": "object"
                  },
                  "callback_url": {
                    "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "callbacks": {
          "SmsEventsReport": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "title": "ExportReportWebhookData",
                        "description": "Accepted response schema",
                        "properties": {
                          "file": {
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "type": "object"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/reports/advanced/sms-events' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"campaigns\":[{\"list_id\":\"<integer>\",\"type\":\"<string>\"},{\"list_id\":\"<integer>\",\"type\":\"<string>\"}],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"delivery_answer\":\"<boolean>\",\"delivery_date\":\"<boolean>\"},\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"send_date\":\"<boolean>\",\"group\":\"<boolean>\",\"sender\":\"<boolean>\",\"channel\":\"<boolean>\",\"type\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced/sms-events\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"delivery_answer\\\":\\\"<boolean>\\\",\\\"delivery_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"delivery_answer\\\":\\\"<boolean>\\\",\\\"delivery_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced/sms-events\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"campaigns\":[{\"list_id\":\"<integer>\",\"type\":\"<string>\"},{\"list_id\":\"<integer>\",\"type\":\"<string>\"}],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"delivery_answer\":\"<boolean>\",\"delivery_date\":\"<boolean>\"},\"campaign_fields\":{\"internal_name\":\"<boolean>\",\"campaign_hash\":\"<boolean>\",\"send_date\":\"<boolean>\",\"group\":\"<boolean>\",\"sender\":\"<boolean>\",\"channel\":\"<boolean>\",\"type\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/reports/advanced/sms-events\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced/sms-events\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"delivery_answer\\\":\\\"<boolean>\\\",\\\"delivery_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"delivery_answer\\\":\\\"<boolean>\\\",\\\"delivery_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/reports/advanced/sms-events\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced/sms-events\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"campaigns\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"},{\\\"list_id\\\":\\\"<integer>\\\",\\\"type\\\":\\\"<string>\\\"}],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"delivery_answer\\\":\\\"<boolean>\\\",\\\"delivery_date\\\":\\\"<boolean>\\\"},\\\"campaign_fields\\\":{\\\"internal_name\\\":\\\"<boolean>\\\",\\\"campaign_hash\\\":\\\"<boolean>\\\",\\\"send_date\\\":\\\"<boolean>\\\",\\\"group\\\":\\\"<boolean>\\\",\\\"sender\\\":\\\"<boolean>\\\",\\\"channel\\\":\\\"<boolean>\\\",\\\"type\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced/subscriptions": {
      "post": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Generate subscriptions report",
        "description": "Generates a new subscriptions report",
        "operationId": "generateSubscriptionsReport",
        "requestBody": {
          "description": "Parameters for the subscriptions report",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "GenerateSubscriptionsReport",
                "description": "Generate subscriptions report schema",
                "required": [
                  "title",
                  "range",
                  "lists",
                  "columns",
                  "options"
                ],
                "properties": {
                  "title": {
                    "description": "Advanced report title",
                    "type": "string",
                    "example": "Report title"
                  },
                  "range": {
                    "title": "AdvancedReportRange",
                    "description": "Time range of the report",
                    "required": [
                      "start",
                      "end"
                    ],
                    "properties": {
                      "start": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      },
                      "end": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "lists": {
                    "description": "Array of List Id's",
                    "type": "array",
                    "items": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    }
                  },
                  "columns": {
                    "title": "AdvancedReportSubscriptionsColumns",
                    "description": "Columns of the report",
                    "required": [
                      "list_base_fields",
                      "list_extra_fields",
                      "list_stats_fields"
                    ],
                    "properties": {
                      "list_base_fields": {
                        "description": "Array of base fields",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "list_extra_fields": {
                        "title": "AdvancedReportListExtraFields",
                        "required": [
                          "list_id",
                          "fields"
                        ],
                        "type": "array",
                        "items": {
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "fields": {
                              "description": "Array of extra field IDs",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        }
                      },
                      "list_stats_fields": {
                        "title": "SubscriptionsListStatsFields",
                        "description": "List stats fields to include in the report",
                        "required": [
                          "subscription_method",
                          "subscription_src"
                        ],
                        "properties": {
                          "subscription_method": {
                            "description": "True to include subscription method, false otherwise",
                            "type": "boolean"
                          },
                          "subscription_src": {
                            "description": "True to include subscription source, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  "options": {
                    "title": "AdvancedReportSubscriptionsOptions",
                    "description": "Columns of the report",
                    "properties": {
                      "notify": {
                        "description": "Array of user IDs to notify",
                        "type": "array",
                        "items": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        }
                      }
                    },
                    "type": "object"
                  },
                  "callback_url": {
                    "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "callbacks": {
          "SubscriptionsReport": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "title": "ExportReportWebhookData",
                        "description": "Accepted response schema",
                        "properties": {
                          "file": {
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "type": "object"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/reports/advanced/subscriptions' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"lists\":[\"<integer>\",\"<integer>\"],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"subscription_method\":\"<boolean>\",\"subscription_src\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced/subscriptions\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"subscription_method\\\":\\\"<boolean>\\\",\\\"subscription_src\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"subscription_method\\\":\\\"<boolean>\\\",\\\"subscription_src\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced/subscriptions\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"lists\":[\"<integer>\",\"<integer>\"],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"subscription_method\":\"<boolean>\",\"subscription_src\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/reports/advanced/subscriptions\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced/subscriptions\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"subscription_method\\\":\\\"<boolean>\\\",\\\"subscription_src\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"subscription_method\\\":\\\"<boolean>\\\",\\\"subscription_src\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/reports/advanced/subscriptions\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced/subscriptions\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"subscription_method\\\":\\\"<boolean>\\\",\\\"subscription_src\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/advanced/unsubscriptions": {
      "post": {
        "tags": [
          "Advanced Reports"
        ],
        "summary": "Generate unsubscriptions report",
        "description": "Generates a new unsubscriptions report",
        "operationId": "generateUnsubscriptionsReport",
        "requestBody": {
          "description": "Parameters for the unsubscriptions report",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "GenerateUnsubscriptionsReport",
                "description": "Generate unsubscriptions report schema",
                "required": [
                  "title",
                  "range",
                  "lists",
                  "columns",
                  "options"
                ],
                "properties": {
                  "title": {
                    "description": "Advanced report title",
                    "type": "string",
                    "example": "Report title"
                  },
                  "range": {
                    "title": "AdvancedReportRange",
                    "description": "Time range of the report",
                    "required": [
                      "start",
                      "end"
                    ],
                    "properties": {
                      "start": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      },
                      "end": {
                        "allOf": [
                          {
                            "title": "date_time",
                            "description": "The date and time",
                            "type": "string",
                            "format": "date-time",
                            "example": "YYYY-MM-DD hh:mm:ss"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "lists": {
                    "description": "Array of List Id's",
                    "type": "array",
                    "items": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    }
                  },
                  "columns": {
                    "title": "AdvancedReportUnsubscriptionsColumns",
                    "description": "Columns of the report",
                    "required": [
                      "list_base_fields",
                      "list_extra_fields",
                      "list_stats_fields"
                    ],
                    "properties": {
                      "list_base_fields": {
                        "description": "Array of base fields",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "list_extra_fields": {
                        "title": "AdvancedReportListExtraFields",
                        "required": [
                          "list_id",
                          "fields"
                        ],
                        "type": "array",
                        "items": {
                          "properties": {
                            "list_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "fields": {
                              "description": "Array of extra field IDs",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "type": "object"
                        }
                      },
                      "list_stats_fields": {
                        "title": "UnsubscriptionsListStatsFields",
                        "description": "List stats fields to include in the report",
                        "required": [
                          "unsubscription_method",
                          "unsubscription_src",
                          "unsubscription_date"
                        ],
                        "properties": {
                          "unsubscription_method": {
                            "description": "True to include unsubscription method, false otherwise",
                            "type": "boolean"
                          },
                          "unsubscription_src": {
                            "description": "True to include unsubscription source, false otherwise",
                            "type": "boolean"
                          },
                          "unsubscription_date": {
                            "description": "True to include unsubscription date, false otherwise",
                            "type": "boolean"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  "options": {
                    "title": "AdvancedReportUnsubscriptionsOptions",
                    "description": "Columns of the report",
                    "properties": {
                      "notify": {
                        "description": "Array of user IDs to notify",
                        "type": "array",
                        "items": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        }
                      }
                    },
                    "type": "object"
                  },
                  "callback_url": {
                    "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "callbacks": {
          "UnsubscriptionsReport": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "title": "ExportReportWebhookData",
                        "description": "Accepted response schema",
                        "properties": {
                          "file": {
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "type": "object"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/reports/advanced/unsubscriptions' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"lists\":[\"<integer>\",\"<integer>\"],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"unsubscription_method\":\"<boolean>\",\"unsubscription_src\":\"<boolean>\",\"unsubscription_date\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/advanced/unsubscriptions\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"unsubscription_method\\\":\\\"<boolean>\\\",\\\"unsubscription_src\\\":\\\"<boolean>\\\",\\\"unsubscription_date\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"unsubscription_method\\\":\\\"<boolean>\\\",\\\"unsubscription_src\\\":\\\"<boolean>\\\",\\\"unsubscription_date\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/advanced/unsubscriptions\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"title\":\"<string>\",\"range\":{\"start\":\"<dateTime>\",\"end\":\"<dateTime>\"},\"lists\":[\"<integer>\",\"<integer>\"],\"columns\":{\"list_base_fields\":[\"<string>\",\"<string>\"],\"list_extra_fields\":[{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]},{\"list_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}],\"list_stats_fields\":{\"unsubscription_method\":\"<boolean>\",\"unsubscription_src\":\"<boolean>\",\"unsubscription_date\":\"<boolean>\"}},\"options\":{\"notify\":[\"<integer>\",\"<integer>\"]},\"callback_url\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/reports/advanced/unsubscriptions\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/advanced/unsubscriptions\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"unsubscription_method\\\":\\\"<boolean>\\\",\\\"unsubscription_src\\\":\\\"<boolean>\\\",\\\"unsubscription_date\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"unsubscription_method\\\":\\\"<boolean>\\\",\\\"unsubscription_src\\\":\\\"<boolean>\\\",\\\"unsubscription_date\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/reports/advanced/unsubscriptions\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/advanced/unsubscriptions\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"title\\\":\\\"<string>\\\",\\\"range\\\":{\\\"start\\\":\\\"<dateTime>\\\",\\\"end\\\":\\\"<dateTime>\\\"},\\\"lists\\\":[\\\"<integer>\\\",\\\"<integer>\\\"],\\\"columns\\\":{\\\"list_base_fields\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"list_extra_fields\\\":[{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]},{\\\"list_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}],\\\"list_stats_fields\\\":{\\\"unsubscription_method\\\":\\\"<boolean>\\\",\\\"unsubscription_src\\\":\\\"<boolean>\\\",\\\"unsubscription_date\\\":\\\"<boolean>\\\"}},\\\"options\\\":{\\\"notify\\\":[\\\"<integer>\\\",\\\"<integer>\\\"]},\\\"callback_url\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/email/{campaign_hash}": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Get email report",
        "description": "Returns email report given the campaign hash",
        "operationId": "getEmailReport",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          },
          {
            "name": "date",
            "in": "query",
            "description": "True to show date stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "weekday",
            "in": "query",
            "description": "True to show weekday stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "hour",
            "in": "query",
            "description": "True to show hour stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "location",
            "in": "query",
            "description": "True to show location stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "domain",
            "in": "query",
            "description": "True to show Domain stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "url",
            "in": "query",
            "description": "True to show Url stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "reader",
            "in": "query",
            "description": "True to show Reader stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Email Report",
                  "description": "Email report schema",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "campaign_hash": {
                          "title": "Hash",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*",
                          "readOnly": true
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "Overall",
                      "description": "Overall stats schema",
                      "properties": {
                        "overall": {
                          "description": "Overall message information",
                          "properties": {
                            "sends": {
                              "description": "Total number of sent messages",
                              "type": "integer",
                              "minimum": 0,
                              "example": 3
                            },
                            "opens": {
                              "description": "Total number of open messages",
                              "type": "integer",
                              "minimum": 0,
                              "example": 3
                            },
                            "unique_opens": {
                              "description": "Total number of unique open messages",
                              "type": "integer",
                              "minimum": 0,
                              "example": 3
                            },
                            "clicks": {
                              "description": "Total number of clicks in message",
                              "type": "integer",
                              "minimum": 0,
                              "example": 3
                            },
                            "unique_clicks": {
                              "description": "Total number of unique clicks in message",
                              "type": "integer",
                              "minimum": 0,
                              "example": 3
                            },
                            "hard_bounces": {
                              "description": "Total number of hard bounces",
                              "type": "integer",
                              "minimum": 0,
                              "example": 3
                            },
                            "soft_bounces": {
                              "description": "Total number of soft bounces",
                              "type": "integer",
                              "minimum": 0,
                              "example": 3
                            },
                            "complaints": {
                              "description": "Total number of complaints",
                              "type": "integer",
                              "minimum": 0,
                              "example": 3
                            },
                            "unsubscriptions": {
                              "description": "Total number of unsubscriptions",
                              "type": "integer",
                              "minimum": 0,
                              "example": 3
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "By Date",
                      "description": "Email stats grouped by date",
                      "properties": {
                        "date": {
                          "description": "Email stats grouped by date",
                          "type": "array",
                          "items": {
                            "properties": {
                              "date": {
                                "description": "Date",
                                "type": "date",
                                "example": "01-01-1970"
                              },
                              "sends": {
                                "description": "Total number of sent messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "opens": {
                                "description": "Total number of open messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "clicks": {
                                "description": "Total number of clicks in message",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "hard_bounces": {
                                "description": "Total number of hard bounces",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "soft_bounces": {
                                "description": "Total number of soft bounces",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "complaints": {
                                "description": "Total number of complaints",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "unsubscriptions": {
                                "description": "Total number of unsubscriptions",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "By Weekday",
                      "description": "Email stats grouped by Weekday",
                      "properties": {
                        "weekday": {
                          "description": "Email stats grouped by date",
                          "type": "array",
                          "items": {
                            "properties": {
                              "weekday": {
                                "description": "Numeric representation of the day of the week (0 for sunday)",
                                "type": "string",
                                "example": "3"
                              },
                              "sends": {
                                "description": "Total number of sent messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "opens": {
                                "description": "Total number of open messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "clicks": {
                                "description": "Total number of clicks in message",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "hard_bounces": {
                                "description": "Total number of hard bounces",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "soft_bounces": {
                                "description": "Total number of soft bounces",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "complaints": {
                                "description": "Total number of complaints",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "unsubscriptions": {
                                "description": "Total number of unsubscriptions",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "By Hour",
                      "description": "Email stats grouped by Hour",
                      "properties": {
                        "hour": {
                          "description": "Email stats grouped by hour",
                          "type": "array",
                          "items": {
                            "properties": {
                              "hour": {
                                "description": "24-hour format of an hour with leading zeros",
                                "type": "string",
                                "example": "03"
                              },
                              "sends": {
                                "description": "Total number of sent messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "opens": {
                                "description": "Total number of open messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "clicks": {
                                "description": "Total number of clicks in message",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "hard_bounces": {
                                "description": "Total number of hard bounces",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "soft_bounces": {
                                "description": "Total number of soft bounces",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "complaints": {
                                "description": "Total number of complaints",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "unsubscriptions": {
                                "description": "Total number of unsubscriptions",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "By Location",
                      "description": "Email stats grouped by Location",
                      "properties": {
                        "location": {
                          "description": "Email stats grouped by Location",
                          "type": "array",
                          "items": {
                            "properties": {
                              "location": {
                                "description": "Location",
                                "type": "string",
                                "example": "Matosinhos"
                              },
                              "region": {
                                "description": "Region",
                                "type": "string",
                                "example": "Porto"
                              },
                              "country": {
                                "description": "Country",
                                "type": "string",
                                "example": "Portugal"
                              },
                              "opens": {
                                "description": "Total number of open messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "clicks": {
                                "description": "Total number of clicks in message",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "hard_bounces": {
                                "description": "Total number of hard bounces",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "soft_bounces": {
                                "description": "Total number of soft bounces",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "complaints": {
                                "description": "Total number of complaints",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "unsubscriptions": {
                                "description": "Total number of unsubscriptions",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "By Domain",
                      "description": "Email stats grouped by Domain",
                      "properties": {
                        "domain": {
                          "description": "Email stats grouped by Domain",
                          "type": "array",
                          "items": {
                            "properties": {
                              "domain": {
                                "description": "Domain",
                                "type": "string",
                                "example": "e-goi.com"
                              },
                              "sends": {
                                "description": "Total number of sent messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "opens": {
                                "description": "Total number of open messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "clicks": {
                                "description": "Total number of clicks in message",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "hard_bounces": {
                                "description": "Total number of hard bounces",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "soft_bounces": {
                                "description": "Total number of soft bounces",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "complaints": {
                                "description": "Total number of complaints",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              },
                              "unsubscriptions": {
                                "description": "Total number of unsubscriptions",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "By Url",
                      "description": "Email stats grouped by Url",
                      "properties": {
                        "url": {
                          "description": "Email stats grouped by Domain",
                          "type": "array",
                          "items": {
                            "properties": {
                              "url": {
                                "description": "Url",
                                "type": "string",
                                "example": "https://www.e-goi.com"
                              },
                              "clicks": {
                                "description": "Total number of clicks in the url",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "By Reader",
                      "description": "Email stats grouped by Reader",
                      "properties": {
                        "reader": {
                          "description": "Email stats grouped by Reader",
                          "type": "array",
                          "items": {
                            "properties": {
                              "reader": {
                                "description": "Reader",
                                "type": "string",
                                "example": "E-goi"
                              },
                              "type": {
                                "description": "Type",
                                "type": "string",
                                "example": "webmail"
                              },
                              "opens": {
                                "description": "Total number of open messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 3
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/reports/email/<string>?date=true&weekday=true&hour=true&location=true&domain=true&url=true&reader=true' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/email/<string>?date=true&weekday=true&hour=true&location=true&domain=true&url=true&reader=true\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/email/<string>?date=true&weekday=true&hour=true&location=true&domain=true&url=true&reader=true\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/reports/email/<string>?date=true&weekday=true&hour=true&location=true&domain=true&url=true&reader=true\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/email/<string>?date=true&weekday=true&hour=true&location=true&domain=true&url=true&reader=true\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/reports/email/<string>?date=true&weekday=true&hour=true&location=true&domain=true&url=true&reader=true\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/email/<string>?date=true&weekday=true&hour=true&location=true&domain=true&url=true&reader=true\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/push/{campaign_hash}": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Get push report",
        "description": "Returns a push report given the campaign hash",
        "operationId": "getPushReport",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          },
          {
            "name": "operating_systems",
            "in": "query",
            "description": "True to show operating system stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Push Report",
                  "description": "Push report schema",
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    },
                    "overall": {
                      "title": "PushStats",
                      "description": "Push report stats schema",
                      "properties": {
                        "sends": {
                          "description": "Total number of sent messages",
                          "type": "integer",
                          "minimum": 0,
                          "example": 1
                        },
                        "opens": {
                          "description": "Total number of opened messages",
                          "type": "integer",
                          "minimum": 0,
                          "example": 1
                        },
                        "delivered": {
                          "description": "Total number of delivered messages",
                          "type": "integer",
                          "minimum": 0,
                          "example": 1
                        },
                        "received": {
                          "description": "Total number of received messages",
                          "type": "integer",
                          "minimum": 0,
                          "example": 1
                        },
                        "bounces": {
                          "description": "Total number of bounces",
                          "type": "integer",
                          "minimum": 0,
                          "example": 0
                        },
                        "error": {
                          "description": "Total number of error messages",
                          "type": "integer",
                          "minimum": 0,
                          "example": 0
                        }
                      },
                      "type": "object"
                    },
                    "operating_systems": {
                      "description": "Stats of the campaign for each operating system",
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "properties": {
                              "operating_systems": {
                                "description": "Device type",
                                "type": "string",
                                "example": "desktop"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "PushStats",
                            "description": "Push report stats schema",
                            "properties": {
                              "sends": {
                                "description": "Total number of sent messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 1
                              },
                              "opens": {
                                "description": "Total number of opened messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 1
                              },
                              "delivered": {
                                "description": "Total number of delivered messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 1
                              },
                              "received": {
                                "description": "Total number of received messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 1
                              },
                              "bounces": {
                                "description": "Total number of bounces",
                                "type": "integer",
                                "minimum": 0,
                                "example": 0
                              },
                              "error": {
                                "description": "Total number of error messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 0
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/reports/push/<string>?operating_systems=true' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/push/<string>?operating_systems=true\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/push/<string>?operating_systems=true\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/reports/push/<string>?operating_systems=true\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/push/<string>?operating_systems=true\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/reports/push/<string>?operating_systems=true\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/push/<string>?operating_systems=true\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/smart-sms/{campaign_hash}": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Get Smart sms report",
        "description": "Returns smart sms report given the campaign hash",
        "operationId": "getSmartSMSReport",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          },
          {
            "name": "networks",
            "in": "query",
            "description": "True to show network stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "PhoneReport",
                  "description": "Phone report schema",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "campaign_hash": {
                          "title": "Hash",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*",
                          "readOnly": true
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "networks": {
                          "description": "Stats of the campaign for each network",
                          "type": "array",
                          "items": {
                            "properties": {
                              "network": {
                                "description": "Network name",
                                "type": "string",
                                "example": "Vodafone"
                              },
                              "sends": {
                                "description": "Total number of sent messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 1
                              },
                              "delivered": {
                                "description": "Total number of delivered messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 1
                              },
                              "error": {
                                "description": "Total number of failed messages",
                                "type": "integer",
                                "minimum": 0
                              },
                              "invalid": {
                                "description": "Total number of invalid messages",
                                "type": "integer",
                                "minimum": 0
                              },
                              "pending": {
                                "description": "Total number of pending messages",
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "Overall",
                      "description": "Overall stats schema",
                      "properties": {
                        "overall": {
                          "description": "Overall message information",
                          "properties": {
                            "destinations": {
                              "description": "Total number of destinations",
                              "type": "integer",
                              "minimum": 1,
                              "example": 3
                            },
                            "sends": {
                              "description": "Total number of sent messages",
                              "type": "integer",
                              "minimum": 1,
                              "example": 3
                            },
                            "delivered": {
                              "description": "Total number of delivered messages",
                              "type": "integer",
                              "minimum": 0,
                              "example": 3
                            },
                            "error": {
                              "description": "Total number of failed messages",
                              "type": "integer",
                              "minimum": 0
                            },
                            "invalid": {
                              "description": "Total number of invalid messages",
                              "type": "integer",
                              "minimum": 0
                            },
                            "pending": {
                              "description": "Total number of pending messages",
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/reports/smart-sms/<string>?networks=true' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/smart-sms/<string>?networks=true\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/smart-sms/<string>?networks=true\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/reports/smart-sms/<string>?networks=true\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/smart-sms/<string>?networks=true\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/reports/smart-sms/<string>?networks=true\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/smart-sms/<string>?networks=true\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/sms/{campaign_hash}": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Get sms report",
        "description": "Returns sms report given the campaign hash",
        "operationId": "getSMSReport",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          },
          {
            "name": "networks",
            "in": "query",
            "description": "True to show network stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "PhoneReport",
                  "description": "Phone report schema",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "campaign_hash": {
                          "title": "Hash",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*",
                          "readOnly": true
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "networks": {
                          "description": "Stats of the campaign for each network",
                          "type": "array",
                          "items": {
                            "properties": {
                              "network": {
                                "description": "Network name",
                                "type": "string",
                                "example": "Vodafone"
                              },
                              "sends": {
                                "description": "Total number of sent messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 1
                              },
                              "delivered": {
                                "description": "Total number of delivered messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 1
                              },
                              "error": {
                                "description": "Total number of failed messages",
                                "type": "integer",
                                "minimum": 0
                              },
                              "invalid": {
                                "description": "Total number of invalid messages",
                                "type": "integer",
                                "minimum": 0
                              },
                              "pending": {
                                "description": "Total number of pending messages",
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "Overall",
                      "description": "Overall stats schema",
                      "properties": {
                        "overall": {
                          "description": "Overall message information",
                          "properties": {
                            "destinations": {
                              "description": "Total number of destinations",
                              "type": "integer",
                              "minimum": 1,
                              "example": 3
                            },
                            "sends": {
                              "description": "Total number of sent messages",
                              "type": "integer",
                              "minimum": 1,
                              "example": 3
                            },
                            "delivered": {
                              "description": "Total number of delivered messages",
                              "type": "integer",
                              "minimum": 0,
                              "example": 3
                            },
                            "error": {
                              "description": "Total number of failed messages",
                              "type": "integer",
                              "minimum": 0
                            },
                            "invalid": {
                              "description": "Total number of invalid messages",
                              "type": "integer",
                              "minimum": 0
                            },
                            "pending": {
                              "description": "Total number of pending messages",
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/reports/sms/<string>?networks=true' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/sms/<string>?networks=true\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/sms/<string>?networks=true\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/reports/sms/<string>?networks=true\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/sms/<string>?networks=true\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/reports/sms/<string>?networks=true\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/sms/<string>?networks=true\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/voice/{campaign_hash}": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Get voice report",
        "description": "Returns voice report given the campaign hash",
        "operationId": "getVoiceReport",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          },
          {
            "name": "networks",
            "in": "query",
            "description": "True to show network stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "PhoneReport",
                  "description": "Phone report schema",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "campaign_hash": {
                          "title": "Hash",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*",
                          "readOnly": true
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "networks": {
                          "description": "Stats of the campaign for each network",
                          "type": "array",
                          "items": {
                            "properties": {
                              "network": {
                                "description": "Network name",
                                "type": "string",
                                "example": "Vodafone"
                              },
                              "sends": {
                                "description": "Total number of sent messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 1
                              },
                              "delivered": {
                                "description": "Total number of delivered messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 1
                              },
                              "error": {
                                "description": "Total number of failed messages",
                                "type": "integer",
                                "minimum": 0
                              },
                              "invalid": {
                                "description": "Total number of invalid messages",
                                "type": "integer",
                                "minimum": 0
                              },
                              "pending": {
                                "description": "Total number of pending messages",
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "type": "object"
                          }
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "Overall",
                      "description": "Overall stats schema",
                      "properties": {
                        "overall": {
                          "description": "Overall message information",
                          "properties": {
                            "destinations": {
                              "description": "Total number of destinations",
                              "type": "integer",
                              "minimum": 1,
                              "example": 3
                            },
                            "sends": {
                              "description": "Total number of sent messages",
                              "type": "integer",
                              "minimum": 1,
                              "example": 3
                            },
                            "delivered": {
                              "description": "Total number of delivered messages",
                              "type": "integer",
                              "minimum": 0,
                              "example": 3
                            },
                            "error": {
                              "description": "Total number of failed messages",
                              "type": "integer",
                              "minimum": 0
                            },
                            "invalid": {
                              "description": "Total number of invalid messages",
                              "type": "integer",
                              "minimum": 0
                            },
                            "pending": {
                              "description": "Total number of pending messages",
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/reports/voice/<string>?networks=true' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/voice/<string>?networks=true\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/voice/<string>?networks=true\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/reports/voice/<string>?networks=true\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/voice/<string>?networks=true\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/reports/voice/<string>?networks=true\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/voice/<string>?networks=true\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/reports/web-push/{campaign_hash}": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Get webpush report",
        "description": "Returns webpush report given the campaign hash",
        "operationId": "getWebPushReport",
        "parameters": [
          {
            "name": "campaign_hash",
            "in": "path",
            "description": "Hash of the Campaign",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          },
          {
            "name": "devices",
            "in": "query",
            "description": "True to show device stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "operating_systems",
            "in": "query",
            "description": "True to show operating systems stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "browsers",
            "in": "query",
            "description": "True to show browser stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "url",
            "in": "query",
            "description": "True to show url stats",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Webpush Report",
                  "description": "Webpush report schema",
                  "properties": {
                    "campaign_hash": {
                      "title": "Hash",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*",
                      "readOnly": true
                    },
                    "overall": {
                      "title": "WebPushStats",
                      "description": "Webpush report stats schema",
                      "properties": {
                        "opens": {
                          "description": "Total number of opened messages",
                          "type": "integer",
                          "minimum": 0
                        },
                        "sends": {
                          "description": "Total number of sent messages",
                          "type": "integer",
                          "minimum": 0,
                          "example": 1
                        },
                        "clicks": {
                          "description": "Total number of clicked messages",
                          "type": "integer",
                          "minimum": 0,
                          "example": 0
                        },
                        "bounces": {
                          "description": "Total number of bounces",
                          "type": "integer",
                          "minimum": 0,
                          "example": 0
                        }
                      },
                      "type": "object"
                    },
                    "devices": {
                      "description": "Stats of the campaign for each device",
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "properties": {
                              "device": {
                                "description": "Device type",
                                "type": "string",
                                "example": "desktop"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "WebPushStats",
                            "description": "Webpush report stats schema",
                            "properties": {
                              "opens": {
                                "description": "Total number of opened messages",
                                "type": "integer",
                                "minimum": 0
                              },
                              "sends": {
                                "description": "Total number of sent messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 1
                              },
                              "clicks": {
                                "description": "Total number of clicked messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 0
                              },
                              "bounces": {
                                "description": "Total number of bounces",
                                "type": "integer",
                                "minimum": 0,
                                "example": 0
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "operating_systems": {
                      "description": "Stats of the campaign for each operating system",
                      "type": "array",
                      "items": {
                        "properties": {
                          "operating_system": {
                            "description": "Operating system name",
                            "type": "string",
                            "example": "macos"
                          },
                          "versions": {
                            "description": "Collection of operating system versions",
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "properties": {
                                    "version": {
                                      "description": "Operating system version",
                                      "type": "string",
                                      "example": "10.126"
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "WebPushStats",
                                  "description": "Webpush report stats schema",
                                  "properties": {
                                    "opens": {
                                      "description": "Total number of opened messages",
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "sends": {
                                      "description": "Total number of sent messages",
                                      "type": "integer",
                                      "minimum": 0,
                                      "example": 1
                                    },
                                    "clicks": {
                                      "description": "Total number of clicked messages",
                                      "type": "integer",
                                      "minimum": 0,
                                      "example": 0
                                    },
                                    "bounces": {
                                      "description": "Total number of bounces",
                                      "type": "integer",
                                      "minimum": 0,
                                      "example": 0
                                    }
                                  },
                                  "type": "object"
                                }
                              ]
                            }
                          }
                        },
                        "type": "object"
                      }
                    },
                    "browsers": {
                      "description": "Stats of the campaign for each browser",
                      "type": "array",
                      "items": {
                        "properties": {
                          "browser": {
                            "description": "Browser name",
                            "type": "string",
                            "example": "Chrome"
                          },
                          "versions": {
                            "description": "Collection of browser versions",
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "properties": {
                                    "version": {
                                      "description": "Browser version",
                                      "type": "string",
                                      "example": "64.0328214"
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "WebPushStats",
                                  "description": "Webpush report stats schema",
                                  "properties": {
                                    "opens": {
                                      "description": "Total number of opened messages",
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "sends": {
                                      "description": "Total number of sent messages",
                                      "type": "integer",
                                      "minimum": 0,
                                      "example": 1
                                    },
                                    "clicks": {
                                      "description": "Total number of clicked messages",
                                      "type": "integer",
                                      "minimum": 0,
                                      "example": 0
                                    },
                                    "bounces": {
                                      "description": "Total number of bounces",
                                      "type": "integer",
                                      "minimum": 0,
                                      "example": 0
                                    }
                                  },
                                  "type": "object"
                                }
                              ]
                            }
                          }
                        },
                        "type": "object"
                      }
                    },
                    "url": {
                      "description": "Stats of the campaign for each url",
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "properties": {
                              "url": {
                                "description": "Url information",
                                "type": "string",
                                "example": "https://e-goi.com"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "WebPushStats",
                            "description": "Webpush report stats schema",
                            "properties": {
                              "opens": {
                                "description": "Total number of opened messages",
                                "type": "integer",
                                "minimum": 0
                              },
                              "sends": {
                                "description": "Total number of sent messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 1
                              },
                              "clicks": {
                                "description": "Total number of clicked messages",
                                "type": "integer",
                                "minimum": 0,
                                "example": 0
                              },
                              "bounces": {
                                "description": "Total number of bounces",
                                "type": "integer",
                                "minimum": 0,
                                "example": 0
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/reports/web-push/<string>?devices=true&operating_systems=true&browsers=true&url=true' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/reports/web-push/<string>?devices=true&operating_systems=true&browsers=true&url=true\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/reports/web-push/<string>?devices=true&operating_systems=true&browsers=true&url=true\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/reports/web-push/<string>?devices=true&operating_systems=true&browsers=true&url=true\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/reports/web-push/<string>?devices=true&operating_systems=true&browsers=true&url=true\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/reports/web-push/<string>?devices=true&operating_systems=true&browsers=true&url=true\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/reports/web-push/<string>?devices=true&operating_systems=true&browsers=true&url=true\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/segments": {
      "get": {
        "tags": [
          "Segments"
        ],
        "summary": "Get all segments",
        "description": "Returns all segments",
        "operationId": "getAllSegments",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Type of segment",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "auto",
                "saved",
                "tag"
              ]
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "Segment name",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "SegmentCollection",
                  "description": "Collection of segments",
                  "properties": {
                    "total_items": {
                      "description": "Total returned segments",
                      "type": "integer",
                      "example": 1
                    },
                    "items": {
                      "description": "Returned segments",
                      "type": "array",
                      "items": {
                        "title": "Segment",
                        "description": "Segment schema",
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "auto": "#/components/schemas/AutomaticSegment",
                            "saved": "#/components/schemas/SavedSegment",
                            "tag": "#/components/schemas/TagSegment"
                          }
                        },
                        "oneOf": [
                          {
                            "title": "AutomaticSegment",
                            "description": "Automatic segment schema",
                            "allOf": [
                              {
                                "properties": {
                                  "type": {
                                    "description": "Type of segment",
                                    "type": "string",
                                    "enum": [
                                      "auto"
                                    ],
                                    "readOnly": true
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "Abstract Segment",
                                "description": "Abstract segment schema",
                                "properties": {
                                  "segment_id": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Name of the segment",
                                    "type": "string"
                                  },
                                  "type": {
                                    "description": "Type of segment",
                                    "type": "string",
                                    "enum": [
                                      "auto",
                                      "saved",
                                      "tag"
                                    ],
                                    "readOnly": true
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          {
                            "description": "Saved segment schema",
                            "required": [
                              "name",
                              "match",
                              "rules"
                            ],
                            "properties": {
                              "name": {
                                "description": "Segment name",
                                "type": "string"
                              },
                              "match": {
                                "description": "Boolean operator for combining rules",
                                "type": "string",
                                "enum": [
                                  "all",
                                  "any"
                                ]
                              },
                              "invert": {
                                "description": "Invert the segment match",
                                "type": "boolean"
                              },
                              "rules": {
                                "description": "Array of segment rules",
                                "type": "array",
                                "items": {
                                  "oneOf": [
                                    {
                                      "title": "Single value operators",
                                      "description": "Rule with string value",
                                      "required": [
                                        "field_id",
                                        "operator",
                                        "value"
                                      ],
                                      "properties": {
                                        "field_id": {
                                          "description": "Field Id obtained from Get All Fields Method",
                                          "type": "string"
                                        },
                                        "operator": {
                                          "description": "Operator to apply to the field:\n *  - `eq`: Equal to\n *  - `ne`: Not equal to\n *  - `gt`: Greater than\n *  - `ge`: Greater than or equal to\n *  - `lt`: Less than\n *  - `le`: Less than or equal to\n *  - `ex`: Contains substring\n *  - `nx`: Does not contain substring\n *  - `he`: Starts with\n *  - `nhe`: Does not start with\n *  - `ew`: Ends with\n *  - `new`: Does not end with",
                                          "type": "string",
                                          "enum": [
                                            "eq",
                                            "ne",
                                            "gt",
                                            "ge",
                                            "lt",
                                            "le",
                                            "ex",
                                            "nx",
                                            "he",
                                            "nhe",
                                            "ew",
                                            "new"
                                          ]
                                        },
                                        "value": {
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "title": "Array operators",
                                      "description": "Rule with array value",
                                      "required": [
                                        "field_id",
                                        "operator",
                                        "value"
                                      ],
                                      "properties": {
                                        "field_id": {
                                          "description": "Field Id obtained from Get All Fields Method",
                                          "type": "string"
                                        },
                                        "operator": {
                                          "description": "Operator to apply to the field:\n *   - `bt`: Between (expects array of two values for date format fields)",
                                          "type": "string",
                                          "enum": [
                                            "bt"
                                          ]
                                        },
                                        "value": {
                                          "description": "Array of two values (Y-m-d) for 'between' operator",
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          },
                                          "maxItems": 2,
                                          "minItems": 2,
                                          "example": [
                                            "2024-01-01",
                                            "2024-12-31"
                                          ]
                                        }
                                      },
                                      "type": "object"
                                    }
                                  ]
                                }
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Tag Segment",
                            "description": "Tag segment schema",
                            "required": [
                              "segment_id"
                            ],
                            "type": "object",
                            "allOf": [
                              {
                                "properties": {
                                  "type": {
                                    "description": "Type of segment",
                                    "type": "string",
                                    "enum": [
                                      "tag"
                                    ],
                                    "readOnly": true
                                  },
                                  "created": {
                                    "readOnly": true,
                                    "allOf": [
                                      {
                                        "title": "date_time",
                                        "description": "The date and time",
                                        "type": "string",
                                        "format": "date-time",
                                        "example": "YYYY-MM-DD hh:mm:ss"
                                      }
                                    ]
                                  },
                                  "updated": {
                                    "readOnly": true,
                                    "allOf": [
                                      {
                                        "title": "date_time",
                                        "description": "The date and time",
                                        "type": "string",
                                        "format": "date-time",
                                        "example": "YYYY-MM-DD hh:mm:ss"
                                      }
                                    ]
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "Abstract Segment",
                                "description": "Abstract segment schema",
                                "properties": {
                                  "segment_id": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Name of the segment",
                                    "type": "string"
                                  },
                                  "type": {
                                    "description": "Type of segment",
                                    "type": "string",
                                    "enum": [
                                      "auto",
                                      "saved",
                                      "tag"
                                    ],
                                    "readOnly": true
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/lists/<integer>/segments?type=<string>&name=<string>&offset=<integer>&limit=10' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/segments?type=<string>&name=<string>&offset=<integer>&limit=10\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/segments?type=<string>&name=<string>&offset=<integer>&limit=10\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/lists/<integer>/segments?type=<string>&name=<string>&offset=<integer>&limit=10\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/segments?type=<string>&name=<string>&offset=<integer>&limit=10\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/lists/<integer>/segments?type=<string>&name=<string>&offset=<integer>&limit=10\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/segments?type=<string>&name=<string>&offset=<integer>&limit=10\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Segments"
        ],
        "summary": "Create new segment",
        "description": "Create a new segment for ´base´ and ´extra´ fields",
        "operationId": "createSegment",
        "parameters": [
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the segment",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "description": "Saved segment schema",
                "required": [
                  "name",
                  "match",
                  "rules"
                ],
                "properties": {
                  "name": {
                    "description": "Segment name",
                    "type": "string"
                  },
                  "match": {
                    "description": "Boolean operator for combining rules",
                    "type": "string",
                    "enum": [
                      "all",
                      "any"
                    ]
                  },
                  "invert": {
                    "description": "Invert the segment match",
                    "type": "boolean"
                  },
                  "rules": {
                    "description": "Array of segment rules",
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "title": "Single value operators",
                          "description": "Rule with string value",
                          "required": [
                            "field_id",
                            "operator",
                            "value"
                          ],
                          "properties": {
                            "field_id": {
                              "description": "Field Id obtained from Get All Fields Method",
                              "type": "string"
                            },
                            "operator": {
                              "description": "Operator to apply to the field:\n *  - `eq`: Equal to\n *  - `ne`: Not equal to\n *  - `gt`: Greater than\n *  - `ge`: Greater than or equal to\n *  - `lt`: Less than\n *  - `le`: Less than or equal to\n *  - `ex`: Contains substring\n *  - `nx`: Does not contain substring\n *  - `he`: Starts with\n *  - `nhe`: Does not start with\n *  - `ew`: Ends with\n *  - `new`: Does not end with",
                              "type": "string",
                              "enum": [
                                "eq",
                                "ne",
                                "gt",
                                "ge",
                                "lt",
                                "le",
                                "ex",
                                "nx",
                                "he",
                                "nhe",
                                "ew",
                                "new"
                              ]
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "Array operators",
                          "description": "Rule with array value",
                          "required": [
                            "field_id",
                            "operator",
                            "value"
                          ],
                          "properties": {
                            "field_id": {
                              "description": "Field Id obtained from Get All Fields Method",
                              "type": "string"
                            },
                            "operator": {
                              "description": "Operator to apply to the field:\n *   - `bt`: Between (expects array of two values for date format fields)",
                              "type": "string",
                              "enum": [
                                "bt"
                              ]
                            },
                            "value": {
                              "description": "Array of two values (Y-m-d) for 'between' operator",
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "maxItems": 2,
                              "minItems": 2,
                              "example": [
                                "2024-01-01",
                                "2024-12-31"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      ]
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "segment_id": {
                      "type": "string",
                      "example": "1"
                    },
                    "name": {
                      "type": "string",
                      "example": "Segment Name"
                    },
                    "type": {
                      "type": "string",
                      "example": "saved"
                    },
                    "created": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2019-01-01 00:00:00"
                    },
                    "updated": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2019-01-01 00:00:00"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/lists/<integer>/segments' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"name\":\"<string>\",\"match\":\"<string>\",\"rules\":[{\"field_id\":\"<string>\",\"operator\":\"<string>\",\"value\":\"<string>\"},{\"field_id\":\"<string>\",\"operator\":\"<string>\",\"value\":\"<string>\"}],\"invert\":\"<boolean>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/segments\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"<string>\\\",\\\"match\\\":\\\"<string>\\\",\\\"rules\\\":[{\\\"field_id\\\":\\\"<string>\\\",\\\"operator\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"field_id\\\":\\\"<string>\\\",\\\"operator\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"invert\\\":\\\"<boolean>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"name\\\":\\\"<string>\\\",\\\"match\\\":\\\"<string>\\\",\\\"rules\\\":[{\\\"field_id\\\":\\\"<string>\\\",\\\"operator\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"field_id\\\":\\\"<string>\\\",\\\"operator\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"invert\\\":\\\"<boolean>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/segments\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"name\":\"<string>\",\"match\":\"<string>\",\"rules\":[{\"field_id\":\"<string>\",\"operator\":\"<string>\",\"value\":\"<string>\"},{\"field_id\":\"<string>\",\"operator\":\"<string>\",\"value\":\"<string>\"}],\"invert\":\"<boolean>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/lists/<integer>/segments\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/segments\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"name\\\":\\\"<string>\\\",\\\"match\\\":\\\"<string>\\\",\\\"rules\\\":[{\\\"field_id\\\":\\\"<string>\\\",\\\"operator\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"field_id\\\":\\\"<string>\\\",\\\"operator\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"invert\\\":\\\"<boolean>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"name\\\":\\\"<string>\\\",\\\"match\\\":\\\"<string>\\\",\\\"rules\\\":[{\\\"field_id\\\":\\\"<string>\\\",\\\"operator\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"field_id\\\":\\\"<string>\\\",\\\"operator\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"invert\\\":\\\"<boolean>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/lists/<integer>/segments\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/segments\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"name\\\":\\\"<string>\\\",\\\"match\\\":\\\"<string>\\\",\\\"rules\\\":[{\\\"field_id\\\":\\\"<string>\\\",\\\"operator\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"},{\\\"field_id\\\":\\\"<string>\\\",\\\"operator\\\":\\\"<string>\\\",\\\"value\\\":\\\"<string>\\\"}],\\\"invert\\\":\\\"<boolean>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/lists/{list_id}/segments/{segment_id}": {
      "delete": {
        "tags": [
          "Segments"
        ],
        "summary": "Remove segment",
        "description": "Remove segment information given its ID",
        "operationId": "deleteSegment",
        "parameters": [
          {
            "name": "segment_id",
            "in": "path",
            "description": "ID of the Segment",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "list_id",
            "in": "path",
            "description": "ID of the List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "DeleteSegmentsConflict",
                  "description": "Error schema for delete segments conflicts",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ],
                  "oneOf": [
                    {
                      "title": "invalid_segment_type",
                      "description": "Error schema for conflict when the segment type is invalid",
                      "properties": {
                        "errors": {
                          "properties": {
                            "invalid_segment_type": {
                              "description": "Occurs when the segment type is invalid",
                              "type": "string",
                              "enum": [
                                "You can only delete segments of  type saved"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "used_in_automations",
                      "description": "Error schema for conflict when the segment is being used in automations",
                      "properties": {
                        "errors": {
                          "properties": {
                            "used_in_automations": {
                              "description": "Occurs when the segment is being used in automations",
                              "type": "string",
                              "enum": [
                                "Segment is being used in automations"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "used_in_recurring_messages",
                      "description": "Error schema for conflict when the segment is being used in recurring campaigns",
                      "properties": {
                        "errors": {
                          "properties": {
                            "used_in_recurring_messages": {
                              "description": "Occurs when the segment is being used in recurring campaigns",
                              "type": "string",
                              "enum": [
                                "Segment is being used in recurring campaigns"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "has_queued_campaigns",
                      "description": "Error schema for conflict when there are campaigns using the segment",
                      "properties": {
                        "errors": {
                          "properties": {
                            "has_queued_campaigns": {
                              "description": "Occurs when there are campaigns using the segment",
                              "type": "string",
                              "enum": [
                                "There are queued campaigns using this segment"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/lists/<integer>/segments/<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/lists/<integer>/segments/<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/lists/<integer>/segments/<string>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/lists/<integer>/segments/<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/lists/<integer>/segments/<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/lists/<integer>/segments/<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/lists/<integer>/segments/<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/senders/cellphone": {
      "get": {
        "tags": [
          "Senders"
        ],
        "summary": "Get all cellphone senders",
        "description": "Returns all cellphone senders",
        "operationId": "getAllCellphoneSenders",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Status filter",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "moderation",
                "rejected"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "CellphoneSenderCollection",
                  "description": "Collection of phone senders",
                  "properties": {
                    "items": {
                      "description": "Returned cellphone senders",
                      "type": "array",
                      "items": {
                        "title": "Cellphone Sender",
                        "description": "Cellphone sender schema",
                        "required": [
                          "type"
                        ],
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "alpha_numeric": "#/components/schemas/AlphanumericCellphoneSender",
                            "numeric": "#/components/schemas/NumericCellphoneSender"
                          }
                        },
                        "oneOf": [
                          {
                            "title": "AlphanumericCellphoneSender",
                            "description": "Alphanumeric cellphone sender schema",
                            "required": [
                              "type",
                              "cellphone",
                              "file"
                            ],
                            "type": "object",
                            "allOf": [
                              {
                                "properties": {
                                  "cellphone": {
                                    "description": "Sender cellphone name",
                                    "type": "string",
                                    "example": "Your company name"
                                  },
                                  "file": {
                                    "description": "Content of your sender file in base64",
                                    "type": "string",
                                    "format": "byte",
                                    "writeOnly": true
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "AbstractCellphoneSender",
                                "description": "Abstract cellphone sender schema",
                                "required": [
                                  "type"
                                ],
                                "type": "object",
                                "allOf": [
                                  {
                                    "properties": {
                                      "type": {
                                        "description": "Sender code type",
                                        "type": "string",
                                        "enum": [
                                          "alpha_numeric",
                                          "numeric"
                                        ]
                                      }
                                    },
                                    "type": "object"
                                  },
                                  {
                                    "title": "Basic Sender",
                                    "description": "Basic sender schema",
                                    "required": [
                                      "sender_id"
                                    ],
                                    "properties": {
                                      "sender_id": {
                                        "title": "ID",
                                        "type": "integer",
                                        "minimum": 1,
                                        "readOnly": true,
                                        "example": 1
                                      },
                                      "status": {
                                        "description": "Status of the sender",
                                        "type": "string",
                                        "enum": [
                                          "active",
                                          "moderation",
                                          "rejected"
                                        ],
                                        "readOnly": true,
                                        "example": "moderation"
                                      }
                                    },
                                    "type": "object"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "title": "NumericCellphoneSender",
                            "description": "Numeric cellphone sender schema",
                            "required": [
                              "type",
                              "cellphone"
                            ],
                            "type": "object",
                            "allOf": [
                              {
                                "properties": {
                                  "cellphone": {
                                    "description": "Sender cellphone (country code followed by phone number, split by '-')",
                                    "type": "string",
                                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                    "example": "351-300404336"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "AbstractCellphoneSender",
                                "description": "Abstract cellphone sender schema",
                                "required": [
                                  "type"
                                ],
                                "type": "object",
                                "allOf": [
                                  {
                                    "properties": {
                                      "type": {
                                        "description": "Sender code type",
                                        "type": "string",
                                        "enum": [
                                          "alpha_numeric",
                                          "numeric"
                                        ]
                                      }
                                    },
                                    "type": "object"
                                  },
                                  {
                                    "title": "Basic Sender",
                                    "description": "Basic sender schema",
                                    "required": [
                                      "sender_id"
                                    ],
                                    "properties": {
                                      "sender_id": {
                                        "title": "ID",
                                        "type": "integer",
                                        "minimum": 1,
                                        "readOnly": true,
                                        "example": 1
                                      },
                                      "status": {
                                        "description": "Status of the sender",
                                        "type": "string",
                                        "enum": [
                                          "active",
                                          "moderation",
                                          "rejected"
                                        ],
                                        "readOnly": true,
                                        "example": "moderation"
                                      }
                                    },
                                    "type": "object"
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/senders/cellphone?offset=<integer>&limit=10&status=<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/senders/cellphone?offset=<integer>&limit=10&status=<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/senders/cellphone?offset=<integer>&limit=10&status=<string>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/senders/cellphone?offset=<integer>&limit=10&status=<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/senders/cellphone?offset=<integer>&limit=10&status=<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/senders/cellphone?offset=<integer>&limit=10&status=<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/senders/cellphone?offset=<integer>&limit=10&status=<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Senders"
        ],
        "summary": "Create cellphone sender",
        "description": "Creates a cellphone sender",
        "operationId": "createCellphoneSender",
        "requestBody": {
          "description": "Parameters for the sender",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Cellphone Sender",
                "description": "Cellphone sender schema",
                "required": [
                  "type"
                ],
                "type": "object",
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "alpha_numeric": "#/components/schemas/AlphanumericCellphoneSenderPost",
                    "numeric": "#/components/schemas/NumericCellphoneSenderPost"
                  }
                },
                "oneOf": [
                  {
                    "title": "AlphanumericCellphoneSenderPost",
                    "description": "Alphanumeric cellphone sender schema",
                    "required": [
                      "type",
                      "cellphone",
                      "file"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "type": {
                            "description": "Sender code type",
                            "type": "string",
                            "enum": [
                              "alpha_numeric",
                              "numeric"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "cellphone": {
                            "description": "Sender cellphone name",
                            "type": "string",
                            "example": "Your company name"
                          },
                          "file": {
                            "description": "Content of your sender file in base64",
                            "type": "string",
                            "format": "byte",
                            "writeOnly": true
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "title": "NumericCellphoneSenderPost",
                    "description": "Numeric cellphone sender schema",
                    "required": [
                      "type",
                      "cellphone"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "type": {
                            "description": "Sender code type",
                            "type": "string",
                            "enum": [
                              "alpha_numeric",
                              "numeric"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "cellphone": {
                            "description": "Sender cellphone (country code followed by phone number, split by '-')",
                            "type": "string",
                            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                            "example": "351-300404336"
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Cellphone Sender",
                  "description": "Cellphone sender schema",
                  "required": [
                    "type"
                  ],
                  "type": "object",
                  "discriminator": {
                    "propertyName": "type",
                    "mapping": {
                      "alpha_numeric": "#/components/schemas/AlphanumericCellphoneSender",
                      "numeric": "#/components/schemas/NumericCellphoneSender"
                    }
                  },
                  "oneOf": [
                    {
                      "title": "AlphanumericCellphoneSender",
                      "description": "Alphanumeric cellphone sender schema",
                      "required": [
                        "type",
                        "cellphone",
                        "file"
                      ],
                      "type": "object",
                      "allOf": [
                        {
                          "properties": {
                            "cellphone": {
                              "description": "Sender cellphone name",
                              "type": "string",
                              "example": "Your company name"
                            },
                            "file": {
                              "description": "Content of your sender file in base64",
                              "type": "string",
                              "format": "byte",
                              "writeOnly": true
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "AbstractCellphoneSender",
                          "description": "Abstract cellphone sender schema",
                          "required": [
                            "type"
                          ],
                          "type": "object",
                          "allOf": [
                            {
                              "properties": {
                                "type": {
                                  "description": "Sender code type",
                                  "type": "string",
                                  "enum": [
                                    "alpha_numeric",
                                    "numeric"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "Basic Sender",
                              "description": "Basic sender schema",
                              "required": [
                                "sender_id"
                              ],
                              "properties": {
                                "sender_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "readOnly": true,
                                  "example": 1
                                },
                                "status": {
                                  "description": "Status of the sender",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "moderation",
                                    "rejected"
                                  ],
                                  "readOnly": true,
                                  "example": "moderation"
                                }
                              },
                              "type": "object"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "title": "NumericCellphoneSender",
                      "description": "Numeric cellphone sender schema",
                      "required": [
                        "type",
                        "cellphone"
                      ],
                      "type": "object",
                      "allOf": [
                        {
                          "properties": {
                            "cellphone": {
                              "description": "Sender cellphone (country code followed by phone number, split by '-')",
                              "type": "string",
                              "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                              "example": "351-300404336"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "AbstractCellphoneSender",
                          "description": "Abstract cellphone sender schema",
                          "required": [
                            "type"
                          ],
                          "type": "object",
                          "allOf": [
                            {
                              "properties": {
                                "type": {
                                  "description": "Sender code type",
                                  "type": "string",
                                  "enum": [
                                    "alpha_numeric",
                                    "numeric"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "Basic Sender",
                              "description": "Basic sender schema",
                              "required": [
                                "sender_id"
                              ],
                              "properties": {
                                "sender_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "readOnly": true,
                                  "example": 1
                                },
                                "status": {
                                  "description": "Status of the sender",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "moderation",
                                    "rejected"
                                  ],
                                  "readOnly": true,
                                  "example": "moderation"
                                }
                              },
                              "type": "object"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/senders/cellphone' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"type\":\"<string>\",\"cellphone\":\"<string>\",\"file\":\"<byte>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/senders/cellphone\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"type\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"file\\\":\\\"<byte>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"type\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"file\\\":\\\"<byte>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/senders/cellphone\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"type\":\"<string>\",\"cellphone\":\"<string>\",\"file\":\"<byte>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/senders/cellphone\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/senders/cellphone\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"type\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"file\\\":\\\"<byte>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"type\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"file\\\":\\\"<byte>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/senders/cellphone\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/senders/cellphone\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"type\\\":\\\"<string>\\\",\\\"cellphone\\\":\\\"<string>\\\",\\\"file\\\":\\\"<byte>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/senders/cellphone/{sender_id}": {
      "delete": {
        "tags": [
          "Senders"
        ],
        "summary": "Remove cellphone sender",
        "description": "Remove sender information given its ID",
        "operationId": "deleteCellphoneSender",
        "parameters": [
          {
            "name": "sender_id",
            "in": "path",
            "description": "ID of the Sender",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/senders/cellphone/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/senders/cellphone/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/senders/cellphone/<integer>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/senders/cellphone/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/senders/cellphone/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/senders/cellphone/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/senders/cellphone/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/senders/email": {
      "get": {
        "tags": [
          "Senders"
        ],
        "summary": "Get all email senders",
        "description": "Returns all email senders",
        "operationId": "getAllEmailSenders",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Status filter",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "moderation",
                "rejected"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "EmailSenderCollection",
                  "description": "Collection of email senders",
                  "properties": {
                    "items": {
                      "description": "Returned email senders",
                      "type": "array",
                      "items": {
                        "title": "Email Sender",
                        "description": "Email sender schema",
                        "required": [
                          "name",
                          "email"
                        ],
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "name": {
                                "description": "Sender name",
                                "type": "string",
                                "example": "E-goi"
                              },
                              "email": {
                                "description": "Sender email",
                                "type": "string",
                                "example": "example@e-goi.com"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Basic Sender",
                            "description": "Basic sender schema",
                            "required": [
                              "sender_id"
                            ],
                            "properties": {
                              "sender_id": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "readOnly": true,
                                "example": 1
                              },
                              "status": {
                                "description": "Status of the sender",
                                "type": "string",
                                "enum": [
                                  "active",
                                  "moderation",
                                  "rejected"
                                ],
                                "readOnly": true,
                                "example": "moderation"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/senders/email?offset=<integer>&limit=10&status=<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/senders/email?offset=<integer>&limit=10&status=<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/senders/email?offset=<integer>&limit=10&status=<string>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/senders/email?offset=<integer>&limit=10&status=<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/senders/email?offset=<integer>&limit=10&status=<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/senders/email?offset=<integer>&limit=10&status=<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/senders/email?offset=<integer>&limit=10&status=<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Senders"
        ],
        "summary": "Create email sender",
        "description": "Creates an email sender",
        "operationId": "createEmailSender",
        "requestBody": {
          "description": "Parameters for the sender",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Email Sender",
                "description": "Email sender schema",
                "required": [
                  "name",
                  "email"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "name": {
                        "description": "Sender name",
                        "type": "string",
                        "example": "E-goi"
                      },
                      "email": {
                        "description": "Sender email",
                        "type": "string",
                        "example": "example@e-goi.com"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Email Sender",
                  "description": "Email sender schema",
                  "required": [
                    "name",
                    "email"
                  ],
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "name": {
                          "description": "Sender name",
                          "type": "string",
                          "example": "E-goi"
                        },
                        "email": {
                          "description": "Sender email",
                          "type": "string",
                          "example": "example@e-goi.com"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "Basic Sender",
                      "description": "Basic sender schema",
                      "required": [
                        "sender_id"
                      ],
                      "properties": {
                        "sender_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "readOnly": true,
                          "example": 1
                        },
                        "status": {
                          "description": "Status of the sender",
                          "type": "string",
                          "enum": [
                            "active",
                            "moderation",
                            "rejected"
                          ],
                          "readOnly": true,
                          "example": "moderation"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/senders/email' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"name\":\"<string>\",\"email\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/senders/email\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"<string>\\\",\\\"email\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"name\\\":\\\"<string>\\\",\\\"email\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/senders/email\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"name\":\"<string>\",\"email\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/senders/email\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/senders/email\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"name\\\":\\\"<string>\\\",\\\"email\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"name\\\":\\\"<string>\\\",\\\"email\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/senders/email\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/senders/email\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"name\\\":\\\"<string>\\\",\\\"email\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/senders/email/{sender_id}": {
      "put": {
        "tags": [
          "Senders"
        ],
        "summary": "Update email sender",
        "description": "Updates an email sender",
        "operationId": "putEmailSender",
        "parameters": [
          {
            "name": "sender_id",
            "in": "path",
            "description": "ID of the Sender",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the contact",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "EmailSenderPutRequest",
                "description": "Email sender put request schema",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "description": "Sender name",
                    "type": "string",
                    "example": "New sender name"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Email Sender",
                  "description": "Email sender schema",
                  "required": [
                    "name",
                    "email"
                  ],
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "name": {
                          "description": "Sender name",
                          "type": "string",
                          "example": "E-goi"
                        },
                        "email": {
                          "description": "Sender email",
                          "type": "string",
                          "example": "example@e-goi.com"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "Basic Sender",
                      "description": "Basic sender schema",
                      "required": [
                        "sender_id"
                      ],
                      "properties": {
                        "sender_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "readOnly": true,
                          "example": 1
                        },
                        "status": {
                          "description": "Status of the sender",
                          "type": "string",
                          "enum": [
                            "active",
                            "moderation",
                            "rejected"
                          ],
                          "readOnly": true,
                          "example": "moderation"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PUT 'api.egoiapp.com/senders/email/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"name\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/senders/email/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"name\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/senders/email/<integer>\")\n    .method(\"PUT\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"name\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PUT\", \"api.egoiapp.com/senders/email/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/senders/email/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PUT\",\n    CURLOPT_POSTFIELDS =>\"{\\\"name\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"name\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PUT\", \"/senders/email/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/senders/email/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Put.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"name\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "delete": {
        "tags": [
          "Senders"
        ],
        "summary": "Remove email sender",
        "description": "Remove sender information given its ID",
        "operationId": "deleteEmailSender",
        "parameters": [
          {
            "name": "sender_id",
            "in": "path",
            "description": "ID of the Sender",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/senders/email/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/senders/email/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/senders/email/<integer>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/senders/email/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/senders/email/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/senders/email/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/senders/email/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/senders/phone": {
      "get": {
        "tags": [
          "Senders"
        ],
        "summary": "Get all phone senders",
        "description": "Returns all phone senders",
        "operationId": "getAllPhoneSenders",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Status filter",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "moderation",
                "rejected"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "PhoneSenderCollection",
                  "description": "Collection of phone senders",
                  "properties": {
                    "items": {
                      "description": "Returned phone senders",
                      "type": "array",
                      "items": {
                        "title": "Phone Sender",
                        "description": "Phone sender schema",
                        "required": [
                          "phone",
                          "file"
                        ],
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "phone": {
                                "description": "Sender value (country code followed by phone number, split by '-')",
                                "type": "string",
                                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                "example": "351-300404336"
                              },
                              "file": {
                                "description": "Content of your sender file in base64",
                                "type": "string",
                                "format": "byte",
                                "writeOnly": true
                              }
                            },
                            "type": "object"
                          },
                          {
                            "title": "Basic Sender",
                            "description": "Basic sender schema",
                            "required": [
                              "sender_id"
                            ],
                            "properties": {
                              "sender_id": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "readOnly": true,
                                "example": 1
                              },
                              "status": {
                                "description": "Status of the sender",
                                "type": "string",
                                "enum": [
                                  "active",
                                  "moderation",
                                  "rejected"
                                ],
                                "readOnly": true,
                                "example": "moderation"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/senders/phone?offset=<integer>&limit=10&status=<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/senders/phone?offset=<integer>&limit=10&status=<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/senders/phone?offset=<integer>&limit=10&status=<string>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/senders/phone?offset=<integer>&limit=10&status=<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/senders/phone?offset=<integer>&limit=10&status=<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/senders/phone?offset=<integer>&limit=10&status=<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/senders/phone?offset=<integer>&limit=10&status=<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Senders"
        ],
        "summary": "Create phone sender",
        "description": "Creates a phone sender",
        "operationId": "createPhoneSender",
        "requestBody": {
          "description": "Parameters for the sender",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Phone Sender",
                "description": "Phone sender schema",
                "required": [
                  "phone",
                  "file"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "phone": {
                        "description": "Sender value (country code followed by phone number, split by '-')",
                        "type": "string",
                        "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                        "example": "351-300404336"
                      },
                      "file": {
                        "description": "Content of your sender file in base64",
                        "type": "string",
                        "format": "byte",
                        "writeOnly": true
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Phone Sender",
                  "description": "Phone sender schema",
                  "required": [
                    "phone",
                    "file"
                  ],
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "phone": {
                          "description": "Sender value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "file": {
                          "description": "Content of your sender file in base64",
                          "type": "string",
                          "format": "byte",
                          "writeOnly": true
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "Basic Sender",
                      "description": "Basic sender schema",
                      "required": [
                        "sender_id"
                      ],
                      "properties": {
                        "sender_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "readOnly": true,
                          "example": 1
                        },
                        "status": {
                          "description": "Status of the sender",
                          "type": "string",
                          "enum": [
                            "active",
                            "moderation",
                            "rejected"
                          ],
                          "readOnly": true,
                          "example": "moderation"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/senders/phone' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"phone\":\"<string>\",\"file\":\"<byte>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/senders/phone\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"phone\\\":\\\"<string>\\\",\\\"file\\\":\\\"<byte>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"phone\\\":\\\"<string>\\\",\\\"file\\\":\\\"<byte>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/senders/phone\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"phone\":\"<string>\",\"file\":\"<byte>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/senders/phone\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/senders/phone\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"phone\\\":\\\"<string>\\\",\\\"file\\\":\\\"<byte>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"phone\\\":\\\"<string>\\\",\\\"file\\\":\\\"<byte>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/senders/phone\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/senders/phone\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"phone\\\":\\\"<string>\\\",\\\"file\\\":\\\"<byte>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/senders/phone/{sender_id}": {
      "delete": {
        "tags": [
          "Senders"
        ],
        "summary": "Remove phone sender",
        "description": "Remove sender information given its ID",
        "operationId": "deletePhoneSender",
        "parameters": [
          {
            "name": "sender_id",
            "in": "path",
            "description": "ID of the Sender",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/senders/phone/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/senders/phone/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/senders/phone/<integer>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/senders/phone/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/senders/phone/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/senders/phone/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/senders/phone/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/suppression-list": {
      "get": {
        "tags": [
          "Suppression List"
        ],
        "summary": "Get the suppression list",
        "description": "Returns the suppression list",
        "operationId": "getAllSuppressionList",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "Suppression type",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "email_domain",
                "email_user",
                "cellphone",
                "phone"
              ]
            }
          },
          {
            "name": "method",
            "in": "query",
            "description": "Suppression method",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "unsubscribe",
                "bounce",
                "manual",
                "other",
                "forgotten"
              ]
            }
          },
          {
            "name": "value",
            "in": "query",
            "description": "Reference attribute to value suppression list",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "campaign_hash",
            "in": "query",
            "description": "Reference attribute to campaign id",
            "required": false,
            "schema": {
              "title": "Hash",
              "type": "string",
              "pattern": "[a-zA-Z0-9_-]*",
              "readOnly": true
            }
          },
          {
            "name": "created_min",
            "in": "query",
            "description": "Created initial date",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "created_max",
            "in": "query",
            "description": "Created finish",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "Type of order",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "order_by",
            "in": "query",
            "description": "Reference attribute to order the suppression list",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "id",
              "enum": [
                "id",
                "value",
                "created"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "SuppressionListItems",
                  "description": "Suppression list items",
                  "properties": {
                    "total_items": {
                      "description": "Total of suppressed items",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned suppression list",
                      "type": "array",
                      "items": {
                        "title": "SuppressionList",
                        "description": "Suppression list schema",
                        "properties": {
                          "id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "value": {
                            "description": "Suppressed value",
                            "type": "string"
                          },
                          "type": {
                            "description": "Suppression type",
                            "type": "string",
                            "enum": [
                              "email",
                              "email_domain",
                              "email_user",
                              "cellphone",
                              "phone"
                            ]
                          },
                          "method": {
                            "description": "Suppression method",
                            "type": "string",
                            "enum": [
                              "unsubscribe",
                              "bounce",
                              "manual",
                              "other",
                              "forgotten"
                            ]
                          },
                          "campaign_hash": {
                            "title": "Hash",
                            "type": "string",
                            "pattern": "[a-zA-Z0-9_-]*",
                            "readOnly": true
                          },
                          "created": {
                            "readOnly": true,
                            "allOf": [
                              {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              }
                            ]
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/suppression-list?type=<string>&method=<string>&value=<string>&campaign_hash=<string>&created_min=<dateTime>&created_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=id' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/suppression-list?type=<string>&method=<string>&value=<string>&campaign_hash=<string>&created_min=<dateTime>&created_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=id\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/suppression-list?type=<string>&method=<string>&value=<string>&campaign_hash=<string>&created_min=<dateTime>&created_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=id\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/suppression-list?type=<string>&method=<string>&value=<string>&campaign_hash=<string>&created_min=<dateTime>&created_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=id\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/suppression-list?type=<string>&method=<string>&value=<string>&campaign_hash=<string>&created_min=<dateTime>&created_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=id\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/suppression-list?type=<string>&method=<string>&value=<string>&campaign_hash=<string>&created_min=<dateTime>&created_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=id\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/suppression-list?type=<string>&method=<string>&value=<string>&campaign_hash=<string>&created_min=<dateTime>&created_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=id\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Suppression List"
        ],
        "summary": "Add to suppression list",
        "description": "Adds a collection of values to the suppression list",
        "operationId": "createSuppressionList",
        "requestBody": {
          "description": "Parameters for the request",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Suppression list",
                "description": "Suppression list schema",
                "required": [
                  "type"
                ],
                "type": "object",
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "email": "#/components/schemas/SuppressionTypeEmail",
                    "email_domain": "#/components/schemas/SuppressionTypeEmailDomain",
                    "email_user": "#/components/schemas/SuppressionTypeUserEmail",
                    "cellphone": "#/components/schemas/SuppressionTypeCellphone",
                    "phone": "#/components/schemas/SuppressionTypePhone"
                  }
                },
                "oneOf": [
                  {
                    "title": "Suppression type email schema",
                    "description": "Suppression type email schema",
                    "required": [
                      "type",
                      "value"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "type": {
                            "description": "Suppression type",
                            "type": "string",
                            "enum": [
                              "email",
                              "email_domain",
                              "email_user",
                              "cellphone",
                              "phone"
                            ],
                            "example": "email"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "value": {
                            "description": "Array of email values to add to the suppression list",
                            "type": "array",
                            "items": {
                              "type": "string",
                              "example": "example@e-goi.com"
                            },
                            "maxItems": 3000
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "title": "Suppression type email domain schema",
                    "description": "Suppression type email domain chema",
                    "required": [
                      "type",
                      "value"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "type": {
                            "description": "Suppression type",
                            "type": "string",
                            "enum": [
                              "email",
                              "email_domain",
                              "email_user",
                              "cellphone",
                              "phone"
                            ],
                            "example": "email_domain"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "value": {
                            "description": "Array of email domain values to add to the suppression list",
                            "type": "array",
                            "items": {
                              "type": "string",
                              "example": "e-goi.com"
                            },
                            "maxItems": 3000
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "title": "Suppression type email user schema",
                    "description": "Suppression type email user chema",
                    "required": [
                      "type",
                      "value"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "type": {
                            "description": "Suppression type",
                            "type": "string",
                            "enum": [
                              "email",
                              "email_domain",
                              "email_user",
                              "cellphone",
                              "phone"
                            ],
                            "example": "email_user"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "value": {
                            "description": "Array of email user values to add to the suppression list",
                            "type": "array",
                            "items": {
                              "type": "string",
                              "example": "example"
                            },
                            "maxItems": 3000
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "title": "Suppression type Cellphone schema",
                    "description": "Suppression type Cellphone chema",
                    "required": [
                      "type",
                      "value"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "type": {
                            "description": "Suppression type",
                            "type": "string",
                            "enum": [
                              "email",
                              "email_domain",
                              "email_user",
                              "cellphone",
                              "phone"
                            ],
                            "example": "cellphone"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "value": {
                            "description": "Array of cellphone values to add to the suppression list (country code followed by phone number, split by '-')",
                            "type": "array",
                            "items": {
                              "type": "string",
                              "example": "351-3010404336"
                            },
                            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                            "maxItems": 3000
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "title": "Suppression type Phone schema",
                    "description": "Suppression type Phone chema",
                    "required": [
                      "type",
                      "value"
                    ],
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "type": {
                            "description": "Suppression type",
                            "type": "string",
                            "enum": [
                              "email",
                              "email_domain",
                              "email_user",
                              "cellphone",
                              "phone"
                            ],
                            "example": "phone"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "value": {
                            "description": "Array of phone values to add to the suppression list (country code followed by phone number, split by '-')",
                            "type": "array",
                            "items": {
                              "type": "string",
                              "example": "351-3010404336"
                            },
                            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                            "maxItems": 3000
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AcceptedResponse",
                  "description": "Accepted response schema",
                  "properties": {
                    "result": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/suppression-list' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"type\":\"<string>\",\"value\":[\"<string>\",\"<string>\"]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/suppression-list\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"type\\\":\\\"<string>\\\",\\\"value\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"type\\\":\\\"<string>\\\",\\\"value\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/suppression-list\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"type\":\"<string>\",\"value\":[\"<string>\",\"<string>\"]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/suppression-list\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/suppression-list\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"type\\\":\\\"<string>\\\",\\\"value\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"type\\\":\\\"<string>\\\",\\\"value\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/suppression-list\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/suppression-list\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"type\\\":\\\"<string>\\\",\\\"value\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/suppression-list/{suppression_id}": {
      "delete": {
        "tags": [
          "Suppression List"
        ],
        "summary": "Delete from suppression list",
        "description": "Deletes a suppression list value given its ID if it's creation method was ´manual´",
        "operationId": "deleteSuppressionList",
        "parameters": [
          {
            "name": "suppression_id",
            "in": "path",
            "description": "ID of Suppression List",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "DeleteSuppressionListConflictsErrors",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "unremovable_entry",
                      "description": "Error schema for conflict when the suppression value requested for deletion has other method than manual",
                      "properties": {
                        "errors": {
                          "properties": {
                            "unremovable_entry": {
                              "description": "Occurs when the entry you want to delete was created by a unremovable method",
                              "type": "string",
                              "enum": [
                                "Unremovable Entry"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/suppression-list/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/suppression-list/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/suppression-list/<integer>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/suppression-list/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/suppression-list/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/suppression-list/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/suppression-list/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/tags": {
      "get": {
        "tags": [
          "Tags"
        ],
        "summary": "Get all tags",
        "description": "Returns all tags",
        "operationId": "getAllTags",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "Type of order",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "order_by",
            "in": "query",
            "description": "Reference attribute to order tags",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "tag_id",
              "enum": [
                "tag_id",
                "name",
                "color"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "TagCollection",
                  "description": "Collection of tags",
                  "properties": {
                    "total_items": {
                      "description": "Returned tags",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned tags",
                      "type": "array",
                      "items": {
                        "title": "Tag",
                        "description": "Tag schema",
                        "properties": {
                          "tag_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "name": {
                            "description": "Name of the tag",
                            "type": "string",
                            "example": "Your custom tag"
                          },
                          "color": {
                            "description": "Main color of the tag",
                            "type": "string",
                            "example": "#FFFFFF"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/tags?offset=<integer>&limit=10&order=desc&order_by=tag_id' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/tags?offset=<integer>&limit=10&order=desc&order_by=tag_id\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/tags?offset=<integer>&limit=10&order=desc&order_by=tag_id\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/tags?offset=<integer>&limit=10&order=desc&order_by=tag_id\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/tags?offset=<integer>&limit=10&order=desc&order_by=tag_id\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/tags?offset=<integer>&limit=10&order=desc&order_by=tag_id\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/tags?offset=<integer>&limit=10&order=desc&order_by=tag_id\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Tags"
        ],
        "summary": "Create new tag",
        "description": "Create a new tag",
        "operationId": "createTag",
        "requestBody": {
          "description": "Parameters for the Tag",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Tag",
                "description": "Tag schema request",
                "properties": {
                  "name": {
                    "description": "Name of the tag",
                    "type": "string",
                    "example": "Your custom tag"
                  },
                  "color": {
                    "description": "Main color of the tag",
                    "type": "string",
                    "example": "#FFFFFF"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Tag",
                  "description": "Tag schema",
                  "properties": {
                    "tag_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "name": {
                      "description": "Name of the tag",
                      "type": "string",
                      "example": "Your custom tag"
                    },
                    "color": {
                      "description": "Main color of the tag",
                      "type": "string",
                      "example": "#FFFFFF"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/tags' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"name\":\"<string>\",\"color\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/tags\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"<string>\\\",\\\"color\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"name\\\":\\\"<string>\\\",\\\"color\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/tags\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"name\":\"<string>\",\"color\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/tags\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/tags\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"name\\\":\\\"<string>\\\",\\\"color\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"name\\\":\\\"<string>\\\",\\\"color\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/tags\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/tags\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"name\\\":\\\"<string>\\\",\\\"color\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/tags/{tag_id}": {
      "put": {
        "tags": [
          "Tags"
        ],
        "summary": "Update a specific tag",
        "description": "Update a tag",
        "operationId": "updateTag",
        "parameters": [
          {
            "name": "tag_id",
            "in": "path",
            "description": "ID of the Tag",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "readOnly": true,
              "example": 1
            }
          }
        ],
        "requestBody": {
          "description": "Parameters for the tag",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Tag",
                "description": "Tag schema request",
                "properties": {
                  "name": {
                    "description": "Name of the tag",
                    "type": "string",
                    "example": "Your custom tag"
                  },
                  "color": {
                    "description": "Main color of the tag",
                    "type": "string",
                    "example": "#FFFFFF"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Tag",
                  "description": "Tag schema",
                  "properties": {
                    "tag_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "name": {
                      "description": "Name of the tag",
                      "type": "string",
                      "example": "Your custom tag"
                    },
                    "color": {
                      "description": "Main color of the tag",
                      "type": "string",
                      "example": "#FFFFFF"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request PUT 'api.egoiapp.com/tags/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"name\":\"<string>\",\"color\":\"<string>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/tags/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"name\\\":\\\"<string>\\\",\\\"color\\\":\\\"<string>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"name\\\":\\\"<string>\\\",\\\"color\\\":\\\"<string>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/tags/<integer>\")\n    .method(\"PUT\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"name\":\"<string>\",\"color\":\"<string>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"PUT\", \"api.egoiapp.com/tags/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/tags/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"PUT\",\n    CURLOPT_POSTFIELDS =>\"{\\\"name\\\":\\\"<string>\\\",\\\"color\\\":\\\"<string>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"name\\\":\\\"<string>\\\",\\\"color\\\":\\\"<string>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"PUT\", \"/tags/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/tags/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Put.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"name\\\":\\\"<string>\\\",\\\"color\\\":\\\"<string>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "delete": {
        "tags": [
          "Tags"
        ],
        "summary": "Remove tag",
        "description": "Remove tag information given its ID",
        "operationId": "deleteTag",
        "parameters": [
          {
            "name": "tag_id",
            "in": "path",
            "description": "ID of the Tag",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "readOnly": true,
              "example": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/tags/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/tags/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/tags/<integer>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/tags/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/tags/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/tags/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/tags/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/email/templates": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "Get all email templates",
        "description": "Returns all email templates",
        "operationId": "getAllEmailTemplates",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "show_html",
            "in": "query",
            "description": "Show html code in the response",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "EmailTemplatesCollection",
                  "description": "Collection of email templates",
                  "properties": {
                    "total_items": {
                      "description": "Returned email templates total size",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned email templates",
                      "type": "array",
                      "items": {
                        "title": "Template",
                        "description": "Template schema",
                        "properties": {
                          "template_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "internal_name": {
                            "description": "Name of the template",
                            "type": "string",
                            "example": "Your template internal name"
                          },
                          "list_id": {
                            "description": "List ID",
                            "type": "integer",
                            "example": 1
                          },
                          "campaign_hash": {
                            "description": "Campaign Hash",
                            "type": "string",
                            "example": "123456789abcdef"
                          },
                          "html_message": {
                            "description": "Template HTML message",
                            "type": "string",
                            "example": "<!DOCTYPE html><html><head><title>Your Template</title></head><body><h1>Example</h1></body></html>"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/email/templates?offset=<integer>&limit=10&show_html=true' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/email/templates?offset=<integer>&limit=10&show_html=true\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/email/templates?offset=<integer>&limit=10&show_html=true\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/email/templates?offset=<integer>&limit=10&show_html=true\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/email/templates?offset=<integer>&limit=10&show_html=true\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/email/templates?offset=<integer>&limit=10&show_html=true\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/email/templates?offset=<integer>&limit=10&show_html=true\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/push/templates": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "Get all Push templates",
        "description": "Returns all Push templates",
        "operationId": "getAllPushTemplates",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "PushTemplatesCollection",
                  "description": "Collection of Push templates",
                  "properties": {
                    "total_items": {
                      "description": "Returned Push templates total size",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned Push templates",
                      "type": "array",
                      "items": {
                        "title": "Template Push",
                        "description": "Template push schema",
                        "properties": {
                          "template_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "internal_name": {
                            "description": "Name of the template",
                            "type": "string",
                            "example": "Your template internal name"
                          },
                          "list_id": {
                            "description": "List ID",
                            "type": "integer",
                            "example": 1
                          },
                          "campaign_hash": {
                            "description": "Campaign Hash",
                            "type": "string",
                            "example": "123456789abcdef"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/push/templates?offset=<integer>&limit=10' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/push/templates?offset=<integer>&limit=10\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/push/templates?offset=<integer>&limit=10\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/push/templates?offset=<integer>&limit=10\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/push/templates?offset=<integer>&limit=10\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/push/templates?offset=<integer>&limit=10\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/push/templates?offset=<integer>&limit=10\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/smartsms/templates": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "Get all smart sms templates",
        "description": "Returns all smart sms templates",
        "operationId": "getAllSmartSmsTemplates",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "SmartSmsTemplatesCollection",
                  "description": "Collection of smart sms templates",
                  "properties": {
                    "total_items": {
                      "description": "Returned smart sms templates total size",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned smart sms templates",
                      "type": "array",
                      "items": {
                        "title": "Template Smart Sms",
                        "description": "Template smart sms schema",
                        "properties": {
                          "template_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "internal_name": {
                            "description": "Name of the template",
                            "type": "string",
                            "example": "Your template internal name"
                          },
                          "list_id": {
                            "description": "List ID",
                            "type": "integer",
                            "example": 1
                          },
                          "campaign_hash": {
                            "description": "Campaign Hash",
                            "type": "string",
                            "example": "123456789abcdef"
                          },
                          "text_message": {
                            "description": "Template message",
                            "type": "string",
                            "example": "Example sms message"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/smartsms/templates?offset=<integer>&limit=10' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/smartsms/templates?offset=<integer>&limit=10\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/smartsms/templates?offset=<integer>&limit=10\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/smartsms/templates?offset=<integer>&limit=10\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/smartsms/templates?offset=<integer>&limit=10\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/smartsms/templates?offset=<integer>&limit=10\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/smartsms/templates?offset=<integer>&limit=10\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/sms/templates": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "Get all sms templates",
        "description": "Returns all sms templates",
        "operationId": "getAllSmsTemplates",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "SmsTemplatesCollection",
                  "description": "Collection of sms templates",
                  "properties": {
                    "total_items": {
                      "description": "Returned sms templates total size",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned sms templates",
                      "type": "array",
                      "items": {
                        "title": "Template Sms",
                        "description": "Template sms schema",
                        "properties": {
                          "template_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "internal_name": {
                            "description": "Name of the template",
                            "type": "string",
                            "example": "Your template internal name"
                          },
                          "list_id": {
                            "description": "List ID",
                            "type": "integer",
                            "example": 1
                          },
                          "campaign_hash": {
                            "description": "Campaign Hash",
                            "type": "string",
                            "example": "123456789abcdef"
                          },
                          "text_message": {
                            "description": "Template message",
                            "type": "string",
                            "example": "Example sms message"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/sms/templates?offset=<integer>&limit=10' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/sms/templates?offset=<integer>&limit=10\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/sms/templates?offset=<integer>&limit=10\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/sms/templates?offset=<integer>&limit=10\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/sms/templates?offset=<integer>&limit=10\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/sms/templates?offset=<integer>&limit=10\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/sms/templates?offset=<integer>&limit=10\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/trackengage/domains": {
      "get": {
        "tags": [
          "TrackEngage"
        ],
        "summary": "Get all domains",
        "description": "Returns all domains",
        "operationId": "getAllDomains",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "DomainCollection",
                  "description": "Collection of Domains",
                  "properties": {
                    "total_items": {
                      "description": "Returned domains",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned domains",
                      "type": "array",
                      "items": {
                        "title": "Domain",
                        "description": "Domain schema",
                        "properties": {
                          "domain": {
                            "description": "Domain",
                            "type": "string",
                            "example": "e-goi.com"
                          },
                          "list_id": {
                            "description": "List id",
                            "type": "string",
                            "example": 1
                          },
                          "status": {
                            "description": "Domain status",
                            "type": "string",
                            "enum": [
                              "active",
                              "inactive"
                            ],
                            "readOnly": true
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/trackengage/domains' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/trackengage/domains\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/trackengage/domains\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/trackengage/domains\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/trackengage/domains\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/trackengage/domains\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/trackengage/domains\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/trackengage/goals": {
      "get": {
        "tags": [
          "TrackEngage"
        ],
        "summary": "Get all goals",
        "description": "Returns all goals",
        "operationId": "getAllGoals",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "GoalCollection",
                  "description": "Collection of Goals",
                  "properties": {
                    "total_items": {
                      "description": "Returned goals",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned goals",
                      "type": "array",
                      "items": {
                        "title": "Goal",
                        "description": "Goal schema",
                        "properties": {
                          "domain": {
                            "description": "Domain where goal exists",
                            "type": "string",
                            "example": "www.e-goi.com"
                          },
                          "name": {
                            "description": "Goal name",
                            "type": "string",
                            "example": "Button click"
                          },
                          "id": {
                            "description": "Goal id",
                            "type": "number",
                            "example": 1
                          },
                          "config": {
                            "title": "GoalInfo",
                            "description": "GoalInfo",
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type",
                              "mapping": {
                                "automatic": "#/components/schemas/GoalAutommaticInfo",
                                "manual": "#/components/schemas/GoalManualInfo",
                                "time": "#/components/schemas/GoalTimeInfo"
                              }
                            },
                            "oneOf": [
                              {
                                "title": "GoalManualInfo",
                                "description": "Manual goal info schema",
                                "properties": {
                                  "type": {
                                    "description": "Goal type",
                                    "type": "string",
                                    "enum": [
                                      "manual"
                                    ]
                                  },
                                  "multiple_conversion": {
                                    "description": "Goal is multiple conversion",
                                    "type": "boolean",
                                    "example": true
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "GoalAutommaticInfo",
                                "description": "Automatic goal info schema",
                                "properties": {
                                  "type": {
                                    "description": "Goal type",
                                    "type": "string",
                                    "enum": [
                                      "automatic"
                                    ]
                                  },
                                  "rule": {
                                    "description": "Goal rule",
                                    "type": "string",
                                    "enum": [
                                      "url",
                                      "title",
                                      "download",
                                      "external_url"
                                    ]
                                  },
                                  "condition": {
                                    "description": "Goal condition",
                                    "type": "string",
                                    "enum": [
                                      "contains",
                                      "exactly",
                                      "regex"
                                    ]
                                  },
                                  "pattern": {
                                    "description": "Goal pattern",
                                    "type": "string",
                                    "example": "checkout/confirmation"
                                  },
                                  "case_sensitive": {
                                    "description": "Goal pattern case sensitive",
                                    "type": "boolean",
                                    "example": false
                                  },
                                  "multiple_conversion": {
                                    "description": "Goal is multiple conversion",
                                    "type": "boolean",
                                    "example": true
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "GoalTimeInfo",
                                "description": "Time goal info schema",
                                "properties": {
                                  "type": {
                                    "description": "Goal type",
                                    "type": "string",
                                    "enum": [
                                      "time"
                                    ]
                                  },
                                  "minutes": {
                                    "description": "Goal trigger time in minutes",
                                    "type": "number",
                                    "format": "double",
                                    "example": 10
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/trackengage/goals' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/trackengage/goals\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/trackengage/goals\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/trackengage/goals\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/trackengage/goals\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/trackengage/goals\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/trackengage/goals\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/users/{user_id}/activity": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Get user Activity",
        "description": "Returns user activity given its ID. ⚠️ Note: User Activity are only available by API from 2025-07-08 onward. ",
        "operationId": "getUserActivity",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "description": "ID of the User",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          {
            "name": "date",
            "in": "query",
            "description": "Date of the Activity",
            "required": false,
            "allowEmptyValue": false
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "UserActivity",
                  "description": "User activity log schema",
                  "properties": {
                    "id": {
                      "description": "Unique ID of the activity log",
                      "type": "integer",
                      "example": 23
                    },
                    "date": {
                      "description": "Date and time of the activity",
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-06-25 10:15:55"
                    },
                    "ip_address": {
                      "description": "IP address of the user",
                      "type": "string",
                      "example": "95.136.8.141"
                    },
                    "source": {
                      "description": "Source of the action",
                      "type": "string",
                      "example": "userInterface"
                    },
                    "action": {
                      "description": "Action performed by the user",
                      "type": "string",
                      "example": "viewPage"
                    },
                    "action_data": {
                      "description": "Retrieve the list of the details of the action",
                      "properties": {
                        "list_id": {
                          "example": "1"
                        },
                        "form_id": {
                          "example": "1"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/users/<integer>/activity?date=&offset=<integer>&limit=10' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/users/<integer>/activity?date=&offset=<integer>&limit=10\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/users/<integer>/activity?date=&offset=<integer>&limit=10\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/users/<integer>/activity?date=&offset=<integer>&limit=10\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/users/<integer>/activity?date=&offset=<integer>&limit=10\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/users/<integer>/activity?date=&offset=<integer>&limit=10\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/users/<integer>/activity?date=&offset=<integer>&limit=10\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/users": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Get all users",
        "description": "Returns all users",
        "operationId": "getAllUsers",
        "parameters": [
          {
            "name": "username",
            "in": "query",
            "description": "Reference attribute to username user",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Status filter",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "inactive"
              ]
            }
          },
          {
            "name": "created_min",
            "in": "query",
            "description": "Created initial date",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "created_max",
            "in": "query",
            "description": "Created finish",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "updated_min",
            "in": "query",
            "description": "Updated initial",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "updated_max",
            "in": "query",
            "description": "Updated finish",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "date_time",
              "description": "The date and time",
              "type": "string",
              "format": "date-time",
              "example": "YYYY-MM-DD hh:mm:ss"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "Type of order",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "order_by",
            "in": "query",
            "description": "Reference attribute to order users",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "user_id",
              "enum": [
                "user_id",
                "username"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "UserCollection",
                  "description": "Collection of users",
                  "properties": {
                    "total_items": {
                      "description": "Returned users",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned users",
                      "type": "array",
                      "items": {
                        "title": "User",
                        "description": "User schema",
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "user_id": {
                                "title": "ID",
                                "type": "integer",
                                "minimum": 1,
                                "readOnly": true,
                                "example": 1
                              },
                              "username": {
                                "description": "User login",
                                "type": "string",
                                "readOnly": true,
                                "example": "example@e-goi.com"
                              },
                              "is_admin": {
                                "description": "True if user is admin, false otherwise",
                                "type": "boolean",
                                "default": false,
                                "readOnly": true
                              },
                              "first_name": {
                                "description": "First name of the user",
                                "type": "string"
                              },
                              "last_name": {
                                "description": "Last name of the user",
                                "type": "string"
                              },
                              "email": {
                                "description": "Email of the user",
                                "type": "string",
                                "example": "example@e-goi.com"
                              },
                              "phone": {
                                "description": "User's phone (may be cellphone or phone)",
                                "type": "string",
                                "example": "351-300404336"
                              },
                              "profile_image": {
                                "description": "User's profile image",
                                "type": "string",
                                "readOnly": true
                              },
                              "status": {
                                "description": "User status",
                                "type": "string",
                                "enum": [
                                  "active",
                                  "inactive"
                                ],
                                "readOnly": true
                              },
                              "created": {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              },
                              "updated": {
                                "title": "date_time",
                                "description": "The date and time",
                                "type": "string",
                                "format": "date-time",
                                "example": "YYYY-MM-DD hh:mm:ss"
                              },
                              "profile": {
                                "title": "User Profile",
                                "description": "User Profile Detail",
                                "type": "array",
                                "items": {
                                  "title": "User Profile",
                                  "description": "User Profile Detail",
                                  "properties": {
                                    "profile_id": {
                                      "description": "User Profile ID",
                                      "type": "integer",
                                      "example": 1
                                    },
                                    "title": {
                                      "description": "User Profile Title",
                                      "type": "string",
                                      "example": "Administrator"
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/users?username=<string>&status=<string>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=user_id' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/users?username=<string>&status=<string>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=user_id\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/users?username=<string>&status=<string>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=user_id\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/users?username=<string>&status=<string>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=user_id\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/users?username=<string>&status=<string>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=user_id\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/users?username=<string>&status=<string>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=user_id\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/users?username=<string>&status=<string>&created_min=<dateTime>&created_max=<dateTime>&updated_min=<dateTime>&updated_max=<dateTime>&offset=<integer>&limit=10&order=desc&order_by=user_id\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/users/{user_id}": {
      "delete": {
        "tags": [
          "Users"
        ],
        "summary": "Remove user",
        "description": "Remove user information given its ID",
        "operationId": "deleteUser",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "description": "ID of the User",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Conflict",
                  "type": "object",
                  "allOf": [
                    {
                      "properties": {
                        "errors": {
                          "description": "Information about the conflict",
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/users/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/users/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/users/<integer>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/users/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/users/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/users/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/users/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/users/profiles": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Get all user profiles",
        "description": "Returns user profiles",
        "operationId": "getAllUserProfile",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "UserProfile",
                  "description": "User Profile detail schema",
                  "properties": {
                    "profile_id": {
                      "description": "Profile ID",
                      "type": "integer",
                      "example": 1
                    },
                    "title": {
                      "description": "Profile title",
                      "type": "string",
                      "example": "Administrator"
                    },
                    "permissions": {
                      "description": "Available profile permissions",
                      "type": "array",
                      "items": {
                        "title": "ProfilePermission",
                        "description": "Profile Permission schema",
                        "properties": {
                          "general_permissions": {
                            "title": "ProfilePermissionGeneralGlobal",
                            "description": "General permissions",
                            "properties": {
                              "home_permissions": {
                                "description": "Access to Home",
                                "type": "boolean",
                                "example": true
                              },
                              "lists_permissions": {
                                "description": "Access to Lists",
                                "type": "boolean",
                                "example": true
                              },
                              "campaigns_permissions": {
                                "description": "Access to Campaigns",
                                "type": "boolean",
                                "example": true
                              },
                              "automations_permissions": {
                                "description": "Access to Automations",
                                "type": "boolean",
                                "example": true
                              },
                              "reports_permissions": {
                                "description": "Access to Reports",
                                "type": "boolean",
                                "example": true
                              },
                              "balance_permissions": {
                                "description": "Access to Balance",
                                "type": "boolean",
                                "example": true
                              },
                              "user_permissions": {
                                "description": "Access to Users",
                                "type": "boolean",
                                "example": true
                              },
                              "commission_permissions": {
                                "description": "Access to Commissions",
                                "type": "boolean",
                                "example": true
                              },
                              "client_data_permissions": {
                                "description": "Access to Client Data",
                                "type": "boolean",
                                "example": true
                              },
                              "api_permissions": {
                                "description": "Access to Marketing API V2",
                                "type": "boolean",
                                "example": true
                              },
                              "senders_permissions": {
                                "description": "Access to Senders",
                                "type": "boolean",
                                "example": true
                              },
                              "my_account_permissions": {
                                "description": "Access to My Account",
                                "type": "boolean",
                                "example": true
                              },
                              "tags_permissions": {
                                "description": "Access to Tags",
                                "type": "boolean",
                                "example": true
                              },
                              "transacional_permissions": {
                                "description": "Access to Transactional",
                                "type": "boolean",
                                "example": true
                              },
                              "forms_permissions": {
                                "description": "Access to Forms",
                                "type": "boolean",
                                "example": true
                              },
                              "security_permissions": {
                                "description": "Access to Security",
                                "type": "boolean",
                                "example": true
                              },
                              "track_engage_permissions": {
                                "description": "Access to Track Engage",
                                "type": "boolean",
                                "example": true
                              },
                              "alerts_permissions": {
                                "description": "Access to Alerts",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "user_permissions": {
                            "title": "ProfilePermissionUserGlobal",
                            "description": "User permissions",
                            "properties": {
                              "add": {
                                "description": "Permission to add users",
                                "type": "boolean",
                                "example": true
                              },
                              "edit": {
                                "description": "Permission to edit users",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete users",
                                "type": "boolean",
                                "example": true
                              },
                              "profiles": {
                                "description": "Permission to manage user profiles",
                                "type": "boolean",
                                "example": true
                              },
                              "logs": {
                                "description": "Permission to view user logs",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "security_permissions": {
                            "title": "ProfilePermissionSecurityGlobal",
                            "description": "Security permissions",
                            "properties": {
                              "edit": {
                                "description": "Permission to edit security settings",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "forms_permissions": {
                            "title": "ProfilePermissionFormsGlobal",
                            "description": "Forms permissions",
                            "properties": {
                              "new": {
                                "description": "Permission to create forms",
                                "type": "boolean",
                                "example": true
                              },
                              "edit": {
                                "description": "Permission to edit forms",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete forms",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "lists_permissions": {
                            "title": "ProfilePermissionListsGlobal",
                            "description": "Lists permissions",
                            "properties": {
                              "new": {
                                "description": "Permission to create lists",
                                "type": "boolean",
                                "example": true
                              },
                              "edit": {
                                "description": "Permission to edit lists",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete lists",
                                "type": "boolean",
                                "example": true
                              },
                              "duplicate": {
                                "description": "Permission to duplicate lists",
                                "type": "boolean",
                                "example": true
                              },
                              "view_contacts": {
                                "description": "Permission to view contacts",
                                "type": "boolean",
                                "example": true
                              },
                              "add_contacts": {
                                "description": "Permission to add contacts",
                                "type": "boolean",
                                "example": true
                              },
                              "edit_contacts": {
                                "description": "Permission to edit contacts",
                                "type": "boolean",
                                "example": true
                              },
                              "delete_contacts": {
                                "description": "Permission to delete contacts",
                                "type": "boolean",
                                "example": true
                              },
                              "export_contacts": {
                                "description": "Permission to export contacts",
                                "type": "boolean",
                                "example": true
                              },
                              "groups": {
                                "description": "Permission to manage groups",
                                "type": "boolean",
                                "example": true
                              },
                              "access": {
                                "description": "Scope of access to lists",
                                "properties": {
                                  "access_type": {
                                    "description": "Access type (all or limited)",
                                    "type": "string",
                                    "example": "limited"
                                  },
                                  "lists_id_list": {
                                    "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                                    "type": "array",
                                    "items": {
                                      "type": "integer"
                                    },
                                    "example": [
                                      1,
                                      2,
                                      3
                                    ]
                                  }
                                },
                                "type": "object"
                              }
                            },
                            "type": "object"
                          },
                          "campaigns_permissions": {
                            "title": "ProfilePermissionCampaignsGlobal",
                            "description": "Campaigns permissions",
                            "properties": {
                              "new": {
                                "description": "Permission to create campaigns",
                                "type": "boolean",
                                "example": true
                              },
                              "edit": {
                                "description": "Permission to edit campaigns",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete campaigns",
                                "type": "boolean",
                                "example": true
                              },
                              "duplicate": {
                                "description": "Permission to duplicate campaigns",
                                "type": "boolean",
                                "example": true
                              },
                              "groups": {
                                "description": "Permission to manage groups",
                                "type": "boolean",
                                "example": true
                              },
                              "deploy": {
                                "description": "Permission to deploy campaigns",
                                "type": "boolean",
                                "example": true
                              },
                              "access_group": {
                                "description": "Scope of access to campaign groups",
                                "properties": {
                                  "access_type": {
                                    "description": "Access type (all or limited)",
                                    "type": "string",
                                    "example": "limited"
                                  },
                                  "campaigns_id_list": {
                                    "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                                    "type": "array",
                                    "items": {
                                      "type": "integer"
                                    },
                                    "example": [
                                      1,
                                      2,
                                      3
                                    ]
                                  }
                                },
                                "type": "object"
                              }
                            },
                            "type": "object"
                          },
                          "automations_permissions": {
                            "title": "ProfilePermissionAutomationsGlobal",
                            "description": "Automations permissions",
                            "properties": {
                              "new": {
                                "description": "Permission to create automations",
                                "type": "boolean",
                                "example": true
                              },
                              "edit": {
                                "description": "Permission to edit automations",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete automations",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "reports_permissions": {
                            "title": "ProfilePermissionReportsGlobal",
                            "description": "Reports permissions",
                            "properties": {
                              "new": {
                                "description": "Permission to create reports",
                                "type": "boolean",
                                "example": true
                              },
                              "edit": {
                                "description": "Permission to edit reports",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete reports",
                                "type": "boolean",
                                "example": true
                              },
                              "export": {
                                "description": "Permission to export reports",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "balance_permissions": {
                            "title": "ProfilePermissionBalanceGlobal",
                            "description": "Balance permissions",
                            "properties": {
                              "new": {
                                "description": "Permission to create balance entries",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete balance entries",
                                "type": "boolean",
                                "example": true
                              },
                              "pay": {
                                "description": "Permission to perform payments",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "tags_permissions": {
                            "title": "ProfilePermissionTagsGlobal",
                            "description": "Tags permissions",
                            "properties": {
                              "new": {
                                "description": "Permission to create tags",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete tags",
                                "type": "boolean",
                                "example": true
                              },
                              "edit": {
                                "description": "Permission to edit tags",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "transacional_permissions": {
                            "title": "ProfilePermissionTransactionalGlobal",
                            "description": "Transactional permissions",
                            "properties": {
                              "view": {
                                "description": "Permission to view transactional messages",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "api_permissions": {
                            "title": "ProfilePermissionApiGlobal",
                            "description": "API permissions",
                            "properties": {
                              "client_data": {
                                "description": "Access client data via API",
                                "type": "boolean",
                                "example": true
                              },
                              "new_campaign": {
                                "description": "Create campaigns via API",
                                "type": "boolean",
                                "example": true
                              },
                              "deploy_campaign": {
                                "description": "Deploy campaigns via API",
                                "type": "boolean",
                                "example": true
                              },
                              "list_campaign": {
                                "description": "List campaigns via API",
                                "type": "boolean",
                                "example": true
                              },
                              "edit_campaign": {
                                "description": "Edit campaigns via API",
                                "type": "boolean",
                                "example": true
                              },
                              "delete_campaign": {
                                "description": "Delete campaigns via API",
                                "type": "boolean",
                                "example": true
                              },
                              "report_campaign": {
                                "description": "Retrieve campaign reports via API",
                                "type": "boolean",
                                "example": true
                              },
                              "add_contacts": {
                                "description": "Add contacts via API",
                                "type": "boolean",
                                "example": true
                              },
                              "edit_contacts": {
                                "description": "Edit contacts via API",
                                "type": "boolean",
                                "example": true
                              },
                              "delete_contacts": {
                                "description": "Delete contacts via API",
                                "type": "boolean",
                                "example": true
                              },
                              "view_contacts": {
                                "description": "View contacts via API",
                                "type": "boolean",
                                "example": true
                              },
                              "list_lists": {
                                "description": "List lists via API",
                                "type": "boolean",
                                "example": true
                              },
                              "new_list": {
                                "description": "Create lists via API",
                                "type": "boolean",
                                "example": true
                              },
                              "edit_list": {
                                "description": "Edit lists via API",
                                "type": "boolean",
                                "example": true
                              },
                              "delete_extra_field": {
                                "description": "Delete extra fields via API",
                                "type": "boolean",
                                "example": true
                              },
                              "edit_extra_field": {
                                "description": "Edit extra fields via API",
                                "type": "boolean",
                                "example": true
                              },
                              "new_extra_field": {
                                "description": "Create extra fields via API",
                                "type": "boolean",
                                "example": true
                              },
                              "list_forms": {
                                "description": "List forms via API",
                                "type": "boolean",
                                "example": true
                              },
                              "list_froms": {
                                "description": "List forms via API (alias)",
                                "type": "boolean",
                                "example": true
                              },
                              "add_tag": {
                                "description": "Add tags via API",
                                "type": "boolean",
                                "example": true
                              },
                              "delete_tag": {
                                "description": "Delete tags via API",
                                "type": "boolean",
                                "example": true
                              },
                              "get_autobots": {
                                "description": "Retrieve automations (autobots) via API",
                                "type": "boolean",
                                "example": true
                              },
                              "start_autobots": {
                                "description": "Start automations (autobots) via API",
                                "type": "boolean",
                                "example": true
                              },
                              "create_api_key": {
                                "description": "Create API keys",
                                "type": "boolean",
                                "example": true
                              },
                              "edit_api_key": {
                                "description": "Edit API keys",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "senders_permissions": {
                            "title": "ProfilePermissionSendersGlobal",
                            "description": "Senders permissions",
                            "properties": {
                              "new": {
                                "description": "Create senders",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Delete senders",
                                "type": "boolean",
                                "example": true
                              },
                              "access": {
                                "description": "Scope of access to senders",
                                "properties": {
                                  "access_type": {
                                    "description": "Access type (all or limited)",
                                    "type": "string",
                                    "example": "limited"
                                  },
                                  "senders_id_list": {
                                    "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                                    "type": "array",
                                    "items": {
                                      "type": "integer"
                                    },
                                    "example": [
                                      1,
                                      2,
                                      3
                                    ]
                                  }
                                },
                                "type": "object"
                              }
                            },
                            "type": "object"
                          },
                          "alerts_permissions": {
                            "title": "ProfilePermissionAlertsGlobal",
                            "description": "Alerts permissions",
                            "properties": {
                              "edit": {
                                "description": "Edit alerts",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "default": {
                      "description": "Indicates whether the profile is the default",
                      "type": "boolean",
                      "example": false
                    },
                    "created": {
                      "description": "Profile creation date",
                      "type": "string",
                      "example": "2023-10-01 12:00:00"
                    },
                    "created_by": {
                      "description": "User ID who created the profile",
                      "type": "string",
                      "example": "1234567"
                    },
                    "updated": {
                      "description": "Profile last update date",
                      "type": "string",
                      "example": "2023-10-01 12:00:00"
                    },
                    "updated_by": {
                      "description": "User ID who last updated the profile",
                      "type": "string",
                      "example": "1234567"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/users/profiles?offset=<integer>&limit=10' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/users/profiles?offset=<integer>&limit=10\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/users/profiles?offset=<integer>&limit=10\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/users/profiles?offset=<integer>&limit=10\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/users/profiles?offset=<integer>&limit=10\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/users/profiles?offset=<integer>&limit=10\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/users/profiles?offset=<integer>&limit=10\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/users/profiles/{profile_id}": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Get user profile",
        "description": "Returns user profile given its ID",
        "operationId": "getUserProfile",
        "parameters": [
          {
            "name": "profile_id",
            "in": "path",
            "description": "ID of the User Profile",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "UserProfile",
                  "description": "User Profile detail schema",
                  "properties": {
                    "profile_id": {
                      "description": "Profile ID",
                      "type": "integer",
                      "example": 1
                    },
                    "title": {
                      "description": "Profile title",
                      "type": "string",
                      "example": "Administrator"
                    },
                    "permissions": {
                      "description": "Available profile permissions",
                      "type": "array",
                      "items": {
                        "title": "ProfilePermission",
                        "description": "Profile Permission schema",
                        "properties": {
                          "general_permissions": {
                            "title": "ProfilePermissionGeneralGlobal",
                            "description": "General permissions",
                            "properties": {
                              "home_permissions": {
                                "description": "Access to Home",
                                "type": "boolean",
                                "example": true
                              },
                              "lists_permissions": {
                                "description": "Access to Lists",
                                "type": "boolean",
                                "example": true
                              },
                              "campaigns_permissions": {
                                "description": "Access to Campaigns",
                                "type": "boolean",
                                "example": true
                              },
                              "automations_permissions": {
                                "description": "Access to Automations",
                                "type": "boolean",
                                "example": true
                              },
                              "reports_permissions": {
                                "description": "Access to Reports",
                                "type": "boolean",
                                "example": true
                              },
                              "balance_permissions": {
                                "description": "Access to Balance",
                                "type": "boolean",
                                "example": true
                              },
                              "user_permissions": {
                                "description": "Access to Users",
                                "type": "boolean",
                                "example": true
                              },
                              "commission_permissions": {
                                "description": "Access to Commissions",
                                "type": "boolean",
                                "example": true
                              },
                              "client_data_permissions": {
                                "description": "Access to Client Data",
                                "type": "boolean",
                                "example": true
                              },
                              "api_permissions": {
                                "description": "Access to Marketing API V2",
                                "type": "boolean",
                                "example": true
                              },
                              "senders_permissions": {
                                "description": "Access to Senders",
                                "type": "boolean",
                                "example": true
                              },
                              "my_account_permissions": {
                                "description": "Access to My Account",
                                "type": "boolean",
                                "example": true
                              },
                              "tags_permissions": {
                                "description": "Access to Tags",
                                "type": "boolean",
                                "example": true
                              },
                              "transacional_permissions": {
                                "description": "Access to Transactional",
                                "type": "boolean",
                                "example": true
                              },
                              "forms_permissions": {
                                "description": "Access to Forms",
                                "type": "boolean",
                                "example": true
                              },
                              "security_permissions": {
                                "description": "Access to Security",
                                "type": "boolean",
                                "example": true
                              },
                              "track_engage_permissions": {
                                "description": "Access to Track Engage",
                                "type": "boolean",
                                "example": true
                              },
                              "alerts_permissions": {
                                "description": "Access to Alerts",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "user_permissions": {
                            "title": "ProfilePermissionUserGlobal",
                            "description": "User permissions",
                            "properties": {
                              "add": {
                                "description": "Permission to add users",
                                "type": "boolean",
                                "example": true
                              },
                              "edit": {
                                "description": "Permission to edit users",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete users",
                                "type": "boolean",
                                "example": true
                              },
                              "profiles": {
                                "description": "Permission to manage user profiles",
                                "type": "boolean",
                                "example": true
                              },
                              "logs": {
                                "description": "Permission to view user logs",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "security_permissions": {
                            "title": "ProfilePermissionSecurityGlobal",
                            "description": "Security permissions",
                            "properties": {
                              "edit": {
                                "description": "Permission to edit security settings",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "forms_permissions": {
                            "title": "ProfilePermissionFormsGlobal",
                            "description": "Forms permissions",
                            "properties": {
                              "new": {
                                "description": "Permission to create forms",
                                "type": "boolean",
                                "example": true
                              },
                              "edit": {
                                "description": "Permission to edit forms",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete forms",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "lists_permissions": {
                            "title": "ProfilePermissionListsGlobal",
                            "description": "Lists permissions",
                            "properties": {
                              "new": {
                                "description": "Permission to create lists",
                                "type": "boolean",
                                "example": true
                              },
                              "edit": {
                                "description": "Permission to edit lists",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete lists",
                                "type": "boolean",
                                "example": true
                              },
                              "duplicate": {
                                "description": "Permission to duplicate lists",
                                "type": "boolean",
                                "example": true
                              },
                              "view_contacts": {
                                "description": "Permission to view contacts",
                                "type": "boolean",
                                "example": true
                              },
                              "add_contacts": {
                                "description": "Permission to add contacts",
                                "type": "boolean",
                                "example": true
                              },
                              "edit_contacts": {
                                "description": "Permission to edit contacts",
                                "type": "boolean",
                                "example": true
                              },
                              "delete_contacts": {
                                "description": "Permission to delete contacts",
                                "type": "boolean",
                                "example": true
                              },
                              "export_contacts": {
                                "description": "Permission to export contacts",
                                "type": "boolean",
                                "example": true
                              },
                              "groups": {
                                "description": "Permission to manage groups",
                                "type": "boolean",
                                "example": true
                              },
                              "access": {
                                "description": "Scope of access to lists",
                                "properties": {
                                  "access_type": {
                                    "description": "Access type (all or limited)",
                                    "type": "string",
                                    "example": "limited"
                                  },
                                  "lists_id_list": {
                                    "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                                    "type": "array",
                                    "items": {
                                      "type": "integer"
                                    },
                                    "example": [
                                      1,
                                      2,
                                      3
                                    ]
                                  }
                                },
                                "type": "object"
                              }
                            },
                            "type": "object"
                          },
                          "campaigns_permissions": {
                            "title": "ProfilePermissionCampaignsGlobal",
                            "description": "Campaigns permissions",
                            "properties": {
                              "new": {
                                "description": "Permission to create campaigns",
                                "type": "boolean",
                                "example": true
                              },
                              "edit": {
                                "description": "Permission to edit campaigns",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete campaigns",
                                "type": "boolean",
                                "example": true
                              },
                              "duplicate": {
                                "description": "Permission to duplicate campaigns",
                                "type": "boolean",
                                "example": true
                              },
                              "groups": {
                                "description": "Permission to manage groups",
                                "type": "boolean",
                                "example": true
                              },
                              "deploy": {
                                "description": "Permission to deploy campaigns",
                                "type": "boolean",
                                "example": true
                              },
                              "access_group": {
                                "description": "Scope of access to campaign groups",
                                "properties": {
                                  "access_type": {
                                    "description": "Access type (all or limited)",
                                    "type": "string",
                                    "example": "limited"
                                  },
                                  "campaigns_id_list": {
                                    "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                                    "type": "array",
                                    "items": {
                                      "type": "integer"
                                    },
                                    "example": [
                                      1,
                                      2,
                                      3
                                    ]
                                  }
                                },
                                "type": "object"
                              }
                            },
                            "type": "object"
                          },
                          "automations_permissions": {
                            "title": "ProfilePermissionAutomationsGlobal",
                            "description": "Automations permissions",
                            "properties": {
                              "new": {
                                "description": "Permission to create automations",
                                "type": "boolean",
                                "example": true
                              },
                              "edit": {
                                "description": "Permission to edit automations",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete automations",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "reports_permissions": {
                            "title": "ProfilePermissionReportsGlobal",
                            "description": "Reports permissions",
                            "properties": {
                              "new": {
                                "description": "Permission to create reports",
                                "type": "boolean",
                                "example": true
                              },
                              "edit": {
                                "description": "Permission to edit reports",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete reports",
                                "type": "boolean",
                                "example": true
                              },
                              "export": {
                                "description": "Permission to export reports",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "balance_permissions": {
                            "title": "ProfilePermissionBalanceGlobal",
                            "description": "Balance permissions",
                            "properties": {
                              "new": {
                                "description": "Permission to create balance entries",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete balance entries",
                                "type": "boolean",
                                "example": true
                              },
                              "pay": {
                                "description": "Permission to perform payments",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "tags_permissions": {
                            "title": "ProfilePermissionTagsGlobal",
                            "description": "Tags permissions",
                            "properties": {
                              "new": {
                                "description": "Permission to create tags",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Permission to delete tags",
                                "type": "boolean",
                                "example": true
                              },
                              "edit": {
                                "description": "Permission to edit tags",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "transacional_permissions": {
                            "title": "ProfilePermissionTransactionalGlobal",
                            "description": "Transactional permissions",
                            "properties": {
                              "view": {
                                "description": "Permission to view transactional messages",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "api_permissions": {
                            "title": "ProfilePermissionApiGlobal",
                            "description": "API permissions",
                            "properties": {
                              "client_data": {
                                "description": "Access client data via API",
                                "type": "boolean",
                                "example": true
                              },
                              "new_campaign": {
                                "description": "Create campaigns via API",
                                "type": "boolean",
                                "example": true
                              },
                              "deploy_campaign": {
                                "description": "Deploy campaigns via API",
                                "type": "boolean",
                                "example": true
                              },
                              "list_campaign": {
                                "description": "List campaigns via API",
                                "type": "boolean",
                                "example": true
                              },
                              "edit_campaign": {
                                "description": "Edit campaigns via API",
                                "type": "boolean",
                                "example": true
                              },
                              "delete_campaign": {
                                "description": "Delete campaigns via API",
                                "type": "boolean",
                                "example": true
                              },
                              "report_campaign": {
                                "description": "Retrieve campaign reports via API",
                                "type": "boolean",
                                "example": true
                              },
                              "add_contacts": {
                                "description": "Add contacts via API",
                                "type": "boolean",
                                "example": true
                              },
                              "edit_contacts": {
                                "description": "Edit contacts via API",
                                "type": "boolean",
                                "example": true
                              },
                              "delete_contacts": {
                                "description": "Delete contacts via API",
                                "type": "boolean",
                                "example": true
                              },
                              "view_contacts": {
                                "description": "View contacts via API",
                                "type": "boolean",
                                "example": true
                              },
                              "list_lists": {
                                "description": "List lists via API",
                                "type": "boolean",
                                "example": true
                              },
                              "new_list": {
                                "description": "Create lists via API",
                                "type": "boolean",
                                "example": true
                              },
                              "edit_list": {
                                "description": "Edit lists via API",
                                "type": "boolean",
                                "example": true
                              },
                              "delete_extra_field": {
                                "description": "Delete extra fields via API",
                                "type": "boolean",
                                "example": true
                              },
                              "edit_extra_field": {
                                "description": "Edit extra fields via API",
                                "type": "boolean",
                                "example": true
                              },
                              "new_extra_field": {
                                "description": "Create extra fields via API",
                                "type": "boolean",
                                "example": true
                              },
                              "list_forms": {
                                "description": "List forms via API",
                                "type": "boolean",
                                "example": true
                              },
                              "list_froms": {
                                "description": "List forms via API (alias)",
                                "type": "boolean",
                                "example": true
                              },
                              "add_tag": {
                                "description": "Add tags via API",
                                "type": "boolean",
                                "example": true
                              },
                              "delete_tag": {
                                "description": "Delete tags via API",
                                "type": "boolean",
                                "example": true
                              },
                              "get_autobots": {
                                "description": "Retrieve automations (autobots) via API",
                                "type": "boolean",
                                "example": true
                              },
                              "start_autobots": {
                                "description": "Start automations (autobots) via API",
                                "type": "boolean",
                                "example": true
                              },
                              "create_api_key": {
                                "description": "Create API keys",
                                "type": "boolean",
                                "example": true
                              },
                              "edit_api_key": {
                                "description": "Edit API keys",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          },
                          "senders_permissions": {
                            "title": "ProfilePermissionSendersGlobal",
                            "description": "Senders permissions",
                            "properties": {
                              "new": {
                                "description": "Create senders",
                                "type": "boolean",
                                "example": true
                              },
                              "delete": {
                                "description": "Delete senders",
                                "type": "boolean",
                                "example": true
                              },
                              "access": {
                                "description": "Scope of access to senders",
                                "properties": {
                                  "access_type": {
                                    "description": "Access type (all or limited)",
                                    "type": "string",
                                    "example": "limited"
                                  },
                                  "senders_id_list": {
                                    "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                                    "type": "array",
                                    "items": {
                                      "type": "integer"
                                    },
                                    "example": [
                                      1,
                                      2,
                                      3
                                    ]
                                  }
                                },
                                "type": "object"
                              }
                            },
                            "type": "object"
                          },
                          "alerts_permissions": {
                            "title": "ProfilePermissionAlertsGlobal",
                            "description": "Alerts permissions",
                            "properties": {
                              "edit": {
                                "description": "Edit alerts",
                                "type": "boolean",
                                "example": true
                              }
                            },
                            "type": "object"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "default": {
                      "description": "Indicates whether the profile is the default",
                      "type": "boolean",
                      "example": false
                    },
                    "created": {
                      "description": "Profile creation date",
                      "type": "string",
                      "example": "2023-10-01 12:00:00"
                    },
                    "created_by": {
                      "description": "User ID who created the profile",
                      "type": "string",
                      "example": "1234567"
                    },
                    "updated": {
                      "description": "Profile last update date",
                      "type": "string",
                      "example": "2023-10-01 12:00:00"
                    },
                    "updated_by": {
                      "description": "User ID who last updated the profile",
                      "type": "string",
                      "example": "1234567"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/users/profiles/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/users/profiles/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/users/profiles/<integer>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/users/profiles/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/users/profiles/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/users/profiles/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/users/profiles/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/utilities/countries": {
      "get": {
        "tags": [
          "Utilities"
        ],
        "summary": "Get all countries",
        "description": "Returns all countries",
        "operationId": "getAllCountries",
        "parameters": [
          {
            "name": "phone",
            "in": "query",
            "description": "Phone number without country code to get all countries which can use that phone number",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "CountryCollection",
                  "description": "Collection of countries",
                  "properties": {
                    "total_items": {
                      "description": "Returned countries",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned countries",
                      "type": "array",
                      "items": {
                        "title": "Country",
                        "description": "Country schema",
                        "properties": {
                          "country": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "name": {
                            "description": "Name of the country",
                            "type": "string",
                            "example": "Portugal"
                          },
                          "iso_code": {
                            "description": "ISO code of the country",
                            "type": "string",
                            "example": "PT"
                          },
                          "currency": {
                            "description": "Currency of the country",
                            "type": "string",
                            "example": "EUR"
                          },
                          "country_code": {
                            "description": "Country code to be used in phone numbers",
                            "type": "string",
                            "example": "351"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/utilities/countries?phone=<string>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/utilities/countries?phone=<string>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/utilities/countries?phone=<string>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/utilities/countries?phone=<string>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/utilities/countries?phone=<string>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/utilities/countries?phone=<string>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/utilities/countries?phone=<string>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/webpush/sites": {
      "get": {
        "tags": [
          "Webpush"
        ],
        "summary": "Get all webpush sites",
        "description": "Returns all wepush's sites",
        "operationId": "getAllWebPushSites",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "Type of order",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "order_by",
            "in": "query",
            "description": "Reference attribute to order sites",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "list_id",
              "enum": [
                "list_id",
                "created",
                "updated"
              ]
            }
          },
          {
            "name": "list_id",
            "in": "query",
            "description": "Select sites referenced to a list",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "readOnly": true,
              "example": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "TagCollection",
                  "description": "Collection of sites",
                  "properties": {
                    "total_items": {
                      "description": "Returned sites",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned sites",
                      "type": "array",
                      "items": {
                        "title": "WebPush Site",
                        "description": "WebPush site schema",
                        "required": [
                          "site",
                          "list_id",
                          "name"
                        ],
                        "properties": {
                          "site_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "site": {
                            "description": "Webpush site",
                            "type": "string"
                          },
                          "list_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "example": 1
                          },
                          "app_code": {
                            "description": "App code",
                            "type": "string",
                            "readOnly": true,
                            "example": "7b89dfsb9a6ab6fbsfbasbd6f6"
                          },
                          "name": {
                            "description": "Webpush name",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/webpush/sites?offset=<integer>&limit=10&order=desc&order_by=list_id&list_id=<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/webpush/sites?offset=<integer>&limit=10&order=desc&order_by=list_id&list_id=<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/webpush/sites?offset=<integer>&limit=10&order=desc&order_by=list_id&list_id=<integer>\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/webpush/sites?offset=<integer>&limit=10&order=desc&order_by=list_id&list_id=<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/webpush/sites?offset=<integer>&limit=10&order=desc&order_by=list_id&list_id=<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/webpush/sites?offset=<integer>&limit=10&order=desc&order_by=list_id&list_id=<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/webpush/sites?offset=<integer>&limit=10&order=desc&order_by=list_id&list_id=<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Webpush"
        ],
        "summary": "Creates a webpush site",
        "description": "Create a new webpush site",
        "operationId": "createWebpushSite",
        "requestBody": {
          "description": "Parameters for the webpush site",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "WebPush Site",
                "description": "WebPush site schema",
                "required": [
                  "site",
                  "list_id",
                  "name"
                ],
                "properties": {
                  "site_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "readOnly": true,
                    "example": 1
                  },
                  "site": {
                    "description": "Webpush site",
                    "type": "string"
                  },
                  "list_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "app_code": {
                    "description": "App code",
                    "type": "string",
                    "readOnly": true,
                    "example": "7b89dfsb9a6ab6fbsfbasbd6f6"
                  },
                  "name": {
                    "description": "Webpush name",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "title": "WebPush Site",
                  "description": "WebPush site schema",
                  "required": [
                    "site",
                    "list_id",
                    "name"
                  ],
                  "properties": {
                    "site_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "site": {
                      "description": "Webpush site",
                      "type": "string"
                    },
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "app_code": {
                      "description": "App code",
                      "type": "string",
                      "readOnly": true,
                      "example": "7b89dfsb9a6ab6fbsfbasbd6f6"
                    },
                    "name": {
                      "description": "Webpush name",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "PostWebpushSiteConflict",
                  "description": "Error schema for post webpush site conflicts",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "name_already_exists",
                      "description": "Error schema for conflict when the provided webpush name already exists",
                      "properties": {
                        "errors": {
                          "properties": {
                            "name_already_exists": {
                              "description": "Occurs when the provided webpush name already exists",
                              "type": "string",
                              "enum": [
                                "The provided name already exists"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/webpush/sites' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"site\":\"<string>\",\"list_id\":\"<integer>\",\"name\":\"<string>\",\"site_id\":\"<integer>\"}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/webpush/sites\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"site\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"site_id\\\":\\\"<integer>\\\"}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"site\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"site_id\\\":\\\"<integer>\\\"}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/webpush/sites\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"site\":\"<string>\",\"list_id\":\"<integer>\",\"name\":\"<string>\",\"site_id\":\"<integer>\"});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/webpush/sites\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/webpush/sites\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"site\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"site_id\\\":\\\"<integer>\\\"}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"site\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"site_id\\\":\\\"<integer>\\\"}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/webpush/sites\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/webpush/sites\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"site\\\":\\\"<string>\\\",\\\"list_id\\\":\\\"<integer>\\\",\\\"name\\\":\\\"<string>\\\",\\\"site_id\\\":\\\"<integer>\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/webhooks": {
      "get": {
        "tags": [
          "Web Hooks"
        ],
        "summary": "Get all webhooks",
        "description": "Returns all webhooks <a href='/usecases/webhooks/' target='_blank'>[Go to webhooks documentation]</a>",
        "operationId": "getAllWebhooks",
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "description": "Element offset (starting at zero for the first element)",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of items to return",
            "required": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 1000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "ListCollection",
                  "description": "Collection of webhooks",
                  "properties": {
                    "total_items": {
                      "description": "Returned webhooks",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "items": {
                      "description": "Returned webhooks",
                      "type": "array",
                      "items": {
                        "title": "Webhook",
                        "description": "Webhook schema",
                        "required": [
                          "list_id",
                          "url",
                          "actions"
                        ],
                        "properties": {
                          "webhook_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "list_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "example": 1
                          },
                          "url": {
                            "description": "Url to send the webhook <a href='/usecases/webhooks/' target='_blank'>[Go to webhooks documentation]</a>:\n *       Note: Only 'http' or 'https' protocols are supported.",
                            "type": "string"
                          },
                          "actions": {
                            "description": "Action that will trigger the webhook",
                            "type": "array",
                            "items": {
                              "title": "WebhookActionSchema",
                              "description": "Action that will trigger the webhook",
                              "type": "string",
                              "enum": [
                                "forget_subscription",
                                "change_consent",
                                "web_push_bounce",
                                "web_push_click",
                                "web_push_delivered",
                                "web_push_open",
                                "web_push_send",
                                "web_push_subscription",
                                "web_push_unsubscription",
                                "email_send",
                                "email_open",
                                "email_click",
                                "email_soft_bounce",
                                "email_hard_bounce",
                                "sms_send",
                                "sms_delivered",
                                "voice_send",
                                "unsubscribe",
                                "subscription",
                                "edit_subscription",
                                "resubscription",
                                "facebook_like",
                                "social_share",
                                "double_optin",
                                "email_spam_complaint",
                                "email_field_disable",
                                "cellphone_field_disable",
                                "phone_field_disable",
                                "push_send",
                                "push_open",
                                "push_click",
                                "push_received",
                                "push_error",
                                "push_canceled",
                                "new_order",
                                "cart_update",
                                "goal_conversion",
                                "product_view",
                                "whatsapp_response"
                              ]
                            }
                          },
                          "fields": {
                            "description": "Array of contact field IDs to be displayed in the webhook",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request GET 'api.egoiapp.com/webhooks?offset=<integer>&limit=10' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/webhooks?offset=<integer>&limit=10\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/webhooks?offset=<integer>&limit=10\")\n    .method(\"GET\", null)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"GET\", \"api.egoiapp.com/webhooks?offset=<integer>&limit=10\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/webhooks?offset=<integer>&limit=10\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"GET\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"GET\", \"/webhooks?offset=<integer>&limit=10\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/webhooks?offset=<integer>&limit=10\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      },
      "post": {
        "tags": [
          "Web Hooks"
        ],
        "summary": "Create new webhook",
        "description": "Create a new webhook <a href='/usecases/webhooks/' target='_blank'>[Go to webhooks documentation]</a>",
        "operationId": "createWebhook",
        "requestBody": {
          "description": "Parameters for the webhook",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Webhook",
                "description": "Webhook schema",
                "required": [
                  "list_id",
                  "url",
                  "actions"
                ],
                "properties": {
                  "webhook_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "readOnly": true,
                    "example": 1
                  },
                  "list_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "url": {
                    "description": "Url to send the webhook <a href='/usecases/webhooks/' target='_blank'>[Go to webhooks documentation]</a>:\n *       Note: Only 'http' or 'https' protocols are supported.",
                    "type": "string"
                  },
                  "actions": {
                    "description": "Action that will trigger the webhook",
                    "type": "array",
                    "items": {
                      "title": "WebhookActionSchema",
                      "description": "Action that will trigger the webhook",
                      "type": "string",
                      "enum": [
                        "forget_subscription",
                        "change_consent",
                        "web_push_bounce",
                        "web_push_click",
                        "web_push_delivered",
                        "web_push_open",
                        "web_push_send",
                        "web_push_subscription",
                        "web_push_unsubscription",
                        "email_send",
                        "email_open",
                        "email_click",
                        "email_soft_bounce",
                        "email_hard_bounce",
                        "sms_send",
                        "sms_delivered",
                        "voice_send",
                        "unsubscribe",
                        "subscription",
                        "edit_subscription",
                        "resubscription",
                        "facebook_like",
                        "social_share",
                        "double_optin",
                        "email_spam_complaint",
                        "email_field_disable",
                        "cellphone_field_disable",
                        "phone_field_disable",
                        "push_send",
                        "push_open",
                        "push_click",
                        "push_received",
                        "push_error",
                        "push_canceled",
                        "new_order",
                        "cart_update",
                        "goal_conversion",
                        "product_view",
                        "whatsapp_response"
                      ]
                    }
                  },
                  "fields": {
                    "description": "Array of contact field IDs to be displayed in the webhook",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Webhook",
                  "description": "Webhook schema",
                  "required": [
                    "list_id",
                    "url",
                    "actions"
                  ],
                  "properties": {
                    "webhook_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "url": {
                      "description": "Url to send the webhook <a href='/usecases/webhooks/' target='_blank'>[Go to webhooks documentation]</a>:\n *       Note: Only 'http' or 'https' protocols are supported.",
                      "type": "string"
                    },
                    "actions": {
                      "description": "Action that will trigger the webhook",
                      "type": "array",
                      "items": {
                        "title": "WebhookActionSchema",
                        "description": "Action that will trigger the webhook",
                        "type": "string",
                        "enum": [
                          "forget_subscription",
                          "change_consent",
                          "web_push_bounce",
                          "web_push_click",
                          "web_push_delivered",
                          "web_push_open",
                          "web_push_send",
                          "web_push_subscription",
                          "web_push_unsubscription",
                          "email_send",
                          "email_open",
                          "email_click",
                          "email_soft_bounce",
                          "email_hard_bounce",
                          "sms_send",
                          "sms_delivered",
                          "voice_send",
                          "unsubscribe",
                          "subscription",
                          "edit_subscription",
                          "resubscription",
                          "facebook_like",
                          "social_share",
                          "double_optin",
                          "email_spam_complaint",
                          "email_field_disable",
                          "cellphone_field_disable",
                          "phone_field_disable",
                          "push_send",
                          "push_open",
                          "push_click",
                          "push_received",
                          "push_error",
                          "push_canceled",
                          "new_order",
                          "cart_update",
                          "goal_conversion",
                          "product_view",
                          "whatsapp_response"
                        ]
                      }
                    },
                    "fields": {
                      "description": "Array of contact field IDs to be displayed in the webhook",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bad Request",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Bad Request"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 400
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "title": "DeleteCampaignsConflict",
                  "description": "Error schema for delete campaigns conflicts",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "campaign_sent_last_30_days",
                      "description": "Error schema for conflict when the campaign was sent in the last 30 days",
                      "properties": {
                        "errors": {
                          "properties": {
                            "campaign_sent_last_30_days": {
                              "description": "Occurs when the campaign was sent in the last 30 days",
                              "type": "string",
                              "enum": [
                                "This campaign cant be deleted since it was sent in the last 30 days"
                              ]
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "BaseConflict",
                      "properties": {
                        "type": {
                          "description": "RFC for status code definitions",
                          "type": "string",
                          "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                        },
                        "title": {
                          "description": "Error title",
                          "type": "string",
                          "enum": [
                            "Conflict"
                          ]
                        },
                        "status": {
                          "description": "Status code",
                          "type": "integer",
                          "example": 409
                        },
                        "detail": {
                          "description": "Error detail",
                          "type": "string",
                          "example": "The request could not be completed due to a conflict with the current state of the target resource"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unprocessable Entity",
                  "properties": {
                    "errors": {
                      "description": "Information about the input validation",
                      "type": "object"
                    },
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unprocessable Entity"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 422
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request POST 'api.egoiapp.com/webhooks' \\\n--header 'Apikey: <YOUR_APIKEY>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\"list_id\":\"<integer>\",\"url\":\"<string>\",\"actions\":[\"<string>\",\"<string>\"],\"webhook_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]}'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/webhooks\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"url\\\":\\\"<string>\\\",\\\"actions\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"webhook_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\",  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"url\\\":\\\"<string>\\\",\\\"actions\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"webhook_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/webhooks\")\n    .method(\"POST\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .addHeader(\"Content-Type\", \"application/json\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "var data = JSON.stringify({\"list_id\":\"<integer>\",\"url\":\"<string>\",\"actions\":[\"<string>\",\"<string>\"],\"webhook_id\":\"<integer>\",\"fields\":[\"<string>\",\"<string>\"]});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"POST\", \"api.egoiapp.com/webhooks\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\n\nxhr.send(data);"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/webhooks\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"POST\",\n    CURLOPT_POSTFIELDS =>\"{\\\"list_id\\\":\\\"<integer>\\\",\\\"url\\\":\\\"<string>\\\",\\\"actions\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"webhook_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\",\n        \"Content-Type: application/json\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"url\\\":\\\"<string>\\\",\\\"actions\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"webhook_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\"\nheaders = {\n    'Apikey': '<YOUR_APIKEY>',\n    'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/webhooks\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/webhooks\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = \"{\\\"list_id\\\":\\\"<integer>\\\",\\\"url\\\":\\\"<string>\\\",\\\"actions\\\":[\\\"<string>\\\",\\\"<string>\\\"],\\\"webhook_id\\\":\\\"<integer>\\\",\\\"fields\\\":[\\\"<string>\\\",\\\"<string>\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    },
    "/webhooks/{webhook_id}": {
      "delete": {
        "tags": [
          "Web Hooks"
        ],
        "summary": "Remove webhook",
        "description": "Remove webhook information given its ID",
        "operationId": "deleteWebhook",
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "description": "ID of the Webhook",
            "required": true,
            "allowEmptyValue": false,
            "schema": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Unauthorized",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 401
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Forbidden",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Forbidden"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server understood the request but refuses to authorize it"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Not Found",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "NotFound"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 404
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Request Timeout",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Request Timeout"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 408
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Too Many Requests",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Too Many Requests"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 429
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The user has sent too many requests in a given amount of time"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Internal Server Error",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Internal Server Error"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 500
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Service Unavailable",
                  "properties": {
                    "type": {
                      "description": "RFC for status code definitions",
                      "type": "string",
                      "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
                    },
                    "title": {
                      "description": "Error title",
                      "type": "string",
                      "enum": [
                        "Service Unavailable"
                      ]
                    },
                    "status": {
                      "description": "Status code",
                      "type": "integer",
                      "example": 503
                    },
                    "detail": {
                      "description": "Error detail",
                      "type": "string",
                      "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "Apikey": []
          }
        ],
        "x-code-samples": [
          {
            "lang": "cURL",
            "source": "curl --location --max-time 30 --request DELETE 'api.egoiapp.com/webhooks/<integer>' \\\n--header 'Apikey: <YOUR_APIKEY>'"
          },
          {
            "lang": "C#",
            "source": "var client = new RestClient(\"api.egoiapp.com/webhooks/<integer>\");\nclient.Timeout = 30;\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"Apikey\", \"<YOUR_APIKEY>\");\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);"
          },
          {
            "lang": "Java",
            "source": "OkHttpClient client = new OkHttpClient().newBuilder()\n    .setConnectTimeout(30, TimeUnit.MILLISECONDS)\n    .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n    .url(\"api.egoiapp.com/webhooks/<integer>\")\n    .method(\"DELETE\", body)\n    .addHeader(\"Apikey\", \"<YOUR_APIKEY>\")\n    .build();\nResponse response = client.newCall(request).execute();"
          },
          {
            "lang": "JavaScript",
            "source": "\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n    if(this.readyState === 4) {\n        console.log(this.responseText);\n    }\n});\n\nxhr.open(\"DELETE\", \"api.egoiapp.com/webhooks/<integer>\");\nxhr.timeout = 30;\nxhr.addEventListener(\"ontimeout\", function(e) {\n     console.log(e);\n});\nxhr.setRequestHeader(\"Apikey\", \"<YOUR_APIKEY>\");\n\nxhr.send();"
          },
          {
            "lang": "PHP",
            "source": "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => \"api.egoiapp.com/webhooks/<integer>\",\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => \"\",\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 30,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => \"DELETE\",\n    CURLOPT_HTTPHEADER => array(\n        \"Apikey: <YOUR_APIKEY>\"\n    ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
          },
          {
            "lang": "Python",
            "source": "import http.client\nimport mimetypes\nconn = http.client.HTTPSConnection(\"api.egoiapp.com\", timeout = 30)\npayload = ''\nheaders = {\n    'Apikey': '<YOUR_APIKEY>'\n}\nconn.request(\"DELETE\", \"/webhooks/<integer>\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
          },
          {
            "lang": "Ruby",
            "source": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"api.egoiapp.com/webhooks/<integer>\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nhttp.read_timeout = 1\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Apikey\"] = \"<YOUR_APIKEY>\"\n\nresponse = http.request(request)\nputs response.read_body\n"
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AutomationActions": {
        "title": "AutomationActions",
        "description": "Automation actions schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "action_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "readOnly": true,
                "example": 1
              },
              "title": {
                "description": "Action title",
                "type": "string",
                "example": "Example Action"
              },
              "action": {
                "description": "Type od action",
                "type": "string",
                "example": "addTag"
              },
              "parent_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "readOnly": true,
                "example": 1
              },
              "created_by": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "readOnly": true,
                "example": 1
              },
              "created": {
                "readOnly": true,
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "updated": {
                "readOnly": true,
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "Automation": {
        "title": "Automation",
        "description": "Automation schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "automation_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "readOnly": true,
                "example": 1
              },
              "title": {
                "description": "Automation title",
                "type": "string",
                "example": "Example Automation"
              },
              "list_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "status": {
                "description": "Automation status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "created_by": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "readOnly": true,
                "example": 1
              },
              "allow_multiple_contacts": {
                "description": "True if the automation allows multiple contacts, false otherwise",
                "type": "boolean",
                "default": true
              },
              "contact_limit": {
                "description": "Contact limit for the automation. Contact limit value (value '0' is returned if contact\n                                limit is not enabled)",
                "type": "integer",
                "minimum": 0,
                "example": 10
              },
              "created": {
                "readOnly": true,
                "allOf": [
                  {
                    "title": "date",
                    "description": "The date",
                    "type": "string",
                    "format": "date",
                    "example": "YYYY-MM-DD"
                  }
                ]
              },
              "updated": {
                "readOnly": true,
                "allOf": [
                  {
                    "title": "date",
                    "description": "The date",
                    "type": "string",
                    "format": "date",
                    "example": "YYYY-MM-DD"
                  }
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "AutomationPost": {
        "title": "AutomationPost",
        "description": "Automation schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "title": {
                "description": "Automation title",
                "type": "string",
                "example": "Example Automation"
              },
              "list_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "status": {
                "description": "Automation status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "allow_multiple_contacts": {
                "description": "True if the automation allows multiple contacts, false otherwise",
                "type": "boolean",
                "default": true
              },
              "contact_limit": {
                "description": "Contact limit for the automation. Contact limit value (value '0' is returned if contact\nlimit is not enabled)",
                "type": "integer",
                "minimum": 0,
                "example": 10
              }
            },
            "type": "object"
          }
        ]
      },
      "AutomationSystem": {
        "title": "Automation System",
        "description": "Automation system schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "title": {
                "description": "Automation System title",
                "type": "string",
                "example": "Example Automation System"
              },
              "url": {
                "description": "Automation System URL",
                "type": "string",
                "example": "https://example.com"
              },
              "type": {
                "description": "Automation system type",
                "type": "string",
                "enum": [
                  "abandoned_cart",
                  "welcome",
                  "product_viewed",
                  "price_drop",
                  "back_in_stock",
                  "cross_selling",
                  "order_status_updated",
                  "product_review"
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "AutomationSystemPost": {
        "title": "Automation SystemPost",
        "description": "Automation System schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "description": "Automation system type",
                "type": "string",
                "enum": [
                  "abandoned_cart",
                  "welcome",
                  "product_viewed",
                  "price_drop",
                  "back_in_stock",
                  "cross_selling",
                  "order_status_updated",
                  "product_review"
                ]
              },
              "domain": {
                "description": "Automation system domain",
                "type": "string",
                "example": "example.com"
              },
              "paused": {
                "description": "Automation system paused status",
                "type": "boolean",
                "example": false
              }
            },
            "type": "object"
          }
        ]
      },
      "now": {
        "title": "now",
        "description": "Send the campaign now",
        "properties": {
          "now": {
            "description": "Send the campaign now",
            "type": "string",
            "enum": [
              "now"
            ]
          }
        },
        "type": "object"
      },
      "HashcodeCampaign": {
        "title": "Hashcode Campaign",
        "description": "Hashcode campaign schema",
        "properties": {
          "campaign_hash": {
            "title": "Hash",
            "type": "string",
            "pattern": "[a-zA-Z0-9_-]*",
            "readOnly": true
          }
        },
        "type": "object"
      },
      "Campaign": {
        "title": "Campaign",
        "description": "Campaign schema",
        "properties": {
          "id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "campaign_hash": {
            "title": "Hash",
            "type": "string",
            "pattern": "[a-zA-Z0-9_-]*",
            "readOnly": true
          },
          "status": {
            "description": "Status of the campaign",
            "type": "string",
            "enum": [
              "draft",
              "canceled",
              "queued",
              "paused",
              "sending",
              "sent"
            ],
            "example": "sent"
          },
          "thumbnail": {
            "description": "Thumbnail of the campaign",
            "type": "string",
            "example": "//bo29.e-goi.com/recursos/resource_folder/listas/name_image.jpg"
          },
          "channel": {
            "description": "Channel of the campaign",
            "type": "string",
            "enum": [
              "email",
              "push",
              "sms",
              "smart_sms",
              "voice",
              "web_push"
            ],
            "example": "email"
          },
          "internal_name": {
            "description": "Internal name of the campaign",
            "type": "string",
            "example": "your internal name"
          },
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "title": {
            "description": "Subject of the campaign",
            "type": "string",
            "example": "subject of campaign"
          },
          "created_by": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "group_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "created": {
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          },
          "updated": {
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          },
          "start_date": {
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          },
          "end_date": {
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          },
          "schedule_date": {
            "properties": {
              "enabled": {
                "description": "True if the campaign was scheduled",
                "type": "boolean"
              },
              "date": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          },
          "processed_messages": {
            "description": "Total number of processed messages",
            "type": "integer",
            "minimum": 0,
            "example": 1
          },
          "automation_id": {
            "description": "The automation id of the campaign",
            "type": "integer",
            "example": 1
          }
        },
        "type": "object"
      },
      "AbstractCampaignSendRequest": {
        "title": "Send Data",
        "description": "Abstract campaign request schema",
        "required": [
          "segments"
        ],
        "properties": {
          "segments": {
            "description": "Segments where the campaign will be sent",
            "properties": {
              "normal": {
                "description": "Array of IDs of normal segments",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "auto": {
                "description": "Array of IDs of automatic segments",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "tag": {
                "description": "Array of IDs of segments of type 'tag'",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              }
            },
            "type": "object"
          },
          "notify": {
            "description": "Array of IDs of the users to notify",
            "type": "array",
            "items": {
              "type": "integer"
            }
          }
        },
        "type": "object"
      },
      "SendNone": {
        "title": "SendNone",
        "description": "Sends the campaign to the whole list",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "description": "Use this segment type to send to the whole list",
            "type": "string",
            "enum": [
              "none"
            ]
          }
        },
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        }
      },
      "SendSegment": {
        "title": "SendSegment",
        "description": "Segments where the campaign will be sent",
        "required": [
          "type",
          "data"
        ],
        "properties": {
          "type": {
            "description": "Use this segment type to send to specific segments",
            "type": "string",
            "enum": [
              "segment"
            ]
          },
          "data": {
            "description": "Array of segment IDs to send the campaign",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        }
      },
      "SendContact": {
        "title": "SendContact",
        "description": "Contact to whom the campaign will be sent",
        "required": [
          "type",
          "data"
        ],
        "properties": {
          "type": {
            "description": "Use this segment type to send to a specific contact",
            "type": "string",
            "enum": [
              "contact"
            ]
          },
          "data": {
            "description": "Contact to send the campaign",
            "type": "string"
          }
        },
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        }
      },
      "OSegmentsActionSend": {
        "title": "Campaign Segments",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "none": "#/components/schemas/SendNone",
            "contact": "#/components/schemas/SendContact",
            "segment": "#/components/schemas/SendSegment"
          }
        },
        "oneOf": [
          {
            "title": "SendNone",
            "description": "Sends the campaign to the whole list",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "description": "Use this segment type to send to the whole list",
                "type": "string",
                "enum": [
                  "none"
                ]
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          },
          {
            "title": "SendContact",
            "description": "Contact to whom the campaign will be sent",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "description": "Use this segment type to send to a specific contact",
                "type": "string",
                "enum": [
                  "contact"
                ]
              },
              "data": {
                "description": "Contact to send the campaign",
                "type": "string"
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          },
          {
            "title": "SendSegment",
            "description": "Segments where the campaign will be sent",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "description": "Use this segment type to send to specific segments",
                "type": "string",
                "enum": [
                  "segment"
                ]
              },
              "data": {
                "description": "Array of segment IDs to send the campaign",
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          }
        ]
      },
      "OSegmentsWithoutContactActionSend": {
        "title": "Campaign Segments",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "none": "#/components/schemas/SendNone",
            "segment": "#/components/schemas/SendSegment"
          }
        },
        "oneOf": [
          {
            "title": "SendNone",
            "description": "Sends the campaign to the whole list",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "description": "Use this segment type to send to the whole list",
                "type": "string",
                "enum": [
                  "none"
                ]
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          },
          {
            "title": "SendSegment",
            "description": "Segments where the campaign will be sent",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "description": "Use this segment type to send to specific segments",
                "type": "string",
                "enum": [
                  "segment"
                ]
              },
              "data": {
                "description": "Array of segment IDs to send the campaign",
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          }
        ]
      },
      "SegmentsActionSend": {
        "title": "Segments Object",
        "description": "Object of contact limit",
        "properties": {
          "segments": {
            "title": "Campaign Segments",
            "type": "object",
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "none": "#/components/schemas/SendNone",
                "contact": "#/components/schemas/SendContact",
                "segment": "#/components/schemas/SendSegment"
              }
            },
            "oneOf": [
              {
                "title": "SendNone",
                "description": "Sends the campaign to the whole list",
                "required": [
                  "type"
                ],
                "properties": {
                  "type": {
                    "description": "Use this segment type to send to the whole list",
                    "type": "string",
                    "enum": [
                      "none"
                    ]
                  }
                },
                "type": "object",
                "discriminator": {
                  "propertyName": "type"
                }
              },
              {
                "title": "SendContact",
                "description": "Contact to whom the campaign will be sent",
                "required": [
                  "type",
                  "data"
                ],
                "properties": {
                  "type": {
                    "description": "Use this segment type to send to a specific contact",
                    "type": "string",
                    "enum": [
                      "contact"
                    ]
                  },
                  "data": {
                    "description": "Contact to send the campaign",
                    "type": "string"
                  }
                },
                "type": "object",
                "discriminator": {
                  "propertyName": "type"
                }
              },
              {
                "title": "SendSegment",
                "description": "Segments where the campaign will be sent",
                "required": [
                  "type",
                  "data"
                ],
                "properties": {
                  "type": {
                    "description": "Use this segment type to send to specific segments",
                    "type": "string",
                    "enum": [
                      "segment"
                    ]
                  },
                  "data": {
                    "description": "Array of segment IDs to send the campaign",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "type": "object",
                "discriminator": {
                  "propertyName": "type"
                }
              }
            ]
          }
        },
        "type": "object"
      },
      "SegmentsWithoutContactActionSend": {
        "title": "Segments Object",
        "description": "Object of contact limit",
        "properties": {
          "segments": {
            "title": "Campaign Segments",
            "type": "object",
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "none": "#/components/schemas/SendNone",
                "segment": "#/components/schemas/SendSegment"
              }
            },
            "oneOf": [
              {
                "title": "SendNone",
                "description": "Sends the campaign to the whole list",
                "required": [
                  "type"
                ],
                "properties": {
                  "type": {
                    "description": "Use this segment type to send to the whole list",
                    "type": "string",
                    "enum": [
                      "none"
                    ]
                  }
                },
                "type": "object",
                "discriminator": {
                  "propertyName": "type"
                }
              },
              {
                "title": "SendSegment",
                "description": "Segments where the campaign will be sent",
                "required": [
                  "type",
                  "data"
                ],
                "properties": {
                  "type": {
                    "description": "Use this segment type to send to specific segments",
                    "type": "string",
                    "enum": [
                      "segment"
                    ]
                  },
                  "data": {
                    "description": "Array of segment IDs to send the campaign",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "type": "object",
                "discriminator": {
                  "propertyName": "type"
                }
              }
            ]
          }
        },
        "type": "object"
      },
      "NotifyUserIdArrayActionSend": {
        "title": "Notify Users",
        "description": "Users that will be notified",
        "properties": {
          "notify": {
            "description": "Array of IDs of the users to notify",
            "type": "array",
            "items": {
              "type": "integer"
            }
          }
        },
        "type": "object"
      },
      "LimitHourActionSend": {
        "title": "Hour limit",
        "description": "Selection of hour interval",
        "properties": {
          "limit_hour": {
            "description": "Hour limit to send the campaign",
            "properties": {
              "hour_start": {
                "description": "Hour start limit",
                "type": "string",
                "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                "example": "13:00"
              },
              "hour_end": {
                "description": "Hour end limit",
                "type": "string",
                "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                "example": "15:00"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "LimitSpeedActionSend": {
        "title": "Speed limit",
        "description": "Sending campaign speed",
        "properties": {
          "limit_speed": {
            "description": "Speed limit to send the campaign",
            "type": "integer",
            "maximum": 10,
            "minimum": 1
          }
        },
        "type": "object"
      },
      "LimitContactsPercentActionSend": {
        "title": "Limit Contacts by percent Object",
        "description": "Object of contact limit",
        "properties": {
          "type": {
            "description": "Type of limit",
            "type": "string",
            "enum": [
              "percent"
            ]
          },
          "value": {
            "description": "Percent value",
            "type": "integer",
            "maximum": 100,
            "minimum": 10
          }
        },
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        }
      },
      "LimitContactsValueActionSend": {
        "title": "Limit Contacts by absolute value Object",
        "description": "Object of contact limit",
        "properties": {
          "type": {
            "description": "Type of limit",
            "type": "string",
            "enum": [
              "value"
            ]
          },
          "value": {
            "description": "Absolute value",
            "type": "integer",
            "minimum": 10
          }
        },
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        }
      },
      "LimitContactsActionSend": {
        "title": "Limit Contacts Object",
        "description": "Object of contact limit",
        "properties": {
          "limit_contacts": {
            "title": "Limit Contacts Object",
            "description": "Object of contact limit",
            "type": "object",
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "percent": "#/components/schemas/LimitContactsPercentActionSend",
                "value": "#/components/schemas/LimitContactsValueActionSend"
              }
            },
            "example": {
              "type": "percent",
              "value": 30
            },
            "oneOf": [
              {
                "title": "Limit Contacts by percent Object",
                "description": "Object of contact limit",
                "properties": {
                  "type": {
                    "description": "Type of limit",
                    "type": "string",
                    "enum": [
                      "percent"
                    ]
                  },
                  "value": {
                    "description": "Percent value",
                    "type": "integer",
                    "maximum": 100,
                    "minimum": 10
                  }
                },
                "type": "object",
                "discriminator": {
                  "propertyName": "type"
                }
              },
              {
                "title": "Limit Contacts by absolute value Object",
                "description": "Object of contact limit",
                "properties": {
                  "type": {
                    "description": "Type of limit",
                    "type": "string",
                    "enum": [
                      "value"
                    ]
                  },
                  "value": {
                    "description": "Absolute value",
                    "type": "integer",
                    "minimum": 10
                  }
                },
                "type": "object",
                "discriminator": {
                  "propertyName": "type"
                }
              }
            ]
          }
        },
        "type": "object"
      },
      "OLimitContactsActionSend": {
        "title": "Limit Contacts Object",
        "description": "Object of contact limit",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "percent": "#/components/schemas/LimitContactsPercentActionSend",
            "value": "#/components/schemas/LimitContactsValueActionSend"
          }
        },
        "example": {
          "type": "percent",
          "value": 30
        },
        "oneOf": [
          {
            "title": "Limit Contacts by percent Object",
            "description": "Object of contact limit",
            "properties": {
              "type": {
                "description": "Type of limit",
                "type": "string",
                "enum": [
                  "percent"
                ]
              },
              "value": {
                "description": "Percent value",
                "type": "integer",
                "maximum": 100,
                "minimum": 10
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          },
          {
            "title": "Limit Contacts by absolute value Object",
            "description": "Object of contact limit",
            "properties": {
              "type": {
                "description": "Type of limit",
                "type": "string",
                "enum": [
                  "value"
                ]
              },
              "value": {
                "description": "Absolute value",
                "type": "integer",
                "minimum": 10
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          }
        ]
      },
      "DeleteCampaignsConflict": {
        "title": "DeleteCampaignsConflict",
        "description": "Error schema for delete campaigns conflicts",
        "type": "object",
        "allOf": [
          {
            "title": "campaign_sent_last_30_days",
            "description": "Error schema for conflict when the campaign was sent in the last 30 days",
            "properties": {
              "errors": {
                "properties": {
                  "campaign_sent_last_30_days": {
                    "description": "Occurs when the campaign was sent in the last 30 days",
                    "type": "string",
                    "enum": [
                      "This campaign cant be deleted since it was sent in the last 30 days"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "BaseConflict",
            "properties": {
              "type": {
                "description": "RFC for status code definitions",
                "type": "string",
                "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
              },
              "title": {
                "description": "Error title",
                "type": "string",
                "enum": [
                  "Conflict"
                ]
              },
              "status": {
                "description": "Status code",
                "type": "integer",
                "example": 409
              },
              "detail": {
                "description": "Error detail",
                "type": "string",
                "example": "The request could not be completed due to a conflict with the current state of the target resource"
              }
            },
            "type": "object"
          }
        ]
      },
      "campaign_sent_last_30_days": {
        "title": "campaign_sent_last_30_days",
        "description": "Error schema for conflict when the campaign was sent in the last 30 days",
        "properties": {
          "errors": {
            "properties": {
              "campaign_sent_last_30_days": {
                "description": "Occurs when the campaign was sent in the last 30 days",
                "type": "string",
                "enum": [
                  "This campaign cant be deleted since it was sent in the last 30 days"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "EmailCampaignCreate": {
        "title": "Email Campaign",
        "description": "Email campaign schema",
        "required": [
          "list_id",
          "internal_name",
          "content",
          "sender_id"
        ],
        "properties": {
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "internal_name": {
            "description": "Campaign internal name",
            "type": "string",
            "example": "Campaign internal name"
          },
          "subject": {
            "description": "Campaign subject. If no value is sent, defaults to 'internal_name' property value",
            "type": "string",
            "example": "Campaign subject"
          },
          "content": {
            "title": "Campaign Content",
            "type": "object",
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "html": "#/components/schemas/CampaignEmailContentHtml",
                "template": "#/components/schemas/CampaignEmailContentTemplate",
                "web_page": "#/components/schemas/CampaignEmailContentWebPage",
                "file": "#/components/schemas/CampaignEmailContentFile"
              }
            },
            "oneOf": [
              {
                "title": "Campaign Email Html",
                "required": [
                  "type",
                  "body"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "html"
                        ]
                      },
                      "body": {
                        "description": "HTML code of the campaign",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Base Content",
                    "properties": {
                      "plain_text": {
                        "description": "Plain text for the campaign",
                        "type": "string"
                      },
                      "snippet": {
                        "description": "Snippet text for the campaign",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                ]
              },
              {
                "title": "Campaign Email Template",
                "required": [
                  "type",
                  "template_id"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "template"
                        ]
                      },
                      "template_id": {
                        "description": "ID of the template for this campaign (Email builder templates are not allowed)",
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Base Content",
                    "properties": {
                      "plain_text": {
                        "description": "Plain text for the campaign",
                        "type": "string"
                      },
                      "snippet": {
                        "description": "Snippet text for the campaign",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                ]
              },
              {
                "title": "Campaign Email Web Page",
                "required": [
                  "type",
                  "url"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "web_page"
                        ]
                      },
                      "url": {
                        "description": "Campaign url",
                        "type": "string"
                      },
                      "use_page_title": {
                        "description": "True to use page title as the campaign title",
                        "type": "boolean",
                        "default": false
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Base Content",
                    "properties": {
                      "plain_text": {
                        "description": "Plain text for the campaign",
                        "type": "string"
                      },
                      "snippet": {
                        "description": "Snippet text for the campaign",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                ]
              },
              {
                "title": "Campaign Email File",
                "required": [
                  "type",
                  "file"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "file"
                        ]
                      },
                      "file": {
                        "description": "Campaign file",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Base Content",
                    "properties": {
                      "plain_text": {
                        "description": "Plain text for the campaign",
                        "type": "string"
                      },
                      "snippet": {
                        "description": "Snippet text for the campaign",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            ]
          },
          "sender_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "reply_to": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "header_footer": {
            "title": "Campaign header and footer",
            "properties": {
              "id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "header_links": {
                "description": "Ignored if provided ID is from a custom template",
                "properties": {
                  "forward": {
                    "description": "Use view forward header link",
                    "type": "boolean",
                    "default": false
                  },
                  "view_web": {
                    "description": "Use view view in web header link",
                    "type": "boolean",
                    "default": false
                  },
                  "unsubscribe": {
                    "description": "Use view unsubscribe header link",
                    "type": "boolean",
                    "default": false
                  },
                  "edit": {
                    "description": "Use view edit header link",
                    "type": "boolean",
                    "default": false
                  },
                  "social_share": {
                    "description": "Use view social share header link",
                    "type": "boolean",
                    "default": false
                  },
                  "facebook_share": {
                    "description": "Use view facebook share header link",
                    "type": "boolean",
                    "default": false
                  },
                  "twitter_share": {
                    "description": "Use view twitter share header link",
                    "type": "boolean",
                    "default": false
                  }
                },
                "type": "object"
              },
              "footer_links": {
                "description": "Ignored if provided ID is from a custom template",
                "properties": {
                  "forward": {
                    "description": "Use view forward footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "view_web": {
                    "description": "Use view view in web footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "unsubscribe": {
                    "description": "Use view unsubscribe footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "edit": {
                    "description": "Use view edit footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "social_share": {
                    "description": "Use view social share footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "facebook_share": {
                    "description": "Use view facebook share footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "twitter_share": {
                    "description": "Use view twitter share footer link",
                    "type": "boolean",
                    "default": false
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "EmailRssCampaignCreate": {
        "title": "Email Rss Campaign",
        "description": "Email rss campaign schema",
        "required": [
          "list_id",
          "internal_name",
          "content",
          "sender_id"
        ],
        "properties": {
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "internal_name": {
            "description": "Campaign internal name",
            "type": "string",
            "example": "Campaign internal name"
          },
          "subject": {
            "description": "Campaign subject. If no value is sent, defaults to 'internal_name' property value",
            "type": "string",
            "example": "Campaign subject"
          },
          "content": {
            "title": "Campaign Content",
            "type": "object",
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "html": "#/components/schemas/CampaignEmailRssContentHtml"
              }
            },
            "oneOf": [
              {
                "title": "Campaign Email Html",
                "required": [
                  "type",
                  "body"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "html"
                        ],
                        "example": "html"
                      },
                      "body": {
                        "description": "HTML code of the rss campaign",
                        "type": "string",
                        "example": "<body>{{FEEDBLOCK:https:\\/\\/example.com\\/?feed=egoi_rssfeed_gcoUFuaaBeAs4tfSY}}{{FEEDITEMS:count=1}}<div class='builder-actions-control selected'><table border='0' cellpadding='0' cellspacing='0' class='email-container' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: auto;' width='600' align='center' data-compile='true'><tbody><tr><td dir='ltr' valign='top' width='100%' bgcolor='#ffffff' style='background-color: rgb(255, 255, 255); padding: 20px;'><table border='0' cellpadding='0' cellspacing='0' class='row' width='100%' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><th class='stack-column-center columns first' valign='top' width='33.333333333333336%' style='font-weight: 400; padding-right: 8px;'><table border='0' cellpadding='0' cellspacing='0' width='100%' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td dir='ltr' style='padding: 0px;' valign='top'><table border='0' cellpadding='0' cellspacing='0' class='builder-image-control image-6cbc6cd4b0f6c869b1d651e4288caa1c' data-control='image' width='100%' data-compile='true' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td valign='top' style=''><table border='0' cellpadding='0' cellspacing='0' align='center' width='' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td style='border: 0px;'><a href='{{FEEDITEM:LINK}}'><img align='center' border='0' class='float-center fluid' style='display: block; margin: 0px auto; height: auto; max-width: 179px; border: 0px !important; outline: none !important; text-decoration: none !important;' src='{{FEEDITEM:IMAGE}}' alt='beanie-768x768' height='179' width='179'><\\/a><\\/td><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/th><th class='stack-column-center columns last' valign='top' width='66.66666666666667%' style='font-weight: 400; padding-left: 8px;'><table border='0' cellpadding='0' cellspacing='0' width='100%' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td dir='ltr' style='padding: 0px;' valign='top'><table data-control='title' width='100%' class='title-641c2ce04833885b026fd1e0f46c2973' id='641c2ce0-4833-885b-026f-d1e0f46c2973' data-compile='true' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td style=''><p style='font-family: Arial; font-size: 24px; color: rgb(0, 0, 0); line-height: 150%; text-align: left; padding-top: 0px; padding-bottom: 0px; margin: 0px;'>{{FEEDITEM:TITLE}}<\\/p><\\/td><\\/tr><\\/tbody><\\/table><table data-control='paragraph' width='100%' class='paragraph-12fc4dd322cf0a3cd43032e85db67593' id='12fc4dd3-22cf-0a3c-d430-32e85db67593' data-compile='true' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td class='undefined' style=''><p style='font-family: Arial; font-size: 16px; color: rgb(109, 109, 109); line-height: 200%; text-align: left; padding-top: 0px; padding-bottom: 0px; margin: 0px; overflow: hidden;'>{{FEEDITEM:DESCRIPTION}}<\\/p><\\/td><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/th><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/div>{{ENDFEEDITEMS}}{{ENDFEEDBLOCK}}<\\/body>"
                      },
                      "feed": {
                        "description": "Valid url for a rss feed",
                        "type": "string",
                        "example": "https://example.com/?feed=egoi_rssfeed_gcoUFuaaBeAs4tfSY"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Base Content",
                    "properties": {
                      "plain_text": {
                        "description": "Plain text for the campaign",
                        "type": "string"
                      },
                      "snippet": {
                        "description": "Snippet text for the campaign",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            ]
          },
          "sender_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "reply_to": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "header_footer": {
            "title": "Campaign header and footer",
            "properties": {
              "id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "header_links": {
                "description": "Ignored if provided ID is from a custom template",
                "properties": {
                  "forward": {
                    "description": "Use view forward header link",
                    "type": "boolean",
                    "default": false
                  },
                  "view_web": {
                    "description": "Use view view in web header link",
                    "type": "boolean",
                    "default": false
                  },
                  "unsubscribe": {
                    "description": "Use view unsubscribe header link",
                    "type": "boolean",
                    "default": false
                  },
                  "edit": {
                    "description": "Use view edit header link",
                    "type": "boolean",
                    "default": false
                  },
                  "social_share": {
                    "description": "Use view social share header link",
                    "type": "boolean",
                    "default": false
                  },
                  "facebook_share": {
                    "description": "Use view facebook share header link",
                    "type": "boolean",
                    "default": false
                  },
                  "twitter_share": {
                    "description": "Use view twitter share header link",
                    "type": "boolean",
                    "default": false
                  }
                },
                "type": "object"
              },
              "footer_links": {
                "description": "Ignored if provided ID is from a custom template",
                "properties": {
                  "forward": {
                    "description": "Use view forward footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "view_web": {
                    "description": "Use view view in web footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "unsubscribe": {
                    "description": "Use view unsubscribe footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "edit": {
                    "description": "Use view edit footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "social_share": {
                    "description": "Use view social share footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "facebook_share": {
                    "description": "Use view facebook share footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "twitter_share": {
                    "description": "Use view twitter share footer link",
                    "type": "boolean",
                    "default": false
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "CampaignEmailBaseContent": {
        "title": "Base Content",
        "properties": {
          "plain_text": {
            "description": "Plain text for the campaign",
            "type": "string"
          },
          "snippet": {
            "description": "Snippet text for the campaign",
            "type": "string"
          }
        },
        "type": "object"
      },
      "CampaignEmailContentHtml": {
        "title": "Campaign Email Html",
        "required": [
          "type",
          "body"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "html"
                ]
              },
              "body": {
                "description": "HTML code of the campaign",
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "title": "Base Content",
            "properties": {
              "plain_text": {
                "description": "Plain text for the campaign",
                "type": "string"
              },
              "snippet": {
                "description": "Snippet text for the campaign",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "CampaignEmailRssContent": {
        "title": "Campaign Content",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "html": "#/components/schemas/CampaignEmailRssContentHtml"
          }
        },
        "oneOf": [
          {
            "title": "Campaign Email Html",
            "required": [
              "type",
              "body"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "html"
                    ],
                    "example": "html"
                  },
                  "body": {
                    "description": "HTML code of the rss campaign",
                    "type": "string",
                    "example": "<body>{{FEEDBLOCK:https:\\/\\/example.com\\/?feed=egoi_rssfeed_gcoUFuaaBeAs4tfSY}}{{FEEDITEMS:count=1}}<div class='builder-actions-control selected'><table border='0' cellpadding='0' cellspacing='0' class='email-container' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: auto;' width='600' align='center' data-compile='true'><tbody><tr><td dir='ltr' valign='top' width='100%' bgcolor='#ffffff' style='background-color: rgb(255, 255, 255); padding: 20px;'><table border='0' cellpadding='0' cellspacing='0' class='row' width='100%' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><th class='stack-column-center columns first' valign='top' width='33.333333333333336%' style='font-weight: 400; padding-right: 8px;'><table border='0' cellpadding='0' cellspacing='0' width='100%' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td dir='ltr' style='padding: 0px;' valign='top'><table border='0' cellpadding='0' cellspacing='0' class='builder-image-control image-6cbc6cd4b0f6c869b1d651e4288caa1c' data-control='image' width='100%' data-compile='true' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td valign='top' style=''><table border='0' cellpadding='0' cellspacing='0' align='center' width='' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td style='border: 0px;'><a href='{{FEEDITEM:LINK}}'><img align='center' border='0' class='float-center fluid' style='display: block; margin: 0px auto; height: auto; max-width: 179px; border: 0px !important; outline: none !important; text-decoration: none !important;' src='{{FEEDITEM:IMAGE}}' alt='beanie-768x768' height='179' width='179'><\\/a><\\/td><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/th><th class='stack-column-center columns last' valign='top' width='66.66666666666667%' style='font-weight: 400; padding-left: 8px;'><table border='0' cellpadding='0' cellspacing='0' width='100%' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td dir='ltr' style='padding: 0px;' valign='top'><table data-control='title' width='100%' class='title-641c2ce04833885b026fd1e0f46c2973' id='641c2ce0-4833-885b-026f-d1e0f46c2973' data-compile='true' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td style=''><p style='font-family: Arial; font-size: 24px; color: rgb(0, 0, 0); line-height: 150%; text-align: left; padding-top: 0px; padding-bottom: 0px; margin: 0px;'>{{FEEDITEM:TITLE}}<\\/p><\\/td><\\/tr><\\/tbody><\\/table><table data-control='paragraph' width='100%' class='paragraph-12fc4dd322cf0a3cd43032e85db67593' id='12fc4dd3-22cf-0a3c-d430-32e85db67593' data-compile='true' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td class='undefined' style=''><p style='font-family: Arial; font-size: 16px; color: rgb(109, 109, 109); line-height: 200%; text-align: left; padding-top: 0px; padding-bottom: 0px; margin: 0px; overflow: hidden;'>{{FEEDITEM:DESCRIPTION}}<\\/p><\\/td><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/th><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/div>{{ENDFEEDITEMS}}{{ENDFEEDBLOCK}}<\\/body>"
                  },
                  "feed": {
                    "description": "Valid url for a rss feed",
                    "type": "string",
                    "example": "https://example.com/?feed=egoi_rssfeed_gcoUFuaaBeAs4tfSY"
                  }
                },
                "type": "object"
              },
              {
                "title": "Base Content",
                "properties": {
                  "plain_text": {
                    "description": "Plain text for the campaign",
                    "type": "string"
                  },
                  "snippet": {
                    "description": "Snippet text for the campaign",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "CampaignEmailRssContentHtml": {
        "title": "Campaign Email Html",
        "required": [
          "type",
          "body"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "html"
                ],
                "example": "html"
              },
              "body": {
                "description": "HTML code of the rss campaign",
                "type": "string",
                "example": "<body>{{FEEDBLOCK:https:\\/\\/example.com\\/?feed=egoi_rssfeed_gcoUFuaaBeAs4tfSY}}{{FEEDITEMS:count=1}}<div class='builder-actions-control selected'><table border='0' cellpadding='0' cellspacing='0' class='email-container' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: auto;' width='600' align='center' data-compile='true'><tbody><tr><td dir='ltr' valign='top' width='100%' bgcolor='#ffffff' style='background-color: rgb(255, 255, 255); padding: 20px;'><table border='0' cellpadding='0' cellspacing='0' class='row' width='100%' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><th class='stack-column-center columns first' valign='top' width='33.333333333333336%' style='font-weight: 400; padding-right: 8px;'><table border='0' cellpadding='0' cellspacing='0' width='100%' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td dir='ltr' style='padding: 0px;' valign='top'><table border='0' cellpadding='0' cellspacing='0' class='builder-image-control image-6cbc6cd4b0f6c869b1d651e4288caa1c' data-control='image' width='100%' data-compile='true' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td valign='top' style=''><table border='0' cellpadding='0' cellspacing='0' align='center' width='' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td style='border: 0px;'><a href='{{FEEDITEM:LINK}}'><img align='center' border='0' class='float-center fluid' style='display: block; margin: 0px auto; height: auto; max-width: 179px; border: 0px !important; outline: none !important; text-decoration: none !important;' src='{{FEEDITEM:IMAGE}}' alt='beanie-768x768' height='179' width='179'><\\/a><\\/td><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/th><th class='stack-column-center columns last' valign='top' width='66.66666666666667%' style='font-weight: 400; padding-left: 8px;'><table border='0' cellpadding='0' cellspacing='0' width='100%' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td dir='ltr' style='padding: 0px;' valign='top'><table data-control='title' width='100%' class='title-641c2ce04833885b026fd1e0f46c2973' id='641c2ce0-4833-885b-026f-d1e0f46c2973' data-compile='true' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td style=''><p style='font-family: Arial; font-size: 24px; color: rgb(0, 0, 0); line-height: 150%; text-align: left; padding-top: 0px; padding-bottom: 0px; margin: 0px;'>{{FEEDITEM:TITLE}}<\\/p><\\/td><\\/tr><\\/tbody><\\/table><table data-control='paragraph' width='100%' class='paragraph-12fc4dd322cf0a3cd43032e85db67593' id='12fc4dd3-22cf-0a3c-d430-32e85db67593' data-compile='true' style='border-spacing: 0px; border-collapse: collapse; table-layout: fixed; margin: 0px auto;'><tbody><tr><td class='undefined' style=''><p style='font-family: Arial; font-size: 16px; color: rgb(109, 109, 109); line-height: 200%; text-align: left; padding-top: 0px; padding-bottom: 0px; margin: 0px; overflow: hidden;'>{{FEEDITEM:DESCRIPTION}}<\\/p><\\/td><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/th><\\/tr><\\/tbody><\\/table><\\/td><\\/tr><\\/tbody><\\/table><\\/div>{{ENDFEEDITEMS}}{{ENDFEEDBLOCK}}<\\/body>"
              },
              "feed": {
                "description": "Valid url for a rss feed",
                "type": "string",
                "example": "https://example.com/?feed=egoi_rssfeed_gcoUFuaaBeAs4tfSY"
              }
            },
            "type": "object"
          },
          {
            "title": "Base Content",
            "properties": {
              "plain_text": {
                "description": "Plain text for the campaign",
                "type": "string"
              },
              "snippet": {
                "description": "Snippet text for the campaign",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "CampaignEmailContentTemplate": {
        "title": "Campaign Email Template",
        "required": [
          "type",
          "template_id"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "template"
                ]
              },
              "template_id": {
                "description": "ID of the template for this campaign (Email builder templates are not allowed)",
                "type": "integer"
              }
            },
            "type": "object"
          },
          {
            "title": "Base Content",
            "properties": {
              "plain_text": {
                "description": "Plain text for the campaign",
                "type": "string"
              },
              "snippet": {
                "description": "Snippet text for the campaign",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "CampaignEmailContentWebPage": {
        "title": "Campaign Email Web Page",
        "required": [
          "type",
          "url"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "web_page"
                ]
              },
              "url": {
                "description": "Campaign url",
                "type": "string"
              },
              "use_page_title": {
                "description": "True to use page title as the campaign title",
                "type": "boolean",
                "default": false
              }
            },
            "type": "object"
          },
          {
            "title": "Base Content",
            "properties": {
              "plain_text": {
                "description": "Plain text for the campaign",
                "type": "string"
              },
              "snippet": {
                "description": "Snippet text for the campaign",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "CampaignEmailContentFile": {
        "title": "Campaign Email File",
        "required": [
          "type",
          "file"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "file"
                ]
              },
              "file": {
                "description": "Campaign file",
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "title": "Base Content",
            "properties": {
              "plain_text": {
                "description": "Plain text for the campaign",
                "type": "string"
              },
              "snippet": {
                "description": "Snippet text for the campaign",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "CampaignEmailContent": {
        "title": "Campaign Content",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "html": "#/components/schemas/CampaignEmailContentHtml",
            "template": "#/components/schemas/CampaignEmailContentTemplate",
            "web_page": "#/components/schemas/CampaignEmailContentWebPage",
            "file": "#/components/schemas/CampaignEmailContentFile"
          }
        },
        "oneOf": [
          {
            "title": "Campaign Email Html",
            "required": [
              "type",
              "body"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "html"
                    ]
                  },
                  "body": {
                    "description": "HTML code of the campaign",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              {
                "title": "Base Content",
                "properties": {
                  "plain_text": {
                    "description": "Plain text for the campaign",
                    "type": "string"
                  },
                  "snippet": {
                    "description": "Snippet text for the campaign",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Campaign Email Template",
            "required": [
              "type",
              "template_id"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "template"
                    ]
                  },
                  "template_id": {
                    "description": "ID of the template for this campaign (Email builder templates are not allowed)",
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              {
                "title": "Base Content",
                "properties": {
                  "plain_text": {
                    "description": "Plain text for the campaign",
                    "type": "string"
                  },
                  "snippet": {
                    "description": "Snippet text for the campaign",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Campaign Email Web Page",
            "required": [
              "type",
              "url"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "web_page"
                    ]
                  },
                  "url": {
                    "description": "Campaign url",
                    "type": "string"
                  },
                  "use_page_title": {
                    "description": "True to use page title as the campaign title",
                    "type": "boolean",
                    "default": false
                  }
                },
                "type": "object"
              },
              {
                "title": "Base Content",
                "properties": {
                  "plain_text": {
                    "description": "Plain text for the campaign",
                    "type": "string"
                  },
                  "snippet": {
                    "description": "Snippet text for the campaign",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Campaign Email File",
            "required": [
              "type",
              "file"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "file"
                    ]
                  },
                  "file": {
                    "description": "Campaign file",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              {
                "title": "Base Content",
                "properties": {
                  "plain_text": {
                    "description": "Plain text for the campaign",
                    "type": "string"
                  },
                  "snippet": {
                    "description": "Snippet text for the campaign",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "EmailCampaignPatch": {
        "title": "EmailCampaignPatch",
        "description": "Email campaign schema",
        "properties": {
          "internal_name": {
            "description": "Campaign internal name",
            "type": "string",
            "example": "Campaign internal name"
          },
          "subject": {
            "description": "Campaign subject. If no value is sent, defaults to 'internal_name' property value",
            "type": "string",
            "example": "Campaign subject"
          },
          "content": {
            "title": "Campaign Email Html",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "body": {
                    "description": "HTML code of the campaign",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              {
                "title": "Base Content",
                "properties": {
                  "plain_text": {
                    "description": "Plain text for the campaign",
                    "type": "string"
                  },
                  "snippet": {
                    "description": "Snippet text for the campaign",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            ]
          },
          "sender_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "reply_to": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "header_footer": {
            "title": "Campaign header and footer",
            "properties": {
              "id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "header_links": {
                "description": "Ignored if provided ID is from a custom template",
                "properties": {
                  "forward": {
                    "description": "Use view forward header link",
                    "type": "boolean",
                    "default": false
                  },
                  "view_web": {
                    "description": "Use view view in web header link",
                    "type": "boolean",
                    "default": false
                  },
                  "unsubscribe": {
                    "description": "Use view unsubscribe header link",
                    "type": "boolean",
                    "default": false
                  },
                  "edit": {
                    "description": "Use view edit header link",
                    "type": "boolean",
                    "default": false
                  },
                  "social_share": {
                    "description": "Use view social share header link",
                    "type": "boolean",
                    "default": false
                  },
                  "facebook_share": {
                    "description": "Use view facebook share header link",
                    "type": "boolean",
                    "default": false
                  },
                  "twitter_share": {
                    "description": "Use view twitter share header link",
                    "type": "boolean",
                    "default": false
                  }
                },
                "type": "object"
              },
              "footer_links": {
                "description": "Ignored if provided ID is from a custom template",
                "properties": {
                  "forward": {
                    "description": "Use view forward footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "view_web": {
                    "description": "Use view view in web footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "unsubscribe": {
                    "description": "Use view unsubscribe footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "edit": {
                    "description": "Use view edit footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "social_share": {
                    "description": "Use view social share footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "facebook_share": {
                    "description": "Use view facebook share footer link",
                    "type": "boolean",
                    "default": false
                  },
                  "twitter_share": {
                    "description": "Use view twitter share footer link",
                    "type": "boolean",
                    "default": false
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "CampaignEmailContentHtmlPatch": {
        "title": "Campaign Email Html",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "body": {
                "description": "HTML code of the campaign",
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "title": "Base Content",
            "properties": {
              "plain_text": {
                "description": "Plain text for the campaign",
                "type": "string"
              },
              "snippet": {
                "description": "Snippet text for the campaign",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "HeaderFooter": {
        "title": "Campaign header and footer",
        "properties": {
          "id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "header_links": {
            "description": "Ignored if provided ID is from a custom template",
            "properties": {
              "forward": {
                "description": "Use view forward header link",
                "type": "boolean",
                "default": false
              },
              "view_web": {
                "description": "Use view view in web header link",
                "type": "boolean",
                "default": false
              },
              "unsubscribe": {
                "description": "Use view unsubscribe header link",
                "type": "boolean",
                "default": false
              },
              "edit": {
                "description": "Use view edit header link",
                "type": "boolean",
                "default": false
              },
              "social_share": {
                "description": "Use view social share header link",
                "type": "boolean",
                "default": false
              },
              "facebook_share": {
                "description": "Use view facebook share header link",
                "type": "boolean",
                "default": false
              },
              "twitter_share": {
                "description": "Use view twitter share header link",
                "type": "boolean",
                "default": false
              }
            },
            "type": "object"
          },
          "footer_links": {
            "description": "Ignored if provided ID is from a custom template",
            "properties": {
              "forward": {
                "description": "Use view forward footer link",
                "type": "boolean",
                "default": false
              },
              "view_web": {
                "description": "Use view view in web footer link",
                "type": "boolean",
                "default": false
              },
              "unsubscribe": {
                "description": "Use view unsubscribe footer link",
                "type": "boolean",
                "default": false
              },
              "edit": {
                "description": "Use view edit footer link",
                "type": "boolean",
                "default": false
              },
              "social_share": {
                "description": "Use view social share footer link",
                "type": "boolean",
                "default": false
              },
              "facebook_share": {
                "description": "Use view facebook share footer link",
                "type": "boolean",
                "default": false
              },
              "twitter_share": {
                "description": "Use view twitter share footer link",
                "type": "boolean",
                "default": false
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "CampaignEmailSendRequest": {
        "title": "Send Email",
        "description": "Campaign email send request schema",
        "type": "object",
        "oneOf": [
          {
            "title": "Send Email",
            "description": "Campaign email send now request schema",
            "required": [
              "list_id"
            ],
            "type": "object",
            "allOf": [
              {
                "title": "Abstract Send Email",
                "description": "Campaign email abstract schema",
                "required": [
                  "list_id",
                  "segments"
                ],
                "properties": {
                  "list_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "segments": {
                    "title": "EmailSendSegment",
                    "description": "Send segment schema for email",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "none": "#/components/schemas/SendNone",
                        "segment": "#/components/schemas/SendSegment",
                        "contact": "#/components/schemas/SendEmailContact"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "SendNone",
                        "description": "Sends the campaign to the whole list",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to the whole list",
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendSegment",
                        "description": "Segments where the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to specific segments",
                            "type": "string",
                            "enum": [
                              "segment"
                            ]
                          },
                          "data": {
                            "description": "Array of segment IDs to send the campaign",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendEmailContact",
                        "description": "Email contact to whom the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to a specific contact",
                            "type": "string",
                            "enum": [
                              "contact"
                            ]
                          },
                          "data": {
                            "description": "Contact to send the campaign",
                            "type": "string",
                            "format": "email"
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  },
                  "notify": {
                    "description": "Array of IDs of the users to notify",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "destination_field": {
                    "description": "Destination field of this campaign, which must be an email field (email or extra field id).\n                        If not sent, defaults to the general email field",
                    "type": "string"
                  },
                  "unique_contacts_only": {
                    "description": "True to send the campaign only to unique contacts",
                    "type": "boolean",
                    "default": false
                  }
                },
                "type": "object"
              },
              {
                "title": "Hour limit",
                "description": "Selection of hour interval",
                "properties": {
                  "limit_hour": {
                    "description": "Hour limit to send the campaign",
                    "properties": {
                      "hour_start": {
                        "description": "Hour start limit",
                        "type": "string",
                        "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                        "example": "13:00"
                      },
                      "hour_end": {
                        "description": "Hour end limit",
                        "type": "string",
                        "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                        "example": "15:00"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Schedule Email",
            "description": "Campaign email schedule request schema",
            "required": [
              "list_id"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "schedule_date": {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                },
                "type": "object"
              },
              {
                "title": "Abstract Send Email",
                "description": "Campaign email abstract schema",
                "required": [
                  "list_id",
                  "segments"
                ],
                "properties": {
                  "list_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  },
                  "segments": {
                    "title": "EmailSendSegment",
                    "description": "Send segment schema for email",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "none": "#/components/schemas/SendNone",
                        "segment": "#/components/schemas/SendSegment",
                        "contact": "#/components/schemas/SendEmailContact"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "SendNone",
                        "description": "Sends the campaign to the whole list",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to the whole list",
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendSegment",
                        "description": "Segments where the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to specific segments",
                            "type": "string",
                            "enum": [
                              "segment"
                            ]
                          },
                          "data": {
                            "description": "Array of segment IDs to send the campaign",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendEmailContact",
                        "description": "Email contact to whom the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to a specific contact",
                            "type": "string",
                            "enum": [
                              "contact"
                            ]
                          },
                          "data": {
                            "description": "Contact to send the campaign",
                            "type": "string",
                            "format": "email"
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  },
                  "notify": {
                    "description": "Array of IDs of the users to notify",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "destination_field": {
                    "description": "Destination field of this campaign, which must be an email field (email or extra field id).\n                        If not sent, defaults to the general email field",
                    "type": "string"
                  },
                  "unique_contacts_only": {
                    "description": "True to send the campaign only to unique contacts",
                    "type": "boolean",
                    "default": false
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "CampaignEmailScheduleRequest": {
        "title": "Schedule Email",
        "description": "Campaign email schedule request schema",
        "required": [
          "list_id"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "schedule_date": {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            },
            "type": "object"
          },
          {
            "title": "Abstract Send Email",
            "description": "Campaign email abstract schema",
            "required": [
              "list_id",
              "segments"
            ],
            "properties": {
              "list_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "segments": {
                "title": "EmailSendSegment",
                "description": "Send segment schema for email",
                "type": "object",
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "none": "#/components/schemas/SendNone",
                    "segment": "#/components/schemas/SendSegment",
                    "contact": "#/components/schemas/SendEmailContact"
                  }
                },
                "oneOf": [
                  {
                    "title": "SendNone",
                    "description": "Sends the campaign to the whole list",
                    "required": [
                      "type"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to the whole list",
                        "type": "string",
                        "enum": [
                          "none"
                        ]
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  },
                  {
                    "title": "SendSegment",
                    "description": "Segments where the campaign will be sent",
                    "required": [
                      "type",
                      "data"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to specific segments",
                        "type": "string",
                        "enum": [
                          "segment"
                        ]
                      },
                      "data": {
                        "description": "Array of segment IDs to send the campaign",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  },
                  {
                    "title": "SendEmailContact",
                    "description": "Email contact to whom the campaign will be sent",
                    "required": [
                      "type",
                      "data"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to a specific contact",
                        "type": "string",
                        "enum": [
                          "contact"
                        ]
                      },
                      "data": {
                        "description": "Contact to send the campaign",
                        "type": "string",
                        "format": "email"
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  }
                ]
              },
              "notify": {
                "description": "Array of IDs of the users to notify",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "destination_field": {
                "description": "Destination field of this campaign, which must be an email field (email or extra field id).\n                        If not sent, defaults to the general email field",
                "type": "string"
              },
              "unique_contacts_only": {
                "description": "True to send the campaign only to unique contacts",
                "type": "boolean",
                "default": false
              }
            },
            "type": "object"
          }
        ]
      },
      "CampaignEmailSendNowRequest": {
        "title": "Send Email",
        "description": "Campaign email send now request schema",
        "required": [
          "list_id"
        ],
        "type": "object",
        "allOf": [
          {
            "title": "Abstract Send Email",
            "description": "Campaign email abstract schema",
            "required": [
              "list_id",
              "segments"
            ],
            "properties": {
              "list_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "segments": {
                "title": "EmailSendSegment",
                "description": "Send segment schema for email",
                "type": "object",
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "none": "#/components/schemas/SendNone",
                    "segment": "#/components/schemas/SendSegment",
                    "contact": "#/components/schemas/SendEmailContact"
                  }
                },
                "oneOf": [
                  {
                    "title": "SendNone",
                    "description": "Sends the campaign to the whole list",
                    "required": [
                      "type"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to the whole list",
                        "type": "string",
                        "enum": [
                          "none"
                        ]
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  },
                  {
                    "title": "SendSegment",
                    "description": "Segments where the campaign will be sent",
                    "required": [
                      "type",
                      "data"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to specific segments",
                        "type": "string",
                        "enum": [
                          "segment"
                        ]
                      },
                      "data": {
                        "description": "Array of segment IDs to send the campaign",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  },
                  {
                    "title": "SendEmailContact",
                    "description": "Email contact to whom the campaign will be sent",
                    "required": [
                      "type",
                      "data"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to a specific contact",
                        "type": "string",
                        "enum": [
                          "contact"
                        ]
                      },
                      "data": {
                        "description": "Contact to send the campaign",
                        "type": "string",
                        "format": "email"
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  }
                ]
              },
              "notify": {
                "description": "Array of IDs of the users to notify",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "destination_field": {
                "description": "Destination field of this campaign, which must be an email field (email or extra field id).\n                        If not sent, defaults to the general email field",
                "type": "string"
              },
              "unique_contacts_only": {
                "description": "True to send the campaign only to unique contacts",
                "type": "boolean",
                "default": false
              }
            },
            "type": "object"
          },
          {
            "title": "Hour limit",
            "description": "Selection of hour interval",
            "properties": {
              "limit_hour": {
                "description": "Hour limit to send the campaign",
                "properties": {
                  "hour_start": {
                    "description": "Hour start limit",
                    "type": "string",
                    "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                    "example": "13:00"
                  },
                  "hour_end": {
                    "description": "Hour end limit",
                    "type": "string",
                    "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                    "example": "15:00"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        ]
      },
      "AbstractSendEmail": {
        "title": "Abstract Send Email",
        "description": "Campaign email abstract schema",
        "required": [
          "list_id",
          "segments"
        ],
        "properties": {
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "segments": {
            "title": "EmailSendSegment",
            "description": "Send segment schema for email",
            "type": "object",
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "none": "#/components/schemas/SendNone",
                "segment": "#/components/schemas/SendSegment",
                "contact": "#/components/schemas/SendEmailContact"
              }
            },
            "oneOf": [
              {
                "title": "SendNone",
                "description": "Sends the campaign to the whole list",
                "required": [
                  "type"
                ],
                "properties": {
                  "type": {
                    "description": "Use this segment type to send to the whole list",
                    "type": "string",
                    "enum": [
                      "none"
                    ]
                  }
                },
                "type": "object",
                "discriminator": {
                  "propertyName": "type"
                }
              },
              {
                "title": "SendSegment",
                "description": "Segments where the campaign will be sent",
                "required": [
                  "type",
                  "data"
                ],
                "properties": {
                  "type": {
                    "description": "Use this segment type to send to specific segments",
                    "type": "string",
                    "enum": [
                      "segment"
                    ]
                  },
                  "data": {
                    "description": "Array of segment IDs to send the campaign",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "type": "object",
                "discriminator": {
                  "propertyName": "type"
                }
              },
              {
                "title": "SendEmailContact",
                "description": "Email contact to whom the campaign will be sent",
                "required": [
                  "type",
                  "data"
                ],
                "properties": {
                  "type": {
                    "description": "Use this segment type to send to a specific contact",
                    "type": "string",
                    "enum": [
                      "contact"
                    ]
                  },
                  "data": {
                    "description": "Contact to send the campaign",
                    "type": "string",
                    "format": "email"
                  }
                },
                "type": "object",
                "discriminator": {
                  "propertyName": "type"
                }
              }
            ]
          },
          "notify": {
            "description": "Array of IDs of the users to notify",
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "destination_field": {
            "description": "Destination field of this campaign, which must be an email field (email or extra field id).\n                        If not sent, defaults to the general email field",
            "type": "string"
          },
          "unique_contacts_only": {
            "description": "True to send the campaign only to unique contacts",
            "type": "boolean",
            "default": false
          }
        },
        "type": "object"
      },
      "SendEmailContact": {
        "title": "SendEmailContact",
        "description": "Email contact to whom the campaign will be sent",
        "required": [
          "type",
          "data"
        ],
        "properties": {
          "type": {
            "description": "Use this segment type to send to a specific contact",
            "type": "string",
            "enum": [
              "contact"
            ]
          },
          "data": {
            "description": "Contact to send the campaign",
            "type": "string",
            "format": "email"
          }
        },
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        }
      },
      "EmailSendSegment": {
        "title": "EmailSendSegment",
        "description": "Send segment schema for email",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "none": "#/components/schemas/SendNone",
            "segment": "#/components/schemas/SendSegment",
            "contact": "#/components/schemas/SendEmailContact"
          }
        },
        "oneOf": [
          {
            "title": "SendNone",
            "description": "Sends the campaign to the whole list",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "description": "Use this segment type to send to the whole list",
                "type": "string",
                "enum": [
                  "none"
                ]
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          },
          {
            "title": "SendSegment",
            "description": "Segments where the campaign will be sent",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "description": "Use this segment type to send to specific segments",
                "type": "string",
                "enum": [
                  "segment"
                ]
              },
              "data": {
                "description": "Array of segment IDs to send the campaign",
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          },
          {
            "title": "SendEmailContact",
            "description": "Email contact to whom the campaign will be sent",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "description": "Use this segment type to send to a specific contact",
                "type": "string",
                "enum": [
                  "contact"
                ]
              },
              "data": {
                "description": "Contact to send the campaign",
                "type": "string",
                "format": "email"
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          }
        ]
      },
      "PushCampaignPostRequest": {
        "title": "PushCampaignPostRequest",
        "description": "Push campaign post request schema",
        "required": [
          "app_id",
          "title",
          "content"
        ],
        "properties": {
          "app_id": {
            "title": "Push App Id",
            "type": "string",
            "pattern": "[a-zA-Z0-9_-]*"
          },
          "title": {
            "description": "Push campaign subject",
            "type": "string"
          },
          "content": {
            "title": "Campaign Content",
            "type": "object",
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "text": "#/components/schemas/CampaignPushContentText",
                "template": "#/components/schemas/CampaignPushContentTemplate"
              }
            },
            "oneOf": [
              {
                "title": "CampaignPushContentText",
                "required": [
                  "type",
                  "message"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "text"
                    ]
                  },
                  "message": {
                    "description": "Push campaign message",
                    "type": "string",
                    "example": "Campaign message"
                  }
                },
                "type": "object",
                "discriminator": {
                  "propertyName": "type"
                }
              },
              {
                "title": "CampaignPushContentTemplate",
                "required": [
                  "type",
                  "template_id"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "template"
                    ]
                  },
                  "template_id": {
                    "description": "ID of the template for this campaign",
                    "type": "integer"
                  }
                },
                "type": "object",
                "discriminator": {
                  "propertyName": "type"
                }
              }
            ]
          },
          "actions": {
            "description": "Actions for push campaign",
            "properties": {
              "type": {
                "description": "Type of action",
                "type": "string",
                "enum": [
                  "url",
                  "deeplink"
                ]
              },
              "title": {
                "description": "Action title",
                "type": "string"
              },
              "link": {
                "description": "Action link (may be either URL or deeplink)",
                "type": "string"
              },
              "cancel_label": {
                "description": "Action cancel label text",
                "type": "string"
              }
            },
            "type": "object"
          },
          "geo_options": {
            "description": "Push geolocation options",
            "properties": {
              "latitude": {
                "description": "Geolocation latitude",
                "type": "integer",
                "maximum": 180,
                "minimum": -180
              },
              "longitude": {
                "description": "Geolocation longitude",
                "type": "integer",
                "maximum": 180,
                "minimum": -180
              },
              "range": {
                "description": "Geolocation range",
                "type": "integer",
                "minimum": 0
              },
              "duration": {
                "description": "Geolocation duration",
                "type": "integer",
                "minimum": 0
              }
            },
            "type": "object"
          },
          "notification_options": {
            "description": "Push notification options",
            "properties": {
              "icon": {
                "description": "Url for the icon of the notification",
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "PushCampaignPatchRequest": {
        "title": "PushCampaignPatchRequest",
        "description": "Push campaign patch request schema",
        "properties": {
          "campaign_hash": {
            "title": "Hash",
            "type": "string",
            "pattern": "[a-zA-Z0-9_-]*",
            "readOnly": true
          },
          "title": {
            "description": "Push campaign subject",
            "type": "string"
          },
          "content": {
            "description": "Campaign content",
            "properties": {
              "message": {
                "description": "Push campaign message",
                "type": "string",
                "example": "Campaign message"
              }
            },
            "type": "object"
          },
          "actions": {
            "description": "Actions for push campaign",
            "properties": {
              "type": {
                "description": "Type of action",
                "type": "string",
                "enum": [
                  "url",
                  "deeplink"
                ]
              },
              "title": {
                "description": "Action title",
                "type": "string"
              },
              "link": {
                "description": "Action link (may be either URL or deeplink)",
                "type": "string"
              },
              "cancel_label": {
                "description": "Action cancel label text",
                "type": "string"
              }
            },
            "type": "object"
          },
          "geo_options": {
            "description": "Push geolocation options",
            "properties": {
              "latitude": {
                "description": "Geolocation latitude",
                "type": "integer",
                "maximum": 180,
                "minimum": -180
              },
              "longitude": {
                "description": "Geolocation longitude",
                "type": "integer",
                "maximum": 180,
                "minimum": -180
              },
              "range": {
                "description": "Geolocation range",
                "type": "integer",
                "minimum": 0
              }
            },
            "type": "object"
          },
          "notification_options": {
            "description": "Push notification options",
            "properties": {
              "icon": {
                "description": "Url for the icon of the notification",
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "PushNotificationSoundSchemaDefault": {
        "title": "PushNotificationSoundSchemaDefault",
        "properties": {
          "type": {
            "description": "Cellphone notification sound",
            "type": "string",
            "enum": [
              "default"
            ]
          }
        },
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        }
      },
      "PushNotificationSoundSchemaNone": {
        "title": "PushNotificationSoundSchemaNone",
        "properties": {
          "type": {
            "description": "No notification sound",
            "type": "string",
            "enum": [
              "none"
            ]
          }
        },
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        }
      },
      "PushNotificationSoundSchemaUrl": {
        "title": "PushNotificationSoundSchemaUrl",
        "properties": {
          "type": {
            "description": "Custom notification sound",
            "type": "string",
            "enum": [
              "custom"
            ]
          },
          "url": {
            "description": "Notification sound url",
            "type": "string"
          }
        },
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        }
      },
      "PushNotificationSoundSchema": {
        "title": "Push Notification Sound",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "default": "#/components/schemas/PushNotificationSoundSchemaDefault",
            "none": "#/components/schemas/PushNotificationSoundSchemaNone",
            "custom": "#/components/schemas/PushNotificationSoundSchemaUrl"
          }
        },
        "oneOf": [
          {
            "title": "PushNotificationSoundSchemaDefault",
            "properties": {
              "type": {
                "description": "Cellphone notification sound",
                "type": "string",
                "enum": [
                  "default"
                ]
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          },
          {
            "title": "PushNotificationSoundSchemaNone",
            "properties": {
              "type": {
                "description": "No notification sound",
                "type": "string",
                "enum": [
                  "none"
                ]
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          },
          {
            "title": "PushNotificationSoundSchemaUrl",
            "properties": {
              "type": {
                "description": "Custom notification sound",
                "type": "string",
                "enum": [
                  "custom"
                ]
              },
              "url": {
                "description": "Notification sound url",
                "type": "string"
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          }
        ]
      },
      "CampaignPushContentText": {
        "title": "CampaignPushContentText",
        "required": [
          "type",
          "message"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "text"
            ]
          },
          "message": {
            "description": "Push campaign message",
            "type": "string",
            "example": "Campaign message"
          }
        },
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        }
      },
      "CampaignPushContentTemplate": {
        "title": "CampaignPushContentTemplate",
        "required": [
          "type",
          "template_id"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "template"
            ]
          },
          "template_id": {
            "description": "ID of the template for this campaign",
            "type": "integer"
          }
        },
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        }
      },
      "CampaignPushContent": {
        "title": "Campaign Content",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "text": "#/components/schemas/CampaignPushContentText",
            "template": "#/components/schemas/CampaignPushContentTemplate"
          }
        },
        "oneOf": [
          {
            "title": "CampaignPushContentText",
            "required": [
              "type",
              "message"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "text"
                ]
              },
              "message": {
                "description": "Push campaign message",
                "type": "string",
                "example": "Campaign message"
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          },
          {
            "title": "CampaignPushContentTemplate",
            "required": [
              "type",
              "template_id"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "template"
                ]
              },
              "template_id": {
                "description": "ID of the template for this campaign",
                "type": "integer"
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          }
        ]
      },
      "CampaignPushSendRequest": {
        "title": "Send Push",
        "description": "Campaign push send request schema",
        "type": "object",
        "oneOf": [
          {
            "title": "Send Push",
            "required": [
              "app_id",
              "segments"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "app_id": {
                    "title": "Push App Id",
                    "type": "string",
                    "pattern": "[a-zA-Z0-9_-]*"
                  }
                },
                "type": "object"
              },
              {
                "title": "Segments Object",
                "description": "Object of contact limit",
                "properties": {
                  "segments": {
                    "title": "Campaign Segments",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "none": "#/components/schemas/SendNone",
                        "segment": "#/components/schemas/SendSegment"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "SendNone",
                        "description": "Sends the campaign to the whole list",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to the whole list",
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendSegment",
                        "description": "Segments where the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to specific segments",
                            "type": "string",
                            "enum": [
                              "segment"
                            ]
                          },
                          "data": {
                            "description": "Array of segment IDs to send the campaign",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Notify Users",
                "description": "Users that will be notified",
                "properties": {
                  "notify": {
                    "description": "Array of IDs of the users to notify",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Schedule Push",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "schedule_date": {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                },
                "type": "object"
              },
              {
                "title": "Send Push",
                "required": [
                  "app_id",
                  "segments"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "app_id": {
                        "title": "Push App Id",
                        "type": "string",
                        "pattern": "[a-zA-Z0-9_-]*"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Segments Object",
                    "description": "Object of contact limit",
                    "properties": {
                      "segments": {
                        "title": "Campaign Segments",
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "none": "#/components/schemas/SendNone",
                            "segment": "#/components/schemas/SendSegment"
                          }
                        },
                        "oneOf": [
                          {
                            "title": "SendNone",
                            "description": "Sends the campaign to the whole list",
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "description": "Use this segment type to send to the whole list",
                                "type": "string",
                                "enum": [
                                  "none"
                                ]
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          },
                          {
                            "title": "SendSegment",
                            "description": "Segments where the campaign will be sent",
                            "required": [
                              "type",
                              "data"
                            ],
                            "properties": {
                              "type": {
                                "description": "Use this segment type to send to specific segments",
                                "type": "string",
                                "enum": [
                                  "segment"
                                ]
                              },
                              "data": {
                                "description": "Array of segment IDs to send the campaign",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Notify Users",
                    "description": "Users that will be notified",
                    "properties": {
                      "notify": {
                        "description": "Array of IDs of the users to notify",
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            ]
          }
        ]
      },
      "CampaignPushScheduleRequest": {
        "title": "Schedule Push",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "schedule_date": {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            },
            "type": "object"
          },
          {
            "title": "Send Push",
            "required": [
              "app_id",
              "segments"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "app_id": {
                    "title": "Push App Id",
                    "type": "string",
                    "pattern": "[a-zA-Z0-9_-]*"
                  }
                },
                "type": "object"
              },
              {
                "title": "Segments Object",
                "description": "Object of contact limit",
                "properties": {
                  "segments": {
                    "title": "Campaign Segments",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "none": "#/components/schemas/SendNone",
                        "segment": "#/components/schemas/SendSegment"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "SendNone",
                        "description": "Sends the campaign to the whole list",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to the whole list",
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendSegment",
                        "description": "Segments where the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to specific segments",
                            "type": "string",
                            "enum": [
                              "segment"
                            ]
                          },
                          "data": {
                            "description": "Array of segment IDs to send the campaign",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Notify Users",
                "description": "Users that will be notified",
                "properties": {
                  "notify": {
                    "description": "Array of IDs of the users to notify",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "SendPush": {
        "title": "Send Push",
        "required": [
          "app_id",
          "segments"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "app_id": {
                "title": "Push App Id",
                "type": "string",
                "pattern": "[a-zA-Z0-9_-]*"
              }
            },
            "type": "object"
          },
          {
            "title": "Segments Object",
            "description": "Object of contact limit",
            "properties": {
              "segments": {
                "title": "Campaign Segments",
                "type": "object",
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "none": "#/components/schemas/SendNone",
                    "segment": "#/components/schemas/SendSegment"
                  }
                },
                "oneOf": [
                  {
                    "title": "SendNone",
                    "description": "Sends the campaign to the whole list",
                    "required": [
                      "type"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to the whole list",
                        "type": "string",
                        "enum": [
                          "none"
                        ]
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  },
                  {
                    "title": "SendSegment",
                    "description": "Segments where the campaign will be sent",
                    "required": [
                      "type",
                      "data"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to specific segments",
                        "type": "string",
                        "enum": [
                          "segment"
                        ]
                      },
                      "data": {
                        "description": "Array of segment IDs to send the campaign",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  }
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Notify Users",
            "description": "Users that will be notified",
            "properties": {
              "notify": {
                "description": "Array of IDs of the users to notify",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              }
            },
            "type": "object"
          }
        ]
      },
      "SmartSmsCampaign": {
        "title": "Smart Sms Campaign",
        "required": [
          "list_id",
          "internal_name",
          "campaign_content",
          "page_content"
        ],
        "properties": {
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "internal_name": {
            "description": "Smart SMS campaign internal name",
            "type": "string",
            "example": "Internal Name"
          },
          "campaign_content": {
            "required": [
              "message"
            ],
            "properties": {
              "message": {
                "description": "Smart SMS message",
                "type": "string"
              }
            },
            "type": "object"
          },
          "page_content": {
            "title": "Campaign page content",
            "type": "object",
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "redirect": "#/components/schemas/CampaignSmartSmsRedirect",
                "import": "#/components/schemas/CampaignSmartSmsImport",
                "html": "#/components/schemas/CampaignSmartSmsHtml"
              }
            },
            "oneOf": [
              {
                "title": "Campaign smart SMS redirect",
                "required": [
                  "type",
                  "page_url"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "redirect"
                    ]
                  },
                  "page_url": {
                    "description": "Smart SMS page URL",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              {
                "title": "Campaign smart SMS import",
                "required": [
                  "type",
                  "page_url"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "redirect"
                    ]
                  },
                  "page_url": {
                    "description": "Smart SMS page URL",
                    "type": "string"
                  },
                  "page_internal_name": {
                    "description": "Smart SMS page name",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              {
                "title": "Campaign smart SMS HTML",
                "required": [
                  "type",
                  "page_html"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "html"
                    ]
                  },
                  "page_html": {
                    "description": "Smart SMS page HTML",
                    "type": "string"
                  },
                  "page_internal_name": {
                    "description": "Smart SMS page name",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            ]
          },
          "sender_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "cname_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "options": {
            "title": "Campaign Options",
            "properties": {
              "encoding": {
                "type": "string",
                "enum": [
                  "gsm",
                  "gsm_extended",
                  "unicode"
                ],
                "example": "gsm"
              },
              "max_messages": {
                "type": "integer",
                "maximum": 7,
                "minimum": 1,
                "example": 5
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "SmartSmsCampaignPatchRequest": {
        "title": "Smart Sms Campaign",
        "properties": {
          "internal_name": {
            "description": "SMS campaign internal name",
            "type": "string",
            "example": "Internal Title"
          },
          "campaign_content": {
            "properties": {
              "message": {
                "description": "Smart SMS message",
                "type": "string"
              }
            },
            "type": "object"
          },
          "page_content": {
            "properties": {
              "page_url": {
                "description": "Smart SMS page URL",
                "type": "string"
              },
              "page_html": {
                "description": "Smart SMS page HTML",
                "type": "string"
              },
              "page_internal_name": {
                "description": "Smart SMS page name. This is only applicable to campaigns with type 'import' or 'html'.\n                            Campaigns with type 'redirect' will ignore this parameter",
                "type": "string"
              }
            },
            "type": "object"
          },
          "sender_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "cname_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "options": {
            "title": "Campaign Options",
            "properties": {
              "encoding": {
                "type": "string",
                "enum": [
                  "gsm",
                  "gsm_extended",
                  "unicode"
                ],
                "example": "gsm"
              },
              "max_messages": {
                "type": "integer",
                "maximum": 7,
                "minimum": 1,
                "example": 5
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "CampaignSmartSmsPageContent": {
        "title": "Campaign page content",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "redirect": "#/components/schemas/CampaignSmartSmsRedirect",
            "import": "#/components/schemas/CampaignSmartSmsImport",
            "html": "#/components/schemas/CampaignSmartSmsHtml"
          }
        },
        "oneOf": [
          {
            "title": "Campaign smart SMS redirect",
            "required": [
              "type",
              "page_url"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "redirect"
                ]
              },
              "page_url": {
                "description": "Smart SMS page URL",
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "title": "Campaign smart SMS import",
            "required": [
              "type",
              "page_url"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "redirect"
                ]
              },
              "page_url": {
                "description": "Smart SMS page URL",
                "type": "string"
              },
              "page_internal_name": {
                "description": "Smart SMS page name",
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "title": "Campaign smart SMS HTML",
            "required": [
              "type",
              "page_html"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "html"
                ]
              },
              "page_html": {
                "description": "Smart SMS page HTML",
                "type": "string"
              },
              "page_internal_name": {
                "description": "Smart SMS page name",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "CampaignSmartSmsRedirect": {
        "title": "Campaign smart SMS redirect",
        "required": [
          "type",
          "page_url"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "redirect"
            ]
          },
          "page_url": {
            "description": "Smart SMS page URL",
            "type": "string"
          }
        },
        "type": "object"
      },
      "CampaignSmartSmsImport": {
        "title": "Campaign smart SMS import",
        "required": [
          "type",
          "page_url"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "redirect"
            ]
          },
          "page_url": {
            "description": "Smart SMS page URL",
            "type": "string"
          },
          "page_internal_name": {
            "description": "Smart SMS page name",
            "type": "string"
          }
        },
        "type": "object"
      },
      "CampaignSmartSmsHtml": {
        "title": "Campaign smart SMS HTML",
        "required": [
          "type",
          "page_html"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "html"
            ]
          },
          "page_html": {
            "description": "Smart SMS page HTML",
            "type": "string"
          },
          "page_internal_name": {
            "description": "Smart SMS page name",
            "type": "string"
          }
        },
        "type": "object"
      },
      "CampaignSmartSmsOptions": {
        "title": "Campaign Options",
        "properties": {
          "encoding": {
            "type": "string",
            "enum": [
              "gsm",
              "gsm_extended",
              "unicode"
            ],
            "example": "gsm"
          },
          "max_messages": {
            "type": "integer",
            "maximum": 7,
            "minimum": 1,
            "example": 5
          }
        },
        "type": "object"
      },
      "CampaignSmartSmsSendRequest": {
        "title": "Send Smart SMS",
        "description": "Campaign smart sms send request schema",
        "type": "object",
        "oneOf": [
          {
            "title": "Send Smart SMS",
            "required": [
              "list_id",
              "destination_field",
              "segments"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "list_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "destination_field": {
                    "description": "Smart SMS campaign destination field. Must be 'cellphone' or the other field ID of type\n                                cellphone",
                    "type": "string",
                    "example": "cellphone"
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "segments": {
                    "title": "Campaign Segments",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "none": "#/components/schemas/SendNone",
                        "contact": "#/components/schemas/SendContactCellphone",
                        "segment": "#/components/schemas/SendSegment"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "SendNone",
                        "description": "Sends the campaign to the whole list",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to the whole list",
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "Contact Cellphone",
                        "description": "Cellphone to whom the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to a specific contact",
                            "type": "string",
                            "enum": [
                              "contact"
                            ]
                          },
                          "data": {
                            "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
                            "type": "string",
                            "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
                            "example": "351-300404336"
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendSegment",
                        "description": "Segments where the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to specific segments",
                            "type": "string",
                            "enum": [
                              "segment"
                            ]
                          },
                          "data": {
                            "description": "Array of segment IDs to send the campaign",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Hour limit",
                "description": "Selection of hour interval",
                "properties": {
                  "limit_hour": {
                    "description": "Hour limit to send the campaign",
                    "properties": {
                      "hour_start": {
                        "description": "Hour start limit",
                        "type": "string",
                        "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                        "example": "13:00"
                      },
                      "hour_end": {
                        "description": "Hour end limit",
                        "type": "string",
                        "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                        "example": "15:00"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              {
                "title": "Notify Users",
                "description": "Users that will be notified",
                "properties": {
                  "notify": {
                    "description": "Array of IDs of the users to notify",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Schedule Smart SMS",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "schedule_date": {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                },
                "type": "object"
              },
              {
                "title": "Send Smart SMS",
                "required": [
                  "list_id",
                  "destination_field",
                  "segments"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "list_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      }
                    },
                    "type": "object"
                  },
                  {
                    "properties": {
                      "destination_field": {
                        "description": "Smart SMS campaign destination field. Must be 'cellphone' or the other field ID of type\n                                cellphone",
                        "type": "string",
                        "example": "cellphone"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "properties": {
                      "segments": {
                        "title": "Campaign Segments",
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "none": "#/components/schemas/SendNone",
                            "contact": "#/components/schemas/SendContactCellphone",
                            "segment": "#/components/schemas/SendSegment"
                          }
                        },
                        "oneOf": [
                          {
                            "title": "SendNone",
                            "description": "Sends the campaign to the whole list",
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "description": "Use this segment type to send to the whole list",
                                "type": "string",
                                "enum": [
                                  "none"
                                ]
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          },
                          {
                            "title": "Contact Cellphone",
                            "description": "Cellphone to whom the campaign will be sent",
                            "required": [
                              "type",
                              "data"
                            ],
                            "properties": {
                              "type": {
                                "description": "Use this segment type to send to a specific contact",
                                "type": "string",
                                "enum": [
                                  "contact"
                                ]
                              },
                              "data": {
                                "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
                                "type": "string",
                                "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
                                "example": "351-300404336"
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          },
                          {
                            "title": "SendSegment",
                            "description": "Segments where the campaign will be sent",
                            "required": [
                              "type",
                              "data"
                            ],
                            "properties": {
                              "type": {
                                "description": "Use this segment type to send to specific segments",
                                "type": "string",
                                "enum": [
                                  "segment"
                                ]
                              },
                              "data": {
                                "description": "Array of segment IDs to send the campaign",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Hour limit",
                    "description": "Selection of hour interval",
                    "properties": {
                      "limit_hour": {
                        "description": "Hour limit to send the campaign",
                        "properties": {
                          "hour_start": {
                            "description": "Hour start limit",
                            "type": "string",
                            "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                            "example": "13:00"
                          },
                          "hour_end": {
                            "description": "Hour end limit",
                            "type": "string",
                            "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                            "example": "15:00"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Notify Users",
                    "description": "Users that will be notified",
                    "properties": {
                      "notify": {
                        "description": "Array of IDs of the users to notify",
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            ]
          }
        ]
      },
      "CampaignSmartSmsScheduleRequest": {
        "title": "Schedule Smart SMS",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "schedule_date": {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            },
            "type": "object"
          },
          {
            "title": "Send Smart SMS",
            "required": [
              "list_id",
              "destination_field",
              "segments"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "list_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "destination_field": {
                    "description": "Smart SMS campaign destination field. Must be 'cellphone' or the other field ID of type\n                                cellphone",
                    "type": "string",
                    "example": "cellphone"
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "segments": {
                    "title": "Campaign Segments",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "none": "#/components/schemas/SendNone",
                        "contact": "#/components/schemas/SendContactCellphone",
                        "segment": "#/components/schemas/SendSegment"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "SendNone",
                        "description": "Sends the campaign to the whole list",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to the whole list",
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "Contact Cellphone",
                        "description": "Cellphone to whom the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to a specific contact",
                            "type": "string",
                            "enum": [
                              "contact"
                            ]
                          },
                          "data": {
                            "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
                            "type": "string",
                            "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
                            "example": "351-300404336"
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendSegment",
                        "description": "Segments where the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to specific segments",
                            "type": "string",
                            "enum": [
                              "segment"
                            ]
                          },
                          "data": {
                            "description": "Array of segment IDs to send the campaign",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Hour limit",
                "description": "Selection of hour interval",
                "properties": {
                  "limit_hour": {
                    "description": "Hour limit to send the campaign",
                    "properties": {
                      "hour_start": {
                        "description": "Hour start limit",
                        "type": "string",
                        "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                        "example": "13:00"
                      },
                      "hour_end": {
                        "description": "Hour end limit",
                        "type": "string",
                        "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                        "example": "15:00"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              {
                "title": "Notify Users",
                "description": "Users that will be notified",
                "properties": {
                  "notify": {
                    "description": "Array of IDs of the users to notify",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "SendSmartSms": {
        "title": "Send Smart SMS",
        "required": [
          "list_id",
          "destination_field",
          "segments"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "list_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "destination_field": {
                "description": "Smart SMS campaign destination field. Must be 'cellphone' or the other field ID of type\n                                cellphone",
                "type": "string",
                "example": "cellphone"
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "segments": {
                "title": "Campaign Segments",
                "type": "object",
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "none": "#/components/schemas/SendNone",
                    "contact": "#/components/schemas/SendContactCellphone",
                    "segment": "#/components/schemas/SendSegment"
                  }
                },
                "oneOf": [
                  {
                    "title": "SendNone",
                    "description": "Sends the campaign to the whole list",
                    "required": [
                      "type"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to the whole list",
                        "type": "string",
                        "enum": [
                          "none"
                        ]
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  },
                  {
                    "title": "Contact Cellphone",
                    "description": "Cellphone to whom the campaign will be sent",
                    "required": [
                      "type",
                      "data"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to a specific contact",
                        "type": "string",
                        "enum": [
                          "contact"
                        ]
                      },
                      "data": {
                        "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
                        "type": "string",
                        "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
                        "example": "351-300404336"
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  },
                  {
                    "title": "SendSegment",
                    "description": "Segments where the campaign will be sent",
                    "required": [
                      "type",
                      "data"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to specific segments",
                        "type": "string",
                        "enum": [
                          "segment"
                        ]
                      },
                      "data": {
                        "description": "Array of segment IDs to send the campaign",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  }
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Hour limit",
            "description": "Selection of hour interval",
            "properties": {
              "limit_hour": {
                "description": "Hour limit to send the campaign",
                "properties": {
                  "hour_start": {
                    "description": "Hour start limit",
                    "type": "string",
                    "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                    "example": "13:00"
                  },
                  "hour_end": {
                    "description": "Hour end limit",
                    "type": "string",
                    "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                    "example": "15:00"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "Notify Users",
            "description": "Users that will be notified",
            "properties": {
              "notify": {
                "description": "Array of IDs of the users to notify",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              }
            },
            "type": "object"
          }
        ]
      },
      "SmartSmsSegmentsActionSend": {
        "title": "Campaign Segments",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "none": "#/components/schemas/SendNone",
            "contact": "#/components/schemas/SendContactCellphone",
            "segment": "#/components/schemas/SendSegment"
          }
        },
        "oneOf": [
          {
            "title": "SendNone",
            "description": "Sends the campaign to the whole list",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "description": "Use this segment type to send to the whole list",
                "type": "string",
                "enum": [
                  "none"
                ]
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          },
          {
            "title": "Contact Cellphone",
            "description": "Cellphone to whom the campaign will be sent",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "description": "Use this segment type to send to a specific contact",
                "type": "string",
                "enum": [
                  "contact"
                ]
              },
              "data": {
                "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
                "type": "string",
                "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
                "example": "351-300404336"
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          },
          {
            "title": "SendSegment",
            "description": "Segments where the campaign will be sent",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "description": "Use this segment type to send to specific segments",
                "type": "string",
                "enum": [
                  "segment"
                ]
              },
              "data": {
                "description": "Array of segment IDs to send the campaign",
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          }
        ]
      },
      "SmsCampaign": {
        "title": "Sms Campaign",
        "required": [
          "list_id",
          "internal_name",
          "content"
        ],
        "properties": {
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "internal_name": {
            "description": "SMS campaign internal name",
            "type": "string",
            "example": "Internal Title"
          },
          "content": {
            "title": "Campaign Content",
            "type": "object",
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "text": "#/components/schemas/CampaignSmsContentText",
                "template": "#/components/schemas/CampaignSmsContentTemplate"
              }
            },
            "oneOf": [
              {
                "title": "Campaign text",
                "required": [
                  "type",
                  "message"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "text"
                    ]
                  },
                  "message": {
                    "description": "SMS campaign message",
                    "type": "string",
                    "example": "Campaign message"
                  }
                },
                "type": "object"
              },
              {
                "title": "Campaign template",
                "required": [
                  "type",
                  "template_id"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "template"
                    ]
                  },
                  "template_id": {
                    "description": "ID of the template for this campaign",
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            ]
          },
          "sender_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "options": {
            "title": "Campaign Options",
            "properties": {
              "encoding": {
                "type": "string",
                "enum": [
                  "gsm",
                  "gsm_extended",
                  "unicode"
                ],
                "example": "gsm"
              },
              "max_messages": {
                "type": "integer",
                "maximum": 7,
                "minimum": 1,
                "example": 5
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "SmsCampaignPatchRequest": {
        "title": "Sms Campaign",
        "properties": {
          "internal_name": {
            "description": "SMS campaign internal name",
            "type": "string",
            "example": "Internal Title"
          },
          "content": {
            "properties": {
              "message": {
                "description": "SMS campaign message",
                "type": "string",
                "example": "Campaign message"
              }
            },
            "type": "object"
          },
          "sender_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "options": {
            "title": "Campaign Options",
            "properties": {
              "encoding": {
                "type": "string",
                "enum": [
                  "gsm",
                  "gsm_extended",
                  "unicode"
                ],
                "example": "gsm"
              },
              "max_messages": {
                "type": "integer",
                "maximum": 7,
                "minimum": 1,
                "example": 5
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "CampaignSmsContentText": {
        "title": "Campaign text",
        "required": [
          "type",
          "message"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "text"
            ]
          },
          "message": {
            "description": "SMS campaign message",
            "type": "string",
            "example": "Campaign message"
          }
        },
        "type": "object"
      },
      "CampaignSmsContentTemplate": {
        "title": "Campaign template",
        "required": [
          "type",
          "template_id"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "template"
            ]
          },
          "template_id": {
            "description": "ID of the template for this campaign",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "CampaignSmsContent": {
        "title": "Campaign Content",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "text": "#/components/schemas/CampaignSmsContentText",
            "template": "#/components/schemas/CampaignSmsContentTemplate"
          }
        },
        "oneOf": [
          {
            "title": "Campaign text",
            "required": [
              "type",
              "message"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "text"
                ]
              },
              "message": {
                "description": "SMS campaign message",
                "type": "string",
                "example": "Campaign message"
              }
            },
            "type": "object"
          },
          {
            "title": "Campaign template",
            "required": [
              "type",
              "template_id"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "template"
                ]
              },
              "template_id": {
                "description": "ID of the template for this campaign",
                "type": "integer"
              }
            },
            "type": "object"
          }
        ]
      },
      "CampaignSmsOptions": {
        "title": "Campaign Options",
        "properties": {
          "encoding": {
            "type": "string",
            "enum": [
              "gsm",
              "gsm_extended",
              "unicode"
            ],
            "example": "gsm"
          },
          "max_messages": {
            "type": "integer",
            "maximum": 7,
            "minimum": 1,
            "example": 5
          }
        },
        "type": "object"
      },
      "CampaignSmsSendRequest": {
        "title": "Send SMS",
        "description": "Campaign sms send request schema",
        "type": "object",
        "oneOf": [
          {
            "title": "Send SMS",
            "required": [
              "list_id",
              "destination_field",
              "segments"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "list_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "destination_field": {
                    "description": "SMS campaign destination field. Must be 'cellphone' or the other field ID of type\n                                cellphone",
                    "type": "string",
                    "example": "cellphone"
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "segments": {
                    "title": "Campaign Segments",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "none": "#/components/schemas/SendNone",
                        "contact": "#/components/schemas/SendContactCellphone",
                        "segment": "#/components/schemas/SendSegment"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "SendNone",
                        "description": "Sends the campaign to the whole list",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to the whole list",
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "Contact Cellphone",
                        "description": "Cellphone to whom the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to a specific contact",
                            "type": "string",
                            "enum": [
                              "contact"
                            ]
                          },
                          "data": {
                            "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
                            "type": "string",
                            "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
                            "example": "351-300404336"
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendSegment",
                        "description": "Segments where the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to specific segments",
                            "type": "string",
                            "enum": [
                              "segment"
                            ]
                          },
                          "data": {
                            "description": "Array of segment IDs to send the campaign",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Notify Users",
                "description": "Users that will be notified",
                "properties": {
                  "notify": {
                    "description": "Array of IDs of the users to notify",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Schedule SMS",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "schedule_date": {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                },
                "type": "object"
              },
              {
                "title": "Send SMS",
                "required": [
                  "list_id",
                  "destination_field",
                  "segments"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "list_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      }
                    },
                    "type": "object"
                  },
                  {
                    "properties": {
                      "destination_field": {
                        "description": "SMS campaign destination field. Must be 'cellphone' or the other field ID of type\n                                cellphone",
                        "type": "string",
                        "example": "cellphone"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "properties": {
                      "segments": {
                        "title": "Campaign Segments",
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "none": "#/components/schemas/SendNone",
                            "contact": "#/components/schemas/SendContactCellphone",
                            "segment": "#/components/schemas/SendSegment"
                          }
                        },
                        "oneOf": [
                          {
                            "title": "SendNone",
                            "description": "Sends the campaign to the whole list",
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "description": "Use this segment type to send to the whole list",
                                "type": "string",
                                "enum": [
                                  "none"
                                ]
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          },
                          {
                            "title": "Contact Cellphone",
                            "description": "Cellphone to whom the campaign will be sent",
                            "required": [
                              "type",
                              "data"
                            ],
                            "properties": {
                              "type": {
                                "description": "Use this segment type to send to a specific contact",
                                "type": "string",
                                "enum": [
                                  "contact"
                                ]
                              },
                              "data": {
                                "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
                                "type": "string",
                                "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
                                "example": "351-300404336"
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          },
                          {
                            "title": "SendSegment",
                            "description": "Segments where the campaign will be sent",
                            "required": [
                              "type",
                              "data"
                            ],
                            "properties": {
                              "type": {
                                "description": "Use this segment type to send to specific segments",
                                "type": "string",
                                "enum": [
                                  "segment"
                                ]
                              },
                              "data": {
                                "description": "Array of segment IDs to send the campaign",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Notify Users",
                    "description": "Users that will be notified",
                    "properties": {
                      "notify": {
                        "description": "Array of IDs of the users to notify",
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            ]
          }
        ]
      },
      "CampaignSmsScheduleRequest": {
        "title": "Schedule SMS",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "schedule_date": {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            },
            "type": "object"
          },
          {
            "title": "Send SMS",
            "required": [
              "list_id",
              "destination_field",
              "segments"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "list_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "destination_field": {
                    "description": "SMS campaign destination field. Must be 'cellphone' or the other field ID of type\n                                cellphone",
                    "type": "string",
                    "example": "cellphone"
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "segments": {
                    "title": "Campaign Segments",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "none": "#/components/schemas/SendNone",
                        "contact": "#/components/schemas/SendContactCellphone",
                        "segment": "#/components/schemas/SendSegment"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "SendNone",
                        "description": "Sends the campaign to the whole list",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to the whole list",
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "Contact Cellphone",
                        "description": "Cellphone to whom the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to a specific contact",
                            "type": "string",
                            "enum": [
                              "contact"
                            ]
                          },
                          "data": {
                            "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
                            "type": "string",
                            "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
                            "example": "351-300404336"
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendSegment",
                        "description": "Segments where the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to specific segments",
                            "type": "string",
                            "enum": [
                              "segment"
                            ]
                          },
                          "data": {
                            "description": "Array of segment IDs to send the campaign",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Notify Users",
                "description": "Users that will be notified",
                "properties": {
                  "notify": {
                    "description": "Array of IDs of the users to notify",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "SendSms": {
        "title": "Send SMS",
        "required": [
          "list_id",
          "destination_field",
          "segments"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "list_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "destination_field": {
                "description": "SMS campaign destination field. Must be 'cellphone' or the other field ID of type\n                                cellphone",
                "type": "string",
                "example": "cellphone"
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "segments": {
                "title": "Campaign Segments",
                "type": "object",
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "none": "#/components/schemas/SendNone",
                    "contact": "#/components/schemas/SendContactCellphone",
                    "segment": "#/components/schemas/SendSegment"
                  }
                },
                "oneOf": [
                  {
                    "title": "SendNone",
                    "description": "Sends the campaign to the whole list",
                    "required": [
                      "type"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to the whole list",
                        "type": "string",
                        "enum": [
                          "none"
                        ]
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  },
                  {
                    "title": "Contact Cellphone",
                    "description": "Cellphone to whom the campaign will be sent",
                    "required": [
                      "type",
                      "data"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to a specific contact",
                        "type": "string",
                        "enum": [
                          "contact"
                        ]
                      },
                      "data": {
                        "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
                        "type": "string",
                        "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
                        "example": "351-300404336"
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  },
                  {
                    "title": "SendSegment",
                    "description": "Segments where the campaign will be sent",
                    "required": [
                      "type",
                      "data"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to specific segments",
                        "type": "string",
                        "enum": [
                          "segment"
                        ]
                      },
                      "data": {
                        "description": "Array of segment IDs to send the campaign",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  }
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Notify Users",
            "description": "Users that will be notified",
            "properties": {
              "notify": {
                "description": "Array of IDs of the users to notify",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              }
            },
            "type": "object"
          }
        ]
      },
      "SmsSegmentsActionSend": {
        "title": "Campaign Segments",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "none": "#/components/schemas/SendNone",
            "contact": "#/components/schemas/SendContactCellphone",
            "segment": "#/components/schemas/SendSegment"
          }
        },
        "oneOf": [
          {
            "title": "SendNone",
            "description": "Sends the campaign to the whole list",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "description": "Use this segment type to send to the whole list",
                "type": "string",
                "enum": [
                  "none"
                ]
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          },
          {
            "title": "Contact Cellphone",
            "description": "Cellphone to whom the campaign will be sent",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "description": "Use this segment type to send to a specific contact",
                "type": "string",
                "enum": [
                  "contact"
                ]
              },
              "data": {
                "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
                "type": "string",
                "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
                "example": "351-300404336"
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          },
          {
            "title": "SendSegment",
            "description": "Segments where the campaign will be sent",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "description": "Use this segment type to send to specific segments",
                "type": "string",
                "enum": [
                  "segment"
                ]
              },
              "data": {
                "description": "Array of segment IDs to send the campaign",
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "type": "object",
            "discriminator": {
              "propertyName": "type"
            }
          }
        ]
      },
      "SendContactCellphone": {
        "title": "Contact Cellphone",
        "description": "Cellphone to whom the campaign will be sent",
        "required": [
          "type",
          "data"
        ],
        "properties": {
          "type": {
            "description": "Use this segment type to send to a specific contact",
            "type": "string",
            "enum": [
              "contact"
            ]
          },
          "data": {
            "description": "Contact cellphone.  A string containing a phone/cellphone number (country code is required);\n                        e. g. '351-300404336'",
            "type": "string",
            "pattern": "^[1-9]{1,4}\\-[0-9]{3,14}$",
            "example": "351-300404336"
          }
        },
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        }
      },
      "VoiceCampaign": {
        "title": "Voice Campaign",
        "description": "Voice campaign schema",
        "required": [
          "list_id",
          "internal_name",
          "content",
          "sender_id"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "internal_name": {
                "description": "Voice campaign internal name",
                "type": "string"
              },
              "list_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "group_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "content": {
                "title": "Content",
                "description": "Content schema",
                "type": "object",
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "none": "#/components/schemas/ContentVoiceAudio",
                    "segment": "#/components/schemas/ContentVoiceTemplate"
                  }
                },
                "example": {
                  "type": "template_id",
                  "template_id": 1
                },
                "oneOf": [
                  {
                    "description": "Audio schema",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "audio"
                        ],
                        "example": "audio"
                      },
                      "audio": {
                        "description": "Voice campaign audio",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "description": "Template_id schema",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "template_id"
                        ],
                        "example": "template_id"
                      },
                      "template_id": {
                        "description": "Voice campaign template_id",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                ]
              },
              "sender_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              }
            },
            "type": "object"
          }
        ]
      },
      "ContentVoice": {
        "title": "Content",
        "description": "Content schema",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "none": "#/components/schemas/ContentVoiceAudio",
            "segment": "#/components/schemas/ContentVoiceTemplate"
          }
        },
        "example": {
          "type": "template_id",
          "template_id": 1
        },
        "oneOf": [
          {
            "description": "Audio schema",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "audio"
                ],
                "example": "audio"
              },
              "audio": {
                "description": "Voice campaign audio",
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "description": "Template_id schema",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "template_id"
                ],
                "example": "template_id"
              },
              "template_id": {
                "description": "Voice campaign template_id",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "ContentVoiceAudio": {
        "description": "Audio schema",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "audio"
            ],
            "example": "audio"
          },
          "audio": {
            "description": "Voice campaign audio",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ContentVoiceTemplate": {
        "description": "Template_id schema",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "template_id"
            ],
            "example": "template_id"
          },
          "template_id": {
            "description": "Voice campaign template_id",
            "type": "string"
          }
        },
        "type": "object"
      },
      "VoicePatchCampaign": {
        "title": "Voice Campaign",
        "description": "Voice campaign schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "internal_name": {
                "description": "Voice campaign internal name",
                "type": "string"
              },
              "group_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "message": {
                "title": "Content",
                "description": "Content schema",
                "properties": {
                  "audio": {
                    "description": "Voice campaign audio",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "sender_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              }
            },
            "type": "object"
          }
        ]
      },
      "ContentVoicePatch": {
        "title": "Content",
        "description": "Content schema",
        "properties": {
          "audio": {
            "description": "Voice campaign audio",
            "type": "string"
          }
        },
        "type": "object"
      },
      "CampaignVoiceSendRequest": {
        "title": "Send Voice",
        "description": "Campaign voice send request schema",
        "type": "object",
        "oneOf": [
          {
            "title": "Send Voice",
            "description": "Campaign voice abstract schema",
            "required": [
              "segments",
              "list_id",
              "destination_field"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "list_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "destination_field": {
                    "description": "Destination field of this campaign",
                    "type": "string",
                    "enum": [
                      "phone",
                      "cellphone",
                      "phone_failsafe_cellphone",
                      "cellphone_failsafe_phone",
                      "cellphone_phone"
                    ]
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "unique_contacts_only": {
                    "description": "True to send the campaign only to unique contacts",
                    "type": "boolean",
                    "default": false
                  }
                },
                "type": "object"
              },
              {
                "title": "Segments Object",
                "description": "Object of contact limit",
                "properties": {
                  "segments": {
                    "title": "Campaign Segments",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "none": "#/components/schemas/SendNone",
                        "contact": "#/components/schemas/SendContact",
                        "segment": "#/components/schemas/SendSegment"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "SendNone",
                        "description": "Sends the campaign to the whole list",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to the whole list",
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendContact",
                        "description": "Contact to whom the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to a specific contact",
                            "type": "string",
                            "enum": [
                              "contact"
                            ]
                          },
                          "data": {
                            "description": "Contact to send the campaign",
                            "type": "string"
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendSegment",
                        "description": "Segments where the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to specific segments",
                            "type": "string",
                            "enum": [
                              "segment"
                            ]
                          },
                          "data": {
                            "description": "Array of segment IDs to send the campaign",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Notify Users",
                "description": "Users that will be notified",
                "properties": {
                  "notify": {
                    "description": "Array of IDs of the users to notify",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  }
                },
                "type": "object"
              },
              {
                "title": "Limit Contacts Object",
                "description": "Object of contact limit",
                "properties": {
                  "limit_contacts": {
                    "title": "Limit Contacts Object",
                    "description": "Object of contact limit",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "percent": "#/components/schemas/LimitContactsPercentActionSend",
                        "value": "#/components/schemas/LimitContactsValueActionSend"
                      }
                    },
                    "example": {
                      "type": "percent",
                      "value": 30
                    },
                    "oneOf": [
                      {
                        "title": "Limit Contacts by percent Object",
                        "description": "Object of contact limit",
                        "properties": {
                          "type": {
                            "description": "Type of limit",
                            "type": "string",
                            "enum": [
                              "percent"
                            ]
                          },
                          "value": {
                            "description": "Percent value",
                            "type": "integer",
                            "maximum": 100,
                            "minimum": 10
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "Limit Contacts by absolute value Object",
                        "description": "Object of contact limit",
                        "properties": {
                          "type": {
                            "description": "Type of limit",
                            "type": "string",
                            "enum": [
                              "value"
                            ]
                          },
                          "value": {
                            "description": "Absolute value",
                            "type": "integer",
                            "minimum": 10
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Hour limit",
                "description": "Selection of hour interval",
                "properties": {
                  "limit_hour": {
                    "description": "Hour limit to send the campaign",
                    "properties": {
                      "hour_start": {
                        "description": "Hour start limit",
                        "type": "string",
                        "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                        "example": "13:00"
                      },
                      "hour_end": {
                        "description": "Hour end limit",
                        "type": "string",
                        "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                        "example": "15:00"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              {
                "title": "Speed limit",
                "description": "Sending campaign speed",
                "properties": {
                  "limit_speed": {
                    "description": "Speed limit to send the campaign",
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Schedule Voice",
            "description": "Campaign voice schedule request schema",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "schedule_date": {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                },
                "type": "object"
              },
              {
                "title": "Send Voice",
                "description": "Campaign voice abstract schema",
                "required": [
                  "segments",
                  "list_id",
                  "destination_field"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "list_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      }
                    },
                    "type": "object"
                  },
                  {
                    "properties": {
                      "destination_field": {
                        "description": "Destination field of this campaign",
                        "type": "string",
                        "enum": [
                          "phone",
                          "cellphone",
                          "phone_failsafe_cellphone",
                          "cellphone_failsafe_phone",
                          "cellphone_phone"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  {
                    "properties": {
                      "unique_contacts_only": {
                        "description": "True to send the campaign only to unique contacts",
                        "type": "boolean",
                        "default": false
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Segments Object",
                    "description": "Object of contact limit",
                    "properties": {
                      "segments": {
                        "title": "Campaign Segments",
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "none": "#/components/schemas/SendNone",
                            "contact": "#/components/schemas/SendContact",
                            "segment": "#/components/schemas/SendSegment"
                          }
                        },
                        "oneOf": [
                          {
                            "title": "SendNone",
                            "description": "Sends the campaign to the whole list",
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "description": "Use this segment type to send to the whole list",
                                "type": "string",
                                "enum": [
                                  "none"
                                ]
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          },
                          {
                            "title": "SendContact",
                            "description": "Contact to whom the campaign will be sent",
                            "required": [
                              "type",
                              "data"
                            ],
                            "properties": {
                              "type": {
                                "description": "Use this segment type to send to a specific contact",
                                "type": "string",
                                "enum": [
                                  "contact"
                                ]
                              },
                              "data": {
                                "description": "Contact to send the campaign",
                                "type": "string"
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          },
                          {
                            "title": "SendSegment",
                            "description": "Segments where the campaign will be sent",
                            "required": [
                              "type",
                              "data"
                            ],
                            "properties": {
                              "type": {
                                "description": "Use this segment type to send to specific segments",
                                "type": "string",
                                "enum": [
                                  "segment"
                                ]
                              },
                              "data": {
                                "description": "Array of segment IDs to send the campaign",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Notify Users",
                    "description": "Users that will be notified",
                    "properties": {
                      "notify": {
                        "description": "Array of IDs of the users to notify",
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Limit Contacts Object",
                    "description": "Object of contact limit",
                    "properties": {
                      "limit_contacts": {
                        "title": "Limit Contacts Object",
                        "description": "Object of contact limit",
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "percent": "#/components/schemas/LimitContactsPercentActionSend",
                            "value": "#/components/schemas/LimitContactsValueActionSend"
                          }
                        },
                        "example": {
                          "type": "percent",
                          "value": 30
                        },
                        "oneOf": [
                          {
                            "title": "Limit Contacts by percent Object",
                            "description": "Object of contact limit",
                            "properties": {
                              "type": {
                                "description": "Type of limit",
                                "type": "string",
                                "enum": [
                                  "percent"
                                ]
                              },
                              "value": {
                                "description": "Percent value",
                                "type": "integer",
                                "maximum": 100,
                                "minimum": 10
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          },
                          {
                            "title": "Limit Contacts by absolute value Object",
                            "description": "Object of contact limit",
                            "properties": {
                              "type": {
                                "description": "Type of limit",
                                "type": "string",
                                "enum": [
                                  "value"
                                ]
                              },
                              "value": {
                                "description": "Absolute value",
                                "type": "integer",
                                "minimum": 10
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Hour limit",
                    "description": "Selection of hour interval",
                    "properties": {
                      "limit_hour": {
                        "description": "Hour limit to send the campaign",
                        "properties": {
                          "hour_start": {
                            "description": "Hour start limit",
                            "type": "string",
                            "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                            "example": "13:00"
                          },
                          "hour_end": {
                            "description": "Hour end limit",
                            "type": "string",
                            "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                            "example": "15:00"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Speed limit",
                    "description": "Sending campaign speed",
                    "properties": {
                      "limit_speed": {
                        "description": "Speed limit to send the campaign",
                        "type": "integer",
                        "maximum": 10,
                        "minimum": 1
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            ]
          }
        ]
      },
      "CampaignVoiceScheduleRequest": {
        "title": "Schedule Voice",
        "description": "Campaign voice schedule request schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "schedule_date": {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            },
            "type": "object"
          },
          {
            "title": "Send Voice",
            "description": "Campaign voice abstract schema",
            "required": [
              "segments",
              "list_id",
              "destination_field"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "list_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "destination_field": {
                    "description": "Destination field of this campaign",
                    "type": "string",
                    "enum": [
                      "phone",
                      "cellphone",
                      "phone_failsafe_cellphone",
                      "cellphone_failsafe_phone",
                      "cellphone_phone"
                    ]
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "unique_contacts_only": {
                    "description": "True to send the campaign only to unique contacts",
                    "type": "boolean",
                    "default": false
                  }
                },
                "type": "object"
              },
              {
                "title": "Segments Object",
                "description": "Object of contact limit",
                "properties": {
                  "segments": {
                    "title": "Campaign Segments",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "none": "#/components/schemas/SendNone",
                        "contact": "#/components/schemas/SendContact",
                        "segment": "#/components/schemas/SendSegment"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "SendNone",
                        "description": "Sends the campaign to the whole list",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to the whole list",
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendContact",
                        "description": "Contact to whom the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to a specific contact",
                            "type": "string",
                            "enum": [
                              "contact"
                            ]
                          },
                          "data": {
                            "description": "Contact to send the campaign",
                            "type": "string"
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendSegment",
                        "description": "Segments where the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to specific segments",
                            "type": "string",
                            "enum": [
                              "segment"
                            ]
                          },
                          "data": {
                            "description": "Array of segment IDs to send the campaign",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Notify Users",
                "description": "Users that will be notified",
                "properties": {
                  "notify": {
                    "description": "Array of IDs of the users to notify",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  }
                },
                "type": "object"
              },
              {
                "title": "Limit Contacts Object",
                "description": "Object of contact limit",
                "properties": {
                  "limit_contacts": {
                    "title": "Limit Contacts Object",
                    "description": "Object of contact limit",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "percent": "#/components/schemas/LimitContactsPercentActionSend",
                        "value": "#/components/schemas/LimitContactsValueActionSend"
                      }
                    },
                    "example": {
                      "type": "percent",
                      "value": 30
                    },
                    "oneOf": [
                      {
                        "title": "Limit Contacts by percent Object",
                        "description": "Object of contact limit",
                        "properties": {
                          "type": {
                            "description": "Type of limit",
                            "type": "string",
                            "enum": [
                              "percent"
                            ]
                          },
                          "value": {
                            "description": "Percent value",
                            "type": "integer",
                            "maximum": 100,
                            "minimum": 10
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "Limit Contacts by absolute value Object",
                        "description": "Object of contact limit",
                        "properties": {
                          "type": {
                            "description": "Type of limit",
                            "type": "string",
                            "enum": [
                              "value"
                            ]
                          },
                          "value": {
                            "description": "Absolute value",
                            "type": "integer",
                            "minimum": 10
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Hour limit",
                "description": "Selection of hour interval",
                "properties": {
                  "limit_hour": {
                    "description": "Hour limit to send the campaign",
                    "properties": {
                      "hour_start": {
                        "description": "Hour start limit",
                        "type": "string",
                        "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                        "example": "13:00"
                      },
                      "hour_end": {
                        "description": "Hour end limit",
                        "type": "string",
                        "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                        "example": "15:00"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              {
                "title": "Speed limit",
                "description": "Sending campaign speed",
                "properties": {
                  "limit_speed": {
                    "description": "Speed limit to send the campaign",
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "AbstractSendVoice": {
        "title": "Send Voice",
        "description": "Campaign voice abstract schema",
        "required": [
          "segments",
          "list_id",
          "destination_field"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "list_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "destination_field": {
                "description": "Destination field of this campaign",
                "type": "string",
                "enum": [
                  "phone",
                  "cellphone",
                  "phone_failsafe_cellphone",
                  "cellphone_failsafe_phone",
                  "cellphone_phone"
                ]
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "unique_contacts_only": {
                "description": "True to send the campaign only to unique contacts",
                "type": "boolean",
                "default": false
              }
            },
            "type": "object"
          },
          {
            "title": "Segments Object",
            "description": "Object of contact limit",
            "properties": {
              "segments": {
                "title": "Campaign Segments",
                "type": "object",
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "none": "#/components/schemas/SendNone",
                    "contact": "#/components/schemas/SendContact",
                    "segment": "#/components/schemas/SendSegment"
                  }
                },
                "oneOf": [
                  {
                    "title": "SendNone",
                    "description": "Sends the campaign to the whole list",
                    "required": [
                      "type"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to the whole list",
                        "type": "string",
                        "enum": [
                          "none"
                        ]
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  },
                  {
                    "title": "SendContact",
                    "description": "Contact to whom the campaign will be sent",
                    "required": [
                      "type",
                      "data"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to a specific contact",
                        "type": "string",
                        "enum": [
                          "contact"
                        ]
                      },
                      "data": {
                        "description": "Contact to send the campaign",
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  },
                  {
                    "title": "SendSegment",
                    "description": "Segments where the campaign will be sent",
                    "required": [
                      "type",
                      "data"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to specific segments",
                        "type": "string",
                        "enum": [
                          "segment"
                        ]
                      },
                      "data": {
                        "description": "Array of segment IDs to send the campaign",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  }
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Notify Users",
            "description": "Users that will be notified",
            "properties": {
              "notify": {
                "description": "Array of IDs of the users to notify",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              }
            },
            "type": "object"
          },
          {
            "title": "Limit Contacts Object",
            "description": "Object of contact limit",
            "properties": {
              "limit_contacts": {
                "title": "Limit Contacts Object",
                "description": "Object of contact limit",
                "type": "object",
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "percent": "#/components/schemas/LimitContactsPercentActionSend",
                    "value": "#/components/schemas/LimitContactsValueActionSend"
                  }
                },
                "example": {
                  "type": "percent",
                  "value": 30
                },
                "oneOf": [
                  {
                    "title": "Limit Contacts by percent Object",
                    "description": "Object of contact limit",
                    "properties": {
                      "type": {
                        "description": "Type of limit",
                        "type": "string",
                        "enum": [
                          "percent"
                        ]
                      },
                      "value": {
                        "description": "Percent value",
                        "type": "integer",
                        "maximum": 100,
                        "minimum": 10
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  },
                  {
                    "title": "Limit Contacts by absolute value Object",
                    "description": "Object of contact limit",
                    "properties": {
                      "type": {
                        "description": "Type of limit",
                        "type": "string",
                        "enum": [
                          "value"
                        ]
                      },
                      "value": {
                        "description": "Absolute value",
                        "type": "integer",
                        "minimum": 10
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  }
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Hour limit",
            "description": "Selection of hour interval",
            "properties": {
              "limit_hour": {
                "description": "Hour limit to send the campaign",
                "properties": {
                  "hour_start": {
                    "description": "Hour start limit",
                    "type": "string",
                    "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                    "example": "13:00"
                  },
                  "hour_end": {
                    "description": "Hour end limit",
                    "type": "string",
                    "pattern": "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
                    "example": "15:00"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "Speed limit",
            "description": "Sending campaign speed",
            "properties": {
              "limit_speed": {
                "description": "Speed limit to send the campaign",
                "type": "integer",
                "maximum": 10,
                "minimum": 1
              }
            },
            "type": "object"
          }
        ]
      },
      "WebPushCampaign": {
        "title": "Webpush Campaign",
        "required": [
          "site_id",
          "internal_name",
          "content"
        ],
        "properties": {
          "site_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "internal_name": {
            "description": "Webpush campaign internal title",
            "type": "string"
          },
          "content": {
            "title": "Campaign Content",
            "required": [
              "title",
              "message",
              "link"
            ],
            "type": "object",
            "allOf": [
              {
                "title": "Campaign Content",
                "properties": {
                  "title": {
                    "description": "Webpush campaign title",
                    "type": "string"
                  },
                  "message": {
                    "description": "Campaign message",
                    "type": "string",
                    "example": "Campaign message"
                  },
                  "link": {
                    "description": "Webpush link",
                    "type": "string"
                  },
                  "icon": {
                    "description": "URL of Webpush campaign icon (up to 144x144 pixels)",
                    "type": "string"
                  },
                  "image": {
                    "description": "URL of Webpush campaign image (up to 360x180 pixels)",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            ]
          },
          "actions": {
            "title": "Webpush actions",
            "type": "array",
            "items": {
              "properties": {
                "title": {
                  "description": "Webpush action title",
                  "type": "string"
                },
                "link": {
                  "description": "Webpush action link",
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "link_params": {
            "title": "Webpush url link parameters",
            "type": "array",
            "items": {
              "properties": {
                "param_name": {
                  "description": "Parameter name",
                  "type": "string"
                },
                "value": {
                  "description": "Parameter value",
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "ttl": {
            "description": "Webpush campaign time to live, in seconds",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "WebPushRssCampaign": {
        "title": "Webpush Rss Campaign",
        "required": [
          "site_id",
          "internal_name",
          "content"
        ],
        "properties": {
          "site_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "internal_name": {
            "description": "Webpush campaign internal title",
            "type": "string"
          },
          "content": {
            "title": "Campaign Content",
            "properties": {
              "feed": {
                "description": "Feed Rss Url",
                "type": "string",
                "example": "https://localhost/feed"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "WebPushPatchCampaign": {
        "title": "Webpush Campaign",
        "properties": {
          "internal_name": {
            "description": "Webpush campaign internal title",
            "type": "string"
          },
          "content": {
            "title": "Campaign Content",
            "properties": {
              "title": {
                "description": "Webpush campaign title",
                "type": "string"
              },
              "message": {
                "description": "Campaign message",
                "type": "string",
                "example": "Campaign message"
              },
              "link": {
                "description": "Webpush link",
                "type": "string"
              },
              "icon": {
                "description": "URL of Webpush campaign icon (up to 144x144 pixels)",
                "type": "string"
              },
              "image": {
                "description": "URL of Webpush campaign image (up to 360x180 pixels)",
                "type": "string"
              }
            },
            "type": "object"
          },
          "actions": {
            "title": "Webpush actions",
            "type": "array",
            "items": {
              "properties": {
                "title": {
                  "description": "Webpush action title",
                  "type": "string"
                },
                "link": {
                  "description": "Webpush action link",
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "link_params": {
            "title": "Webpush url link parameters",
            "type": "array",
            "items": {
              "properties": {
                "param_name": {
                  "description": "Parameter name",
                  "type": "string"
                },
                "value": {
                  "description": "Parameter value",
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "MessageWebPush": {
        "title": "Campaign Content",
        "properties": {
          "title": {
            "description": "Webpush campaign title",
            "type": "string"
          },
          "message": {
            "description": "Campaign message",
            "type": "string",
            "example": "Campaign message"
          },
          "link": {
            "description": "Webpush link",
            "type": "string"
          },
          "icon": {
            "description": "URL of Webpush campaign icon (up to 144x144 pixels)",
            "type": "string"
          },
          "image": {
            "description": "URL of Webpush campaign image (up to 360x180 pixels)",
            "type": "string"
          }
        },
        "type": "object"
      },
      "MessageWebPushRss": {
        "title": "Campaign Content",
        "properties": {
          "feed": {
            "description": "Feed Rss Url",
            "type": "string",
            "example": "https://localhost/feed"
          }
        },
        "type": "object"
      },
      "MessageWebPushPost": {
        "title": "Campaign Content",
        "required": [
          "title",
          "message",
          "link"
        ],
        "type": "object",
        "allOf": [
          {
            "title": "Campaign Content",
            "properties": {
              "title": {
                "description": "Webpush campaign title",
                "type": "string"
              },
              "message": {
                "description": "Campaign message",
                "type": "string",
                "example": "Campaign message"
              },
              "link": {
                "description": "Webpush link",
                "type": "string"
              },
              "icon": {
                "description": "URL of Webpush campaign icon (up to 144x144 pixels)",
                "type": "string"
              },
              "image": {
                "description": "URL of Webpush campaign image (up to 360x180 pixels)",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "WebpushActions": {
        "title": "Webpush actions",
        "type": "array",
        "items": {
          "properties": {
            "title": {
              "description": "Webpush action title",
              "type": "string"
            },
            "link": {
              "description": "Webpush action link",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "WebpushLinkParams": {
        "title": "Webpush url link parameters",
        "type": "array",
        "items": {
          "properties": {
            "param_name": {
              "description": "Parameter name",
              "type": "string"
            },
            "value": {
              "description": "Parameter value",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "CampaignWebPushSendRequest": {
        "title": "Send Webpush",
        "description": "Campaign webpush send request schema",
        "type": "object",
        "oneOf": [
          {
            "title": "Send Webpush",
            "required": [
              "site_id",
              "segments"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "site_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  }
                },
                "type": "object"
              },
              {
                "title": "Segments Object",
                "description": "Object of contact limit",
                "properties": {
                  "segments": {
                    "title": "Campaign Segments",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "none": "#/components/schemas/SendNone",
                        "segment": "#/components/schemas/SendSegment"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "SendNone",
                        "description": "Sends the campaign to the whole list",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to the whole list",
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendSegment",
                        "description": "Segments where the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to specific segments",
                            "type": "string",
                            "enum": [
                              "segment"
                            ]
                          },
                          "data": {
                            "description": "Array of segment IDs to send the campaign",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Notify Users",
                "description": "Users that will be notified",
                "properties": {
                  "notify": {
                    "description": "Array of IDs of the users to notify",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Schedule Webpush",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "schedule_date": {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                },
                "type": "object"
              },
              {
                "title": "Send Webpush",
                "required": [
                  "site_id",
                  "segments"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "site_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Segments Object",
                    "description": "Object of contact limit",
                    "properties": {
                      "segments": {
                        "title": "Campaign Segments",
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "none": "#/components/schemas/SendNone",
                            "segment": "#/components/schemas/SendSegment"
                          }
                        },
                        "oneOf": [
                          {
                            "title": "SendNone",
                            "description": "Sends the campaign to the whole list",
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "description": "Use this segment type to send to the whole list",
                                "type": "string",
                                "enum": [
                                  "none"
                                ]
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          },
                          {
                            "title": "SendSegment",
                            "description": "Segments where the campaign will be sent",
                            "required": [
                              "type",
                              "data"
                            ],
                            "properties": {
                              "type": {
                                "description": "Use this segment type to send to specific segments",
                                "type": "string",
                                "enum": [
                                  "segment"
                                ]
                              },
                              "data": {
                                "description": "Array of segment IDs to send the campaign",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "type": "object",
                            "discriminator": {
                              "propertyName": "type"
                            }
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Notify Users",
                    "description": "Users that will be notified",
                    "properties": {
                      "notify": {
                        "description": "Array of IDs of the users to notify",
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            ]
          }
        ]
      },
      "CampaignWebPushScheduleRequest": {
        "title": "Schedule Webpush",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "schedule_date": {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            },
            "type": "object"
          },
          {
            "title": "Send Webpush",
            "required": [
              "site_id",
              "segments"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "site_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  }
                },
                "type": "object"
              },
              {
                "title": "Segments Object",
                "description": "Object of contact limit",
                "properties": {
                  "segments": {
                    "title": "Campaign Segments",
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "none": "#/components/schemas/SendNone",
                        "segment": "#/components/schemas/SendSegment"
                      }
                    },
                    "oneOf": [
                      {
                        "title": "SendNone",
                        "description": "Sends the campaign to the whole list",
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to the whole list",
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      },
                      {
                        "title": "SendSegment",
                        "description": "Segments where the campaign will be sent",
                        "required": [
                          "type",
                          "data"
                        ],
                        "properties": {
                          "type": {
                            "description": "Use this segment type to send to specific segments",
                            "type": "string",
                            "enum": [
                              "segment"
                            ]
                          },
                          "data": {
                            "description": "Array of segment IDs to send the campaign",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "type": "object",
                        "discriminator": {
                          "propertyName": "type"
                        }
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Notify Users",
                "description": "Users that will be notified",
                "properties": {
                  "notify": {
                    "description": "Array of IDs of the users to notify",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "SendWebPush": {
        "title": "Send Webpush",
        "required": [
          "site_id",
          "segments"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "site_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              }
            },
            "type": "object"
          },
          {
            "title": "Segments Object",
            "description": "Object of contact limit",
            "properties": {
              "segments": {
                "title": "Campaign Segments",
                "type": "object",
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "none": "#/components/schemas/SendNone",
                    "segment": "#/components/schemas/SendSegment"
                  }
                },
                "oneOf": [
                  {
                    "title": "SendNone",
                    "description": "Sends the campaign to the whole list",
                    "required": [
                      "type"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to the whole list",
                        "type": "string",
                        "enum": [
                          "none"
                        ]
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  },
                  {
                    "title": "SendSegment",
                    "description": "Segments where the campaign will be sent",
                    "required": [
                      "type",
                      "data"
                    ],
                    "properties": {
                      "type": {
                        "description": "Use this segment type to send to specific segments",
                        "type": "string",
                        "enum": [
                          "segment"
                        ]
                      },
                      "data": {
                        "description": "Array of segment IDs to send the campaign",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "type": "object",
                    "discriminator": {
                      "propertyName": "type"
                    }
                  }
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Notify Users",
            "description": "Users that will be notified",
            "properties": {
              "notify": {
                "description": "Array of IDs of the users to notify",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              }
            },
            "type": "object"
          }
        ]
      },
      "CampaignGroupPost": {
        "title": "Campaign Group",
        "description": "Campaign Group schema",
        "required": [
          "group_id",
          "name"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "name": {
                "description": "Name of the campaign group",
                "type": "string",
                "example": "Your custom campaign group"
              }
            },
            "type": "object"
          }
        ]
      },
      "CampaignGroup": {
        "title": "Campaign Group",
        "description": "Campaign Group schema",
        "required": [
          "group_id",
          "name"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "group_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "readOnly": true,
                "example": 1
              },
              "name": {
                "description": "Name of the campaign group",
                "type": "string",
                "example": "Your custom campaign group"
              }
            },
            "type": "object"
          }
        ]
      },
      "ConnectedSitesDomain": {
        "title": "Domain",
        "description": "Domain schema",
        "properties": {
          "domain": {
            "description": "Domain",
            "type": "string",
            "example": "e-goi.com"
          },
          "list_id": {
            "description": "List id",
            "type": "string",
            "example": 1
          }
        },
        "type": "object"
      },
      "ConnectedSitesDomainDetail": {
        "title": "Domain",
        "description": "Domain detail schema",
        "properties": {
          "domain": {
            "description": "Domain",
            "type": "string",
            "example": "e-goi.com"
          },
          "list_id": {
            "description": "List id",
            "type": "string",
            "example": 1
          },
          "code": {
            "description": "Connected Sites Tracking Code",
            "type": "string",
            "example": "<script type='text/javascript'>var x=y;</script>"
          },
          "features": {
            "description": "Available features",
            "type": "array",
            "items": {
              "title": "Domain",
              "description": "Connected Sites Products",
              "properties": {
                "track_and_engage": {
                  "title": "Connected Sites General Track and Engage Product Detail",
                  "description": "Connected Sites General Track and Engage Product Detail",
                  "properties": {
                    "enabled": {
                      "description": "Enabled",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "on_site_message": {
                  "title": "Connected Sites General Form Product Detail",
                  "description": "Connected Sites General Form Product Detail",
                  "properties": {
                    "enabled": {
                      "description": "Enabled",
                      "type": "boolean"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "title": "Connected Sites General Form Product Detail",
                        "description": "Connected Sites General Product Detail",
                        "properties": {
                          "internal_name": {
                            "description": "Internal Name",
                            "type": "string",
                            "example": "Form Internal Name"
                          },
                          "form_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                },
                "popup_forms": {
                  "title": "Connected Sites General Form Product Detail",
                  "description": "Connected Sites General Form Product Detail",
                  "properties": {
                    "enabled": {
                      "description": "Enabled",
                      "type": "boolean"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "title": "Connected Sites General Form Product Detail",
                        "description": "Connected Sites General Product Detail",
                        "properties": {
                          "internal_name": {
                            "description": "Internal Name",
                            "type": "string",
                            "example": "Form Internal Name"
                          },
                          "form_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                },
                "whatsapp": {
                  "title": "Connected Sites General Form Product Detail",
                  "description": "Connected Sites General Form Product Detail",
                  "properties": {
                    "enabled": {
                      "description": "Enabled",
                      "type": "boolean"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "title": "Connected Sites General Form Product Detail",
                        "description": "Connected Sites General Product Detail",
                        "properties": {
                          "internal_name": {
                            "description": "Internal Name",
                            "type": "string",
                            "example": "Form Internal Name"
                          },
                          "form_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                },
                "web_push": {
                  "title": "Connected Sites General App Product Detail",
                  "description": "Connected Sites General App Product Detail",
                  "properties": {
                    "enabled": {
                      "description": "Enabled",
                      "type": "boolean"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "title": "Connected Sites General App Product Detail",
                        "description": "Connected Sites General App Product Detail",
                        "properties": {
                          "internal_name": {
                            "description": "Internal Name",
                            "type": "string",
                            "example": "Web push Internal Name"
                          },
                          "site_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "app_code": {
                            "description": "App code",
                            "type": "string",
                            "readOnly": true,
                            "example": "7b89dfsb9a6ab6fbsfbasbd6f6"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                },
                "embed_forms": {
                  "title": "Connected Sites Embed Form Product Detail",
                  "description": "Connected Sites Embed Form Product Detail",
                  "properties": {
                    "enabled": {
                      "description": "Enabled",
                      "type": "boolean"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "title": "Connected Sites Embed Form Product Detail",
                        "description": "Connected Sites Embed Form Product Detail",
                        "properties": {
                          "internal_name": {
                            "description": "Internal Name",
                            "type": "string",
                            "example": "Form Internal Name"
                          },
                          "form_id": {
                            "title": "ID",
                            "type": "integer",
                            "minimum": 1,
                            "readOnly": true,
                            "example": 1
                          },
                          "form_hash": {
                            "description": "Form Hash",
                            "type": "string",
                            "example": "2Ve45e1bKZ"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                },
                "associated_catalogs": {
                  "title": "Connected Sites Associated Catalogs Product Detail",
                  "description": "Connected Sites Associated Catalogs Product Detail",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "title": "Connected Sites Associated Catalogs Product Detail",
                        "description": "Connected Sites Associated Catalogs Product Detail",
                        "properties": {
                          "catalog_id": {
                            "description": "Catalog ID",
                            "type": "string",
                            "example": "27"
                          },
                          "title": {
                            "description": "Catalog Title",
                            "type": "string",
                            "example": "Catalog Title"
                          },
                          "default": {
                            "description": "Catalog Default",
                            "type": "boolean",
                            "example": "false"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "ConnectedSitesProducts": {
        "title": "Domain",
        "description": "Connected Sites Products",
        "properties": {
          "track_and_engage": {
            "title": "Connected Sites General Track and Engage Product Detail",
            "description": "Connected Sites General Track and Engage Product Detail",
            "properties": {
              "enabled": {
                "description": "Enabled",
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "on_site_message": {
            "title": "Connected Sites General Form Product Detail",
            "description": "Connected Sites General Form Product Detail",
            "properties": {
              "enabled": {
                "description": "Enabled",
                "type": "boolean"
              },
              "items": {
                "type": "array",
                "items": {
                  "title": "Connected Sites General Form Product Detail",
                  "description": "Connected Sites General Product Detail",
                  "properties": {
                    "internal_name": {
                      "description": "Internal Name",
                      "type": "string",
                      "example": "Form Internal Name"
                    },
                    "form_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          },
          "popup_forms": {
            "title": "Connected Sites General Form Product Detail",
            "description": "Connected Sites General Form Product Detail",
            "properties": {
              "enabled": {
                "description": "Enabled",
                "type": "boolean"
              },
              "items": {
                "type": "array",
                "items": {
                  "title": "Connected Sites General Form Product Detail",
                  "description": "Connected Sites General Product Detail",
                  "properties": {
                    "internal_name": {
                      "description": "Internal Name",
                      "type": "string",
                      "example": "Form Internal Name"
                    },
                    "form_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          },
          "whatsapp": {
            "title": "Connected Sites General Form Product Detail",
            "description": "Connected Sites General Form Product Detail",
            "properties": {
              "enabled": {
                "description": "Enabled",
                "type": "boolean"
              },
              "items": {
                "type": "array",
                "items": {
                  "title": "Connected Sites General Form Product Detail",
                  "description": "Connected Sites General Product Detail",
                  "properties": {
                    "internal_name": {
                      "description": "Internal Name",
                      "type": "string",
                      "example": "Form Internal Name"
                    },
                    "form_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          },
          "web_push": {
            "title": "Connected Sites General App Product Detail",
            "description": "Connected Sites General App Product Detail",
            "properties": {
              "enabled": {
                "description": "Enabled",
                "type": "boolean"
              },
              "items": {
                "type": "array",
                "items": {
                  "title": "Connected Sites General App Product Detail",
                  "description": "Connected Sites General App Product Detail",
                  "properties": {
                    "internal_name": {
                      "description": "Internal Name",
                      "type": "string",
                      "example": "Web push Internal Name"
                    },
                    "site_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "app_code": {
                      "description": "App code",
                      "type": "string",
                      "readOnly": true,
                      "example": "7b89dfsb9a6ab6fbsfbasbd6f6"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          },
          "embed_forms": {
            "title": "Connected Sites Embed Form Product Detail",
            "description": "Connected Sites Embed Form Product Detail",
            "properties": {
              "enabled": {
                "description": "Enabled",
                "type": "boolean"
              },
              "items": {
                "type": "array",
                "items": {
                  "title": "Connected Sites Embed Form Product Detail",
                  "description": "Connected Sites Embed Form Product Detail",
                  "properties": {
                    "internal_name": {
                      "description": "Internal Name",
                      "type": "string",
                      "example": "Form Internal Name"
                    },
                    "form_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "form_hash": {
                      "description": "Form Hash",
                      "type": "string",
                      "example": "2Ve45e1bKZ"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          },
          "associated_catalogs": {
            "title": "Connected Sites Associated Catalogs Product Detail",
            "description": "Connected Sites Associated Catalogs Product Detail",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "title": "Connected Sites Associated Catalogs Product Detail",
                  "description": "Connected Sites Associated Catalogs Product Detail",
                  "properties": {
                    "catalog_id": {
                      "description": "Catalog ID",
                      "type": "string",
                      "example": "27"
                    },
                    "title": {
                      "description": "Catalog Title",
                      "type": "string",
                      "example": "Catalog Title"
                    },
                    "default": {
                      "description": "Catalog Default",
                      "type": "boolean",
                      "example": "false"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "ConnectedSitesGeneralProductTEDetailGlobal": {
        "title": "Connected Sites General Track and Engage Product Detail",
        "description": "Connected Sites General Track and Engage Product Detail",
        "properties": {
          "enabled": {
            "description": "Enabled",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "ConnectedSitesGeneralProductFormDetailGlobal": {
        "title": "Connected Sites General Form Product Detail",
        "description": "Connected Sites General Form Product Detail",
        "properties": {
          "enabled": {
            "description": "Enabled",
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "title": "Connected Sites General Form Product Detail",
              "description": "Connected Sites General Product Detail",
              "properties": {
                "internal_name": {
                  "description": "Internal Name",
                  "type": "string",
                  "example": "Form Internal Name"
                },
                "form_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "readOnly": true,
                  "example": 1
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "ConnectedSitesEmbedForm": {
        "title": "Connected Sites Embed Form Product Detail",
        "description": "Connected Sites Embed Form Product Detail",
        "properties": {
          "enabled": {
            "description": "Enabled",
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "title": "Connected Sites Embed Form Product Detail",
              "description": "Connected Sites Embed Form Product Detail",
              "properties": {
                "internal_name": {
                  "description": "Internal Name",
                  "type": "string",
                  "example": "Form Internal Name"
                },
                "form_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "readOnly": true,
                  "example": 1
                },
                "form_hash": {
                  "description": "Form Hash",
                  "type": "string",
                  "example": "2Ve45e1bKZ"
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "ConnectedSitesAssociatedCatalogs": {
        "title": "Connected Sites Associated Catalogs Product Detail",
        "description": "Connected Sites Associated Catalogs Product Detail",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "title": "Connected Sites Associated Catalogs Product Detail",
              "description": "Connected Sites Associated Catalogs Product Detail",
              "properties": {
                "catalog_id": {
                  "description": "Catalog ID",
                  "type": "string",
                  "example": "27"
                },
                "title": {
                  "description": "Catalog Title",
                  "type": "string",
                  "example": "Catalog Title"
                },
                "default": {
                  "description": "Catalog Default",
                  "type": "boolean",
                  "example": "false"
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "ConnectedSitesGeneralProductAppDetailGlobal": {
        "title": "Connected Sites General App Product Detail",
        "description": "Connected Sites General App Product Detail",
        "properties": {
          "enabled": {
            "description": "Enabled",
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "title": "Connected Sites General App Product Detail",
              "description": "Connected Sites General App Product Detail",
              "properties": {
                "internal_name": {
                  "description": "Internal Name",
                  "type": "string",
                  "example": "Web push Internal Name"
                },
                "site_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "readOnly": true,
                  "example": 1
                },
                "app_code": {
                  "description": "App code",
                  "type": "string",
                  "readOnly": true,
                  "example": "7b89dfsb9a6ab6fbsfbasbd6f6"
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "ConnectedSitesGeneralProductFormDetail": {
        "title": "Connected Sites General Form Product Detail",
        "description": "Connected Sites General Product Detail",
        "properties": {
          "internal_name": {
            "description": "Internal Name",
            "type": "string",
            "example": "Form Internal Name"
          },
          "form_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          }
        },
        "type": "object"
      },
      "ConnectedSitesProductEmbedFormDetail": {
        "title": "Connected Sites Embed Form Product Detail",
        "description": "Connected Sites Embed Form Product Detail",
        "properties": {
          "internal_name": {
            "description": "Internal Name",
            "type": "string",
            "example": "Form Internal Name"
          },
          "form_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "form_hash": {
            "description": "Form Hash",
            "type": "string",
            "example": "2Ve45e1bKZ"
          }
        },
        "type": "object"
      },
      "ConnectedSitesProductAssociatedCatalogDetail": {
        "title": "Connected Sites Associated Catalogs Product Detail",
        "description": "Connected Sites Associated Catalogs Product Detail",
        "properties": {
          "catalog_id": {
            "description": "Catalog ID",
            "type": "string",
            "example": "27"
          },
          "title": {
            "description": "Catalog Title",
            "type": "string",
            "example": "Catalog Title"
          },
          "default": {
            "description": "Catalog Default",
            "type": "boolean",
            "example": "false"
          }
        },
        "type": "object"
      },
      "ConnectedSitesGeneralProductAppDetail": {
        "title": "Connected Sites General App Product Detail",
        "description": "Connected Sites General App Product Detail",
        "properties": {
          "internal_name": {
            "description": "Internal Name",
            "type": "string",
            "example": "Web push Internal Name"
          },
          "site_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "app_code": {
            "description": "App code",
            "type": "string",
            "readOnly": true,
            "example": "7b89dfsb9a6ab6fbsfbasbd6f6"
          }
        },
        "type": "object"
      },
      "contact_id": {
        "title": "Contact ID",
        "type": "string",
        "pattern": "[a-fA-F\\d]{10}",
        "readOnly": true,
        "example": "8f3a27ef26"
      },
      "contact_query_id": {
        "title": "Contact ID",
        "type": "string",
        "pattern": "[a-fA-F\\d]{10}"
      },
      "contact_body_id": {
        "title": "Contact ID",
        "type": "string",
        "pattern": "[a-fA-F\\d]{10}",
        "example": "8f3a27ef26"
      },
      "contact_body_email": {
        "title": "Contact Email",
        "type": "string",
        "example": "example@e-goi.com"
      },
      "show_removed": {
        "title": "Show removed contacts",
        "type": "boolean",
        "default": false,
        "example": true
      },
      "ComplexContact": {
        "title": "ComplexContact",
        "description": "Complex contact schema",
        "type": "object",
        "allOf": [
          {
            "title": "Contact",
            "description": "Contact schema",
            "type": "object",
            "allOf": [
              {
                "title": "Contact",
                "description": "Contact Base and Extra schema",
                "type": "object",
                "allOf": [
                  {
                    "title": "Contact",
                    "description": "Contact base",
                    "properties": {
                      "base": {
                        "description": "Contact base fields",
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "contact_id": {
                                "title": "Contact ID",
                                "type": "string",
                                "pattern": "[a-fA-F\\d]{10}",
                                "readOnly": true,
                                "example": "8f3a27ef26"
                              },
                              "status": {
                                "description": "Status of the contact",
                                "type": "string",
                                "default": "active",
                                "enum": [
                                  "active",
                                  "inactive",
                                  "removed",
                                  "unconfirmed"
                                ]
                              },
                              "consent": {
                                "description": "Contact consent",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "example": [
                                  "none",
                                  "any",
                                  "consent",
                                  "contract",
                                  "legitimate_interest",
                                  "required_by_law",
                                  "protect_vital_interests",
                                  "public_interests",
                                  "withdrawn"
                                ]
                              },
                              "consent_date": {
                                "description": "Date and hour of the contact consent",
                                "type": "string",
                                "format": "date-time",
                                "readOnly": true,
                                "example": "2019-01-01 00:00:00"
                              },
                              "subscription_method": {
                                "description": "Contact subscription method",
                                "type": "string",
                                "enum": [
                                  "manual",
                                  "form",
                                  "imported",
                                  "referral",
                                  "api"
                                ],
                                "readOnly": true
                              },
                              "subscription_date": {
                                "description": "Date and hour of the contact subscription",
                                "type": "string",
                                "format": "date-time",
                                "readOnly": true,
                                "example": "2019-01-01 00:00:00"
                              },
                              "subscription_form": {
                                "description": "Contact subscription form",
                                "type": "integer",
                                "minimum": 0,
                                "readOnly": true
                              },
                              "unsubscription_method": {
                                "description": "Contact unsubscription method",
                                "type": "string",
                                "enum": [
                                  "manual",
                                  "form",
                                  "unsubscribe_link",
                                  "bounce",
                                  "api",
                                  ""
                                ],
                                "readOnly": true
                              },
                              "unsubscription_reason": {
                                "description": "Contact unsubscription reason",
                                "type": "string",
                                "enum": [
                                  "not_interested",
                                  "lack_of_time",
                                  "email_address_change",
                                  "spam",
                                  "other",
                                  ""
                                ],
                                "readOnly": true
                              },
                              "unsubscription_observation": {
                                "description": "Contact unsubscription observation",
                                "type": "string",
                                "readOnly": true,
                                "example": ""
                              },
                              "unsubscription_date": {
                                "description": "Contact unsubscription date",
                                "type": "string",
                                "format": "date-time",
                                "readOnly": true,
                                "example": "0000-00-00 00:00:00"
                              },
                              "change_date": {
                                "description": "Last modification date of the contact",
                                "type": "string",
                                "format": "date",
                                "readOnly": true,
                                "example": "0000-00-00 00:00:00"
                              },
                              "first_name": {
                                "description": "First name of the contact",
                                "type": "string",
                                "example": "John"
                              },
                              "last_name": {
                                "description": "Last name of the contact",
                                "type": "string",
                                "example": "Doe"
                              },
                              "birth_date": {
                                "description": "Birth date of the contact",
                                "type": "string",
                                "format": "date",
                                "example": "1975-01-10"
                              },
                              "language": {
                                "title": "language",
                                "description": "Current language",
                                "type": "string",
                                "default": "en",
                                "enum": [
                                  "en",
                                  "pt",
                                  "br",
                                  "es",
                                  "de",
                                  "hu",
                                  "fr"
                                ]
                              },
                              "email": {
                                "description": "Email of the contact",
                                "type": "string",
                                "example": "example@e-goi.com"
                              },
                              "email_status": {
                                "description": "Email channel status",
                                "type": "string",
                                "default": "active",
                                "enum": [
                                  "active",
                                  "inactive"
                                ],
                                "readOnly": true
                              },
                              "cellphone": {
                                "description": "Cellphone of the contact",
                                "type": "string",
                                "example": "351-300404336"
                              },
                              "cellphone_status": {
                                "description": "Cellphone channel status",
                                "type": "string",
                                "default": "active",
                                "enum": [
                                  "active",
                                  "inactive"
                                ],
                                "readOnly": true
                              },
                              "phone": {
                                "description": "Phone of the contact",
                                "type": "string",
                                "example": "351-300404336"
                              },
                              "phone_status": {
                                "description": "Phone channel status",
                                "type": "string",
                                "default": "active",
                                "enum": [
                                  "active",
                                  "inactive"
                                ],
                                "readOnly": true
                              },
                              "push_token_android": {
                                "description": "Android push token of the contact",
                                "type": "array",
                                "items": {
                                  "properties": {
                                    "app_id": {
                                      "title": "Push App Id",
                                      "type": "string",
                                      "pattern": "[a-zA-Z0-9_-]*"
                                    },
                                    "token": {
                                      "description": "Android push app ID",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              },
                              "push_token_ios": {
                                "description": "IOS push token of the contact",
                                "type": "array",
                                "items": {
                                  "properties": {
                                    "app_id": {
                                      "title": "Push App Id",
                                      "type": "string",
                                      "pattern": "[a-zA-Z0-9_-]*"
                                    },
                                    "token": {
                                      "description": "Ios push app ID",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Contact",
                    "description": "Contact Extra schema",
                    "properties": {
                      "extra": {
                        "description": "Array of the contact's extra fields",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "oneOf": [
                            {
                              "title": "ContactExtraFieldDate",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "date"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string",
                                  "format": "date",
                                  "example": "2019-01-01"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldText",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "text"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldCellphone",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "cellphone"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                  "type": "string",
                                  "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                  "example": "351-300404336"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldPhone",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "phone"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Phone value (country code followed by phone number, split by '-')",
                                  "type": "string",
                                  "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                  "example": "351-300404336"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldNumber",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "number"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string",
                                  "example": "100"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldEmail",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "email"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldOptions",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "options"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                  "type": "array",
                                  "items": {
                                    "type": "integer"
                                  },
                                  "example": [
                                    1,
                                    2
                                  ]
                                }
                              },
                              "type": "object"
                            }
                          ]
                        }
                      }
                    },
                    "type": "object"
                  }
                ]
              },
              {
                "properties": {
                  "tags": {
                    "description": "Array of tags for this contact",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "readOnly": true,
                    "example": [
                      1,
                      2
                    ]
                  }
                },
                "type": "object"
              }
            ],
            "x-sort-index": 1
          },
          {
            "title": "Contact stats",
            "description": "Contact stats",
            "properties": {
              "email_stats": {
                "description": "Email stats of the contact",
                "properties": {
                  "sent": {
                    "description": "Emails sent to the contact",
                    "type": "integer",
                    "example": 20
                  },
                  "opens": {
                    "description": "Emails opened by the contact",
                    "type": "integer",
                    "example": 2
                  },
                  "clicks": {
                    "description": "Total number of clicks made by the contact",
                    "type": "integer",
                    "example": 4
                  },
                  "soft_bounces": {
                    "description": "Soft bounces for the contact",
                    "type": "integer",
                    "example": 5
                  },
                  "hard_bounces": {
                    "description": "Hard bounces for the contact",
                    "type": "integer",
                    "example": 5
                  },
                  "forwards": {
                    "description": "Emails forwarded by the contact",
                    "type": "integer",
                    "example": 2
                  },
                  "conversions": {
                    "description": "Total of conversions",
                    "type": "integer",
                    "example": 1
                  },
                  "social_actions": {
                    "description": "Total of social actions for the contact",
                    "type": "integer",
                    "example": 1
                  },
                  "last_send_date": {
                    "description": "Date of the last email sent to the contact",
                    "type": "string",
                    "format": "date-time",
                    "example": "2019-01-01 00:00:00",
                    "nullable": true
                  },
                  "last_open_date": {
                    "description": "Date of the last email open of the contact",
                    "type": "string",
                    "format": "date-time",
                    "example": "2019-01-01 00:00:00",
                    "nullable": true
                  },
                  "last_click_date": {
                    "description": "Date of the last email click of the contact",
                    "type": "string",
                    "format": "date-time",
                    "example": "2019-01-01 00:00:00",
                    "nullable": true
                  },
                  "last_open_country": {
                    "description": "Country where the last email for that contact was opened",
                    "type": "string",
                    "example": "Portugal",
                    "nullable": true
                  },
                  "last_open_region": {
                    "description": "Region where the last email for that contact was opened",
                    "type": "string",
                    "example": "Porto",
                    "nullable": true
                  },
                  "last_open_city": {
                    "description": "City where the last email for that contact was opened",
                    "type": "string",
                    "example": "Matosinhos",
                    "nullable": true
                  }
                },
                "type": "object",
                "readOnly": true
              },
              "sms_stats": {
                "description": "SMS stats of the contact",
                "properties": {
                  "sent": {
                    "description": "SMS sent to the contact",
                    "type": "integer",
                    "example": 5
                  },
                  "delivered": {
                    "description": "SMS delivered to the contact",
                    "type": "integer",
                    "example": 5
                  }
                },
                "type": "object",
                "readOnly": true,
                "x-sort-index": 3
              },
              "push_stats": {
                "description": "Push stats of the contact",
                "properties": {
                  "sent": {
                    "description": "Push messages sent to the contact",
                    "type": "integer",
                    "example": 5
                  },
                  "delivered": {
                    "description": "Push messages delivered to the contact",
                    "type": "integer",
                    "example": 5
                  },
                  "not_delivered": {
                    "description": "Push messages that were not delivered to the contact",
                    "type": "integer",
                    "example": 0
                  },
                  "views": {
                    "description": "Push messages that were viewed by the contact",
                    "type": "integer",
                    "example": 4
                  },
                  "clicks": {
                    "description": "Total number of clicks made by the contact",
                    "type": "integer",
                    "example": 3
                  },
                  "last_view_date": {
                    "description": "Date of the last push message view of the contact",
                    "type": "string",
                    "format": "date-time",
                    "example": "2019-01-01 00:00:00",
                    "nullable": true
                  }
                },
                "type": "object",
                "readOnly": true,
                "x-sort-index": 4
              },
              "webpush_stats": {
                "description": "Webpush stats of the contact",
                "properties": {
                  "sent": {
                    "description": "Webpush messages sent to the contact",
                    "type": "integer",
                    "example": 7
                  },
                  "delivered": {
                    "description": "Webpush messages delivered to the contact",
                    "type": "integer",
                    "example": 7
                  },
                  "clicks": {
                    "description": "Total number of clicks made by the contact",
                    "type": "integer",
                    "example": 2
                  },
                  "bounces": {
                    "description": "Bounces for the contact",
                    "type": "integer",
                    "example": 0
                  },
                  "last_send_date": {
                    "description": "Date of the last webpush message sent to the contact",
                    "type": "string",
                    "format": "date-time",
                    "example": "2019-01-01 00:00:00"
                  },
                  "last_delivery_date": {
                    "description": "Date of the last webpush message delivered to the contact",
                    "type": "string",
                    "format": "date-time",
                    "example": "2019-01-01 00:00:00"
                  },
                  "last_click_date": {
                    "description": "Date of the last webpush message clicked by the contact",
                    "type": "string",
                    "format": "date-time",
                    "example": "2019-01-01 00:00:00"
                  },
                  "last_bounce_date": {
                    "description": "Date of the last webpush bounce for the contact",
                    "type": "string",
                    "format": "date-time",
                    "example": "2019-01-01 00:00:00"
                  }
                },
                "type": "object",
                "readOnly": true,
                "x-sort-index": 5
              },
              "voice_stats": {
                "description": "Voice stats of the contact",
                "properties": {
                  "sent": {
                    "description": "Voice campaigns sent to the contact",
                    "type": "integer",
                    "example": 20
                  },
                  "answered": {
                    "description": "Voice campaigns answered by the contact",
                    "type": "integer",
                    "example": 10
                  }
                },
                "type": "object",
                "readOnly": true,
                "x-sort-index": 6
              },
              "traffic_stats": {
                "description": "Traffic stats of the contact",
                "properties": {
                  "utm": {
                    "description": "Voice campaigns sent to the contact",
                    "properties": {
                      "utm_source": {
                        "description": "Utm source value",
                        "type": "string",
                        "example": "source"
                      },
                      "utm_medium": {
                        "description": "Utm medium value",
                        "type": "string",
                        "example": "medium"
                      },
                      "utm_campaign": {
                        "description": "Utm campaign value",
                        "type": "string",
                        "example": "campaign"
                      },
                      "utm_content": {
                        "description": "Utm content value",
                        "type": "string",
                        "example": "content"
                      },
                      "utm_term": {
                        "description": "Utm source value",
                        "type": "string",
                        "example": "term"
                      }
                    },
                    "type": "object",
                    "readOnly": true
                  },
                  "referrer": {
                    "description": "Contact referrer fields",
                    "properties": {
                      "referrer": {
                        "description": "Contact referrer value",
                        "type": "string",
                        "example": "referrer"
                      }
                    },
                    "type": "object",
                    "readOnly": true
                  },
                  "advertising": {
                    "description": "Contact advertising fields",
                    "properties": {
                      "gclid": {
                        "description": "Google Ads value",
                        "type": "string",
                        "example": "gclid"
                      },
                      "msclkid": {
                        "description": "Microsoft Ads value",
                        "type": "string",
                        "example": "msclkid"
                      },
                      "fbclid": {
                        "description": "Facebook Ads value",
                        "type": "string",
                        "example": "fbclid"
                      }
                    },
                    "type": "object",
                    "readOnly": true
                  }
                },
                "type": "object",
                "readOnly": true,
                "x-sort-index": 7
              }
            },
            "type": "object",
            "x-sort-index": 2
          }
        ],
        "x-sort-index": 1
      },
      "Contact": {
        "title": "Contact",
        "description": "Contact schema",
        "type": "object",
        "allOf": [
          {
            "title": "Contact",
            "description": "Contact Base and Extra schema",
            "type": "object",
            "allOf": [
              {
                "title": "Contact",
                "description": "Contact base",
                "properties": {
                  "base": {
                    "description": "Contact base fields",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "contact_id": {
                            "title": "Contact ID",
                            "type": "string",
                            "pattern": "[a-fA-F\\d]{10}",
                            "readOnly": true,
                            "example": "8f3a27ef26"
                          },
                          "status": {
                            "description": "Status of the contact",
                            "type": "string",
                            "default": "active",
                            "enum": [
                              "active",
                              "inactive",
                              "removed",
                              "unconfirmed"
                            ]
                          },
                          "consent": {
                            "description": "Contact consent",
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "example": [
                              "none",
                              "any",
                              "consent",
                              "contract",
                              "legitimate_interest",
                              "required_by_law",
                              "protect_vital_interests",
                              "public_interests",
                              "withdrawn"
                            ]
                          },
                          "consent_date": {
                            "description": "Date and hour of the contact consent",
                            "type": "string",
                            "format": "date-time",
                            "readOnly": true,
                            "example": "2019-01-01 00:00:00"
                          },
                          "subscription_method": {
                            "description": "Contact subscription method",
                            "type": "string",
                            "enum": [
                              "manual",
                              "form",
                              "imported",
                              "referral",
                              "api"
                            ],
                            "readOnly": true
                          },
                          "subscription_date": {
                            "description": "Date and hour of the contact subscription",
                            "type": "string",
                            "format": "date-time",
                            "readOnly": true,
                            "example": "2019-01-01 00:00:00"
                          },
                          "subscription_form": {
                            "description": "Contact subscription form",
                            "type": "integer",
                            "minimum": 0,
                            "readOnly": true
                          },
                          "unsubscription_method": {
                            "description": "Contact unsubscription method",
                            "type": "string",
                            "enum": [
                              "manual",
                              "form",
                              "unsubscribe_link",
                              "bounce",
                              "api",
                              ""
                            ],
                            "readOnly": true
                          },
                          "unsubscription_reason": {
                            "description": "Contact unsubscription reason",
                            "type": "string",
                            "enum": [
                              "not_interested",
                              "lack_of_time",
                              "email_address_change",
                              "spam",
                              "other",
                              ""
                            ],
                            "readOnly": true
                          },
                          "unsubscription_observation": {
                            "description": "Contact unsubscription observation",
                            "type": "string",
                            "readOnly": true,
                            "example": ""
                          },
                          "unsubscription_date": {
                            "description": "Contact unsubscription date",
                            "type": "string",
                            "format": "date-time",
                            "readOnly": true,
                            "example": "0000-00-00 00:00:00"
                          },
                          "change_date": {
                            "description": "Last modification date of the contact",
                            "type": "string",
                            "format": "date",
                            "readOnly": true,
                            "example": "0000-00-00 00:00:00"
                          },
                          "first_name": {
                            "description": "First name of the contact",
                            "type": "string",
                            "example": "John"
                          },
                          "last_name": {
                            "description": "Last name of the contact",
                            "type": "string",
                            "example": "Doe"
                          },
                          "birth_date": {
                            "description": "Birth date of the contact",
                            "type": "string",
                            "format": "date",
                            "example": "1975-01-10"
                          },
                          "language": {
                            "title": "language",
                            "description": "Current language",
                            "type": "string",
                            "default": "en",
                            "enum": [
                              "en",
                              "pt",
                              "br",
                              "es",
                              "de",
                              "hu",
                              "fr"
                            ]
                          },
                          "email": {
                            "description": "Email of the contact",
                            "type": "string",
                            "example": "example@e-goi.com"
                          },
                          "email_status": {
                            "description": "Email channel status",
                            "type": "string",
                            "default": "active",
                            "enum": [
                              "active",
                              "inactive"
                            ],
                            "readOnly": true
                          },
                          "cellphone": {
                            "description": "Cellphone of the contact",
                            "type": "string",
                            "example": "351-300404336"
                          },
                          "cellphone_status": {
                            "description": "Cellphone channel status",
                            "type": "string",
                            "default": "active",
                            "enum": [
                              "active",
                              "inactive"
                            ],
                            "readOnly": true
                          },
                          "phone": {
                            "description": "Phone of the contact",
                            "type": "string",
                            "example": "351-300404336"
                          },
                          "phone_status": {
                            "description": "Phone channel status",
                            "type": "string",
                            "default": "active",
                            "enum": [
                              "active",
                              "inactive"
                            ],
                            "readOnly": true
                          },
                          "push_token_android": {
                            "description": "Android push token of the contact",
                            "type": "array",
                            "items": {
                              "properties": {
                                "app_id": {
                                  "title": "Push App Id",
                                  "type": "string",
                                  "pattern": "[a-zA-Z0-9_-]*"
                                },
                                "token": {
                                  "description": "Android push app ID",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            }
                          },
                          "push_token_ios": {
                            "description": "IOS push token of the contact",
                            "type": "array",
                            "items": {
                              "properties": {
                                "app_id": {
                                  "title": "Push App Id",
                                  "type": "string",
                                  "pattern": "[a-zA-Z0-9_-]*"
                                },
                                "token": {
                                  "description": "Ios push app ID",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            }
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Contact",
                "description": "Contact Extra schema",
                "properties": {
                  "extra": {
                    "description": "Array of the contact's extra fields",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "oneOf": [
                        {
                          "title": "ContactExtraFieldDate",
                          "properties": {
                            "field_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "format": {
                              "description": "Extra field format",
                              "type": "string",
                              "enum": [
                                "date"
                              ],
                              "readOnly": true
                            },
                            "value": {
                              "description": "Extra field value",
                              "type": "string",
                              "format": "date",
                              "example": "2019-01-01"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ContactExtraFieldText",
                          "properties": {
                            "field_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "format": {
                              "description": "Extra field format",
                              "type": "string",
                              "enum": [
                                "text"
                              ],
                              "readOnly": true
                            },
                            "value": {
                              "description": "Extra field value",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ContactExtraFieldCellphone",
                          "properties": {
                            "field_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "format": {
                              "description": "Extra field format",
                              "type": "string",
                              "enum": [
                                "cellphone"
                              ],
                              "readOnly": true
                            },
                            "value": {
                              "description": "Cellphone  value (country code followed by phone number, split by '-')",
                              "type": "string",
                              "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                              "example": "351-300404336"
                            },
                            "status": {
                              "description": "Extra field status",
                              "type": "string",
                              "enum": [
                                "active",
                                "inactive"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ContactExtraFieldPhone",
                          "properties": {
                            "field_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "format": {
                              "description": "Extra field format",
                              "type": "string",
                              "enum": [
                                "phone"
                              ],
                              "readOnly": true
                            },
                            "value": {
                              "description": "Phone value (country code followed by phone number, split by '-')",
                              "type": "string",
                              "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                              "example": "351-300404336"
                            },
                            "status": {
                              "description": "Extra field status",
                              "type": "string",
                              "enum": [
                                "active",
                                "inactive"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ContactExtraFieldNumber",
                          "properties": {
                            "field_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "format": {
                              "description": "Extra field format",
                              "type": "string",
                              "enum": [
                                "number"
                              ],
                              "readOnly": true
                            },
                            "value": {
                              "description": "Extra field value",
                              "type": "string",
                              "example": "100"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ContactExtraFieldEmail",
                          "properties": {
                            "field_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "format": {
                              "description": "Extra field format",
                              "type": "string",
                              "enum": [
                                "email"
                              ],
                              "readOnly": true
                            },
                            "value": {
                              "description": "Extra field value",
                              "type": "string"
                            },
                            "status": {
                              "description": "Extra field status",
                              "type": "string",
                              "enum": [
                                "active",
                                "inactive"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ContactExtraFieldOptions",
                          "properties": {
                            "field_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "format": {
                              "description": "Extra field format",
                              "type": "string",
                              "enum": [
                                "options"
                              ],
                              "readOnly": true
                            },
                            "value": {
                              "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                              "type": "array",
                              "items": {
                                "type": "integer"
                              },
                              "example": [
                                1,
                                2
                              ]
                            }
                          },
                          "type": "object"
                        }
                      ]
                    }
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "properties": {
              "tags": {
                "description": "Array of tags for this contact",
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "readOnly": true,
                "example": [
                  1,
                  2
                ]
              }
            },
            "type": "object"
          }
        ],
        "x-sort-index": 1
      },
      "ContactBaseFieldsSchema": {
        "title": "Contact",
        "description": "Contact base",
        "properties": {
          "base": {
            "description": "Contact base fields",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "contact_id": {
                    "title": "Contact ID",
                    "type": "string",
                    "pattern": "[a-fA-F\\d]{10}",
                    "readOnly": true,
                    "example": "8f3a27ef26"
                  },
                  "status": {
                    "description": "Status of the contact",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive",
                      "removed",
                      "unconfirmed"
                    ]
                  },
                  "consent": {
                    "description": "Contact consent",
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "example": [
                      "none",
                      "any",
                      "consent",
                      "contract",
                      "legitimate_interest",
                      "required_by_law",
                      "protect_vital_interests",
                      "public_interests",
                      "withdrawn"
                    ]
                  },
                  "consent_date": {
                    "description": "Date and hour of the contact consent",
                    "type": "string",
                    "format": "date-time",
                    "readOnly": true,
                    "example": "2019-01-01 00:00:00"
                  },
                  "subscription_method": {
                    "description": "Contact subscription method",
                    "type": "string",
                    "enum": [
                      "manual",
                      "form",
                      "imported",
                      "referral",
                      "api"
                    ],
                    "readOnly": true
                  },
                  "subscription_date": {
                    "description": "Date and hour of the contact subscription",
                    "type": "string",
                    "format": "date-time",
                    "readOnly": true,
                    "example": "2019-01-01 00:00:00"
                  },
                  "subscription_form": {
                    "description": "Contact subscription form",
                    "type": "integer",
                    "minimum": 0,
                    "readOnly": true
                  },
                  "unsubscription_method": {
                    "description": "Contact unsubscription method",
                    "type": "string",
                    "enum": [
                      "manual",
                      "form",
                      "unsubscribe_link",
                      "bounce",
                      "api",
                      ""
                    ],
                    "readOnly": true
                  },
                  "unsubscription_reason": {
                    "description": "Contact unsubscription reason",
                    "type": "string",
                    "enum": [
                      "not_interested",
                      "lack_of_time",
                      "email_address_change",
                      "spam",
                      "other",
                      ""
                    ],
                    "readOnly": true
                  },
                  "unsubscription_observation": {
                    "description": "Contact unsubscription observation",
                    "type": "string",
                    "readOnly": true,
                    "example": ""
                  },
                  "unsubscription_date": {
                    "description": "Contact unsubscription date",
                    "type": "string",
                    "format": "date-time",
                    "readOnly": true,
                    "example": "0000-00-00 00:00:00"
                  },
                  "change_date": {
                    "description": "Last modification date of the contact",
                    "type": "string",
                    "format": "date",
                    "readOnly": true,
                    "example": "0000-00-00 00:00:00"
                  },
                  "first_name": {
                    "description": "First name of the contact",
                    "type": "string",
                    "example": "John"
                  },
                  "last_name": {
                    "description": "Last name of the contact",
                    "type": "string",
                    "example": "Doe"
                  },
                  "birth_date": {
                    "description": "Birth date of the contact",
                    "type": "string",
                    "format": "date",
                    "example": "1975-01-10"
                  },
                  "language": {
                    "title": "language",
                    "description": "Current language",
                    "type": "string",
                    "default": "en",
                    "enum": [
                      "en",
                      "pt",
                      "br",
                      "es",
                      "de",
                      "hu",
                      "fr"
                    ]
                  },
                  "email": {
                    "description": "Email of the contact",
                    "type": "string",
                    "example": "example@e-goi.com"
                  },
                  "email_status": {
                    "description": "Email channel status",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive"
                    ],
                    "readOnly": true
                  },
                  "cellphone": {
                    "description": "Cellphone of the contact",
                    "type": "string",
                    "example": "351-300404336"
                  },
                  "cellphone_status": {
                    "description": "Cellphone channel status",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive"
                    ],
                    "readOnly": true
                  },
                  "phone": {
                    "description": "Phone of the contact",
                    "type": "string",
                    "example": "351-300404336"
                  },
                  "phone_status": {
                    "description": "Phone channel status",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive"
                    ],
                    "readOnly": true
                  },
                  "push_token_android": {
                    "description": "Android push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Android push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "push_token_ios": {
                    "description": "IOS push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Ios push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "type": "object"
              }
            ]
          }
        },
        "type": "object"
      },
      "ContactStats": {
        "title": "Contact stats",
        "description": "Contact stats",
        "properties": {
          "email_stats": {
            "description": "Email stats of the contact",
            "properties": {
              "sent": {
                "description": "Emails sent to the contact",
                "type": "integer",
                "example": 20
              },
              "opens": {
                "description": "Emails opened by the contact",
                "type": "integer",
                "example": 2
              },
              "clicks": {
                "description": "Total number of clicks made by the contact",
                "type": "integer",
                "example": 4
              },
              "soft_bounces": {
                "description": "Soft bounces for the contact",
                "type": "integer",
                "example": 5
              },
              "hard_bounces": {
                "description": "Hard bounces for the contact",
                "type": "integer",
                "example": 5
              },
              "forwards": {
                "description": "Emails forwarded by the contact",
                "type": "integer",
                "example": 2
              },
              "conversions": {
                "description": "Total of conversions",
                "type": "integer",
                "example": 1
              },
              "social_actions": {
                "description": "Total of social actions for the contact",
                "type": "integer",
                "example": 1
              },
              "last_send_date": {
                "description": "Date of the last email sent to the contact",
                "type": "string",
                "format": "date-time",
                "example": "2019-01-01 00:00:00",
                "nullable": true
              },
              "last_open_date": {
                "description": "Date of the last email open of the contact",
                "type": "string",
                "format": "date-time",
                "example": "2019-01-01 00:00:00",
                "nullable": true
              },
              "last_click_date": {
                "description": "Date of the last email click of the contact",
                "type": "string",
                "format": "date-time",
                "example": "2019-01-01 00:00:00",
                "nullable": true
              },
              "last_open_country": {
                "description": "Country where the last email for that contact was opened",
                "type": "string",
                "example": "Portugal",
                "nullable": true
              },
              "last_open_region": {
                "description": "Region where the last email for that contact was opened",
                "type": "string",
                "example": "Porto",
                "nullable": true
              },
              "last_open_city": {
                "description": "City where the last email for that contact was opened",
                "type": "string",
                "example": "Matosinhos",
                "nullable": true
              }
            },
            "type": "object",
            "readOnly": true
          },
          "sms_stats": {
            "description": "SMS stats of the contact",
            "properties": {
              "sent": {
                "description": "SMS sent to the contact",
                "type": "integer",
                "example": 5
              },
              "delivered": {
                "description": "SMS delivered to the contact",
                "type": "integer",
                "example": 5
              }
            },
            "type": "object",
            "readOnly": true,
            "x-sort-index": 3
          },
          "push_stats": {
            "description": "Push stats of the contact",
            "properties": {
              "sent": {
                "description": "Push messages sent to the contact",
                "type": "integer",
                "example": 5
              },
              "delivered": {
                "description": "Push messages delivered to the contact",
                "type": "integer",
                "example": 5
              },
              "not_delivered": {
                "description": "Push messages that were not delivered to the contact",
                "type": "integer",
                "example": 0
              },
              "views": {
                "description": "Push messages that were viewed by the contact",
                "type": "integer",
                "example": 4
              },
              "clicks": {
                "description": "Total number of clicks made by the contact",
                "type": "integer",
                "example": 3
              },
              "last_view_date": {
                "description": "Date of the last push message view of the contact",
                "type": "string",
                "format": "date-time",
                "example": "2019-01-01 00:00:00",
                "nullable": true
              }
            },
            "type": "object",
            "readOnly": true,
            "x-sort-index": 4
          },
          "webpush_stats": {
            "description": "Webpush stats of the contact",
            "properties": {
              "sent": {
                "description": "Webpush messages sent to the contact",
                "type": "integer",
                "example": 7
              },
              "delivered": {
                "description": "Webpush messages delivered to the contact",
                "type": "integer",
                "example": 7
              },
              "clicks": {
                "description": "Total number of clicks made by the contact",
                "type": "integer",
                "example": 2
              },
              "bounces": {
                "description": "Bounces for the contact",
                "type": "integer",
                "example": 0
              },
              "last_send_date": {
                "description": "Date of the last webpush message sent to the contact",
                "type": "string",
                "format": "date-time",
                "example": "2019-01-01 00:00:00"
              },
              "last_delivery_date": {
                "description": "Date of the last webpush message delivered to the contact",
                "type": "string",
                "format": "date-time",
                "example": "2019-01-01 00:00:00"
              },
              "last_click_date": {
                "description": "Date of the last webpush message clicked by the contact",
                "type": "string",
                "format": "date-time",
                "example": "2019-01-01 00:00:00"
              },
              "last_bounce_date": {
                "description": "Date of the last webpush bounce for the contact",
                "type": "string",
                "format": "date-time",
                "example": "2019-01-01 00:00:00"
              }
            },
            "type": "object",
            "readOnly": true,
            "x-sort-index": 5
          },
          "voice_stats": {
            "description": "Voice stats of the contact",
            "properties": {
              "sent": {
                "description": "Voice campaigns sent to the contact",
                "type": "integer",
                "example": 20
              },
              "answered": {
                "description": "Voice campaigns answered by the contact",
                "type": "integer",
                "example": 10
              }
            },
            "type": "object",
            "readOnly": true,
            "x-sort-index": 6
          },
          "traffic_stats": {
            "description": "Traffic stats of the contact",
            "properties": {
              "utm": {
                "description": "Voice campaigns sent to the contact",
                "properties": {
                  "utm_source": {
                    "description": "Utm source value",
                    "type": "string",
                    "example": "source"
                  },
                  "utm_medium": {
                    "description": "Utm medium value",
                    "type": "string",
                    "example": "medium"
                  },
                  "utm_campaign": {
                    "description": "Utm campaign value",
                    "type": "string",
                    "example": "campaign"
                  },
                  "utm_content": {
                    "description": "Utm content value",
                    "type": "string",
                    "example": "content"
                  },
                  "utm_term": {
                    "description": "Utm source value",
                    "type": "string",
                    "example": "term"
                  }
                },
                "type": "object",
                "readOnly": true
              },
              "referrer": {
                "description": "Contact referrer fields",
                "properties": {
                  "referrer": {
                    "description": "Contact referrer value",
                    "type": "string",
                    "example": "referrer"
                  }
                },
                "type": "object",
                "readOnly": true
              },
              "advertising": {
                "description": "Contact advertising fields",
                "properties": {
                  "gclid": {
                    "description": "Google Ads value",
                    "type": "string",
                    "example": "gclid"
                  },
                  "msclkid": {
                    "description": "Microsoft Ads value",
                    "type": "string",
                    "example": "msclkid"
                  },
                  "fbclid": {
                    "description": "Facebook Ads value",
                    "type": "string",
                    "example": "fbclid"
                  }
                },
                "type": "object",
                "readOnly": true
              }
            },
            "type": "object",
            "readOnly": true,
            "x-sort-index": 7
          }
        },
        "type": "object",
        "x-sort-index": 2
      },
      "ContactByFieldFieldsPostSchema": {
        "title": "Contact",
        "description": "Contact By Field Id",
        "properties": {
          "compare_field": {
            "description": "Contact compare fields",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "field_id": {
                    "description": "Field Id from wich you wish to identify the contact (must be set as unique in list)",
                    "type": "string",
                    "example": "email"
                  },
                  "value": {
                    "description": "Value for identify the contact",
                    "type": "string",
                    "example": "example@e-goi.com"
                  }
                },
                "type": "object"
              }
            ]
          }
        },
        "type": "object",
        "x-sort-index": 1
      },
      "ContactBaseFieldsPostSchema": {
        "title": "Contact",
        "description": "Contact base",
        "properties": {
          "base": {
            "description": "Contact base fields",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "contact_id": {
                    "title": "Contact ID",
                    "type": "string",
                    "pattern": "[a-fA-F\\d]{10}",
                    "readOnly": true,
                    "example": "8f3a27ef26"
                  },
                  "status": {
                    "description": "Status of the contact",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive",
                      "removed",
                      "unconfirmed"
                    ]
                  },
                  "first_name": {
                    "description": "First name of the contact",
                    "type": "string",
                    "example": "John"
                  },
                  "last_name": {
                    "description": "Last name of the contact",
                    "type": "string",
                    "example": "Doe"
                  },
                  "birth_date": {
                    "description": "Birth date of the contact",
                    "type": "string",
                    "format": "date",
                    "example": "1975-01-10"
                  },
                  "language": {
                    "title": "language",
                    "description": "Current language",
                    "type": "string",
                    "default": "en",
                    "enum": [
                      "en",
                      "pt",
                      "br",
                      "es",
                      "de",
                      "hu",
                      "fr"
                    ]
                  },
                  "email": {
                    "description": "Email of the contact",
                    "type": "string",
                    "example": "example@e-goi.com"
                  },
                  "email_status": {
                    "description": "Email channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "cellphone": {
                    "description": "Cellphone of the contact (country code followed by phone number, split by '-')",
                    "type": "string",
                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                    "example": "351-300404336"
                  },
                  "cellphone_status": {
                    "description": "Cellphone channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "phone": {
                    "description": "Phone of the contact (country code followed by phone number, split by '-')",
                    "type": "string",
                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                    "example": "351-300404336"
                  },
                  "phone_status": {
                    "description": "Phone channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "push_token_android": {
                    "description": "Android push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Android push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "push_token_ios": {
                    "description": "IOS push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Ios push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "type": "object"
              }
            ]
          }
        },
        "type": "object",
        "x-sort-index": 1
      },
      "ContactUtmPostSchema": {
        "title": "Contact",
        "description": "Contact Utm",
        "properties": {
          "utm": {
            "description": "Contact Urchin Tracking Module (utm) fields",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "utm_source": {
                    "description": "Utm source value",
                    "type": "string",
                    "example": "source"
                  },
                  "utm_medium": {
                    "description": "Utm medium value",
                    "type": "string",
                    "example": "medium"
                  },
                  "utm_campaign": {
                    "description": "Utm campaign value",
                    "type": "string",
                    "example": "campaign"
                  },
                  "utm_content": {
                    "description": "Utm content value",
                    "type": "string",
                    "example": "content"
                  },
                  "utm_term": {
                    "description": "Utm source value",
                    "type": "string",
                    "example": "term"
                  }
                },
                "type": "object"
              }
            ]
          }
        },
        "type": "object"
      },
      "ContactReferrerPostSchema": {
        "title": "Contact",
        "description": "Contact Referrer",
        "properties": {
          "referrer": {
            "description": "Contact referrer fields",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "referrer": {
                    "description": "Referrer value",
                    "type": "string",
                    "example": "referrer"
                  }
                },
                "type": "object"
              }
            ]
          }
        },
        "type": "object"
      },
      "ContactAdvertisingPostSchema": {
        "title": "Contact",
        "description": "Contact Advertising",
        "properties": {
          "advertising": {
            "description": "Contact advertising fields",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "gclid": {
                    "description": "Identifier that Google uses in Google Ads",
                    "type": "string",
                    "example": "google"
                  },
                  "msclkid": {
                    "description": "Identifier that Microsoft uses in Microsoft Ads",
                    "type": "string",
                    "example": "microsoft"
                  },
                  "fbclid": {
                    "description": "Identifier that Facebook uses in Facebook Ads",
                    "type": "string",
                    "example": "facebook"
                  }
                },
                "type": "object"
              }
            ]
          }
        },
        "type": "object"
      },
      "ContactBaseFieldsWithIdSchema": {
        "title": "Contact",
        "description": "Contact base with contact_id",
        "properties": {
          "base": {
            "description": "Contact base fields with contact_id",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "pattern": "[a-fA-F\\d]{10}",
                    "example": "8f3a27ef26"
                  },
                  "status": {
                    "description": "Status of the contact",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive",
                      "removed",
                      "unconfirmed"
                    ]
                  },
                  "consent": {
                    "description": "Contact consent",
                    "type": "string",
                    "default": "consent",
                    "enum": [
                      "any",
                      "consent",
                      "contract",
                      "legitimate_interest",
                      "none",
                      "protect_vital_interests",
                      "public_interests",
                      "required_by_law",
                      "withdrawn"
                    ],
                    "readOnly": true
                  },
                  "consent_date": {
                    "description": "Date and hour of the contact consent",
                    "type": "string",
                    "format": "date-time",
                    "readOnly": true,
                    "example": "2019-01-01 00:00:00"
                  },
                  "subscription_method": {
                    "description": "Contact subscription method",
                    "type": "string",
                    "enum": [
                      "manual",
                      "form",
                      "imported",
                      "referral",
                      "api"
                    ],
                    "readOnly": true
                  },
                  "subscription_date": {
                    "description": "Date and hour of the contact subscription",
                    "type": "string",
                    "format": "date-time",
                    "readOnly": true,
                    "example": "2019-01-01 00:00:00"
                  },
                  "subscription_form": {
                    "description": "Contact subscription form",
                    "type": "integer",
                    "minimum": 0,
                    "readOnly": true
                  },
                  "unsubscription_method": {
                    "description": "Contact unsubscription method",
                    "type": "string",
                    "enum": [
                      "manual",
                      "form",
                      "unsubscribe_link",
                      "bounce",
                      "api",
                      ""
                    ],
                    "readOnly": true
                  },
                  "unsubscription_reason": {
                    "description": "Contact unsubscription reason",
                    "type": "string",
                    "enum": [
                      "not_interested",
                      "lack_of_time",
                      "email_address_change",
                      "spam",
                      "other",
                      ""
                    ],
                    "readOnly": true
                  },
                  "unsubscription_observation": {
                    "description": "Contact unsubscription observation",
                    "type": "string",
                    "readOnly": true,
                    "example": ""
                  },
                  "unsubscription_date": {
                    "description": "Contact unsubscription date",
                    "type": "string",
                    "format": "date-time",
                    "readOnly": true,
                    "example": "0000-00-00 00:00:00"
                  },
                  "change_date": {
                    "description": "Last modification date of the contact",
                    "type": "string",
                    "format": "date",
                    "readOnly": true,
                    "example": "0000-00-00 00:00:00"
                  },
                  "first_name": {
                    "description": "First name of the contact",
                    "type": "string",
                    "example": "John"
                  },
                  "last_name": {
                    "description": "Last name of the contact",
                    "type": "string",
                    "example": "Doe"
                  },
                  "birth_date": {
                    "description": "Birth date of the contact",
                    "type": "string",
                    "format": "date",
                    "example": "1975-01-10"
                  },
                  "language": {
                    "title": "language",
                    "description": "Current language",
                    "type": "string",
                    "default": "en",
                    "enum": [
                      "en",
                      "pt",
                      "br",
                      "es",
                      "de",
                      "hu",
                      "fr"
                    ]
                  },
                  "email": {
                    "description": "Email of the contact",
                    "type": "string",
                    "example": "example@e-goi.com"
                  },
                  "email_status": {
                    "description": "Email channel status",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive"
                    ],
                    "readOnly": true
                  },
                  "cellphone": {
                    "description": "Cellphone of the contact",
                    "type": "string",
                    "example": "351-300404336"
                  },
                  "cellphone_status": {
                    "description": "Cellphone channel status",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive"
                    ],
                    "readOnly": true
                  },
                  "phone": {
                    "description": "Phone of the contact",
                    "type": "string",
                    "example": "351-300404336"
                  },
                  "phone_status": {
                    "description": "Phone channel status",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive"
                    ],
                    "readOnly": true
                  },
                  "push_token_android": {
                    "description": "Android push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Android push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "push_token_ios": {
                    "description": "IOS push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Ios push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "type": "object"
              }
            ]
          }
        },
        "type": "object"
      },
      "ContactBaseWithStatusNoRemovedFieldsSchema": {
        "title": "Contact",
        "description": "Contact base",
        "properties": {
          "base": {
            "description": "Contact base fields",
            "properties": {
              "contact_id": {
                "title": "Contact ID",
                "type": "string",
                "pattern": "[a-fA-F\\d]{10}",
                "readOnly": true,
                "example": "8f3a27ef26"
              },
              "status": {
                "description": "Status of the contact",
                "type": "string",
                "default": "active",
                "enum": [
                  "active",
                  "inactive",
                  "unconfirmed"
                ]
              },
              "consent": {
                "description": "Contact consent",
                "type": "string",
                "enum": [
                  "any",
                  "consent",
                  "contract",
                  "legitimate_interest",
                  "none",
                  "protect_vital_interests",
                  "public_interests",
                  "required_by_law",
                  "withdrawn"
                ]
              },
              "first_name": {
                "description": "First name of the contact",
                "type": "string",
                "example": "John"
              },
              "last_name": {
                "description": "Last name of the contact",
                "type": "string",
                "example": "Doe"
              },
              "birth_date": {
                "description": "Birth date of the contact",
                "type": "string",
                "format": "date",
                "example": "1975-01-10"
              },
              "language": {
                "title": "language",
                "description": "Current language",
                "type": "string",
                "default": "en",
                "enum": [
                  "en",
                  "pt",
                  "br",
                  "es",
                  "de",
                  "hu",
                  "fr"
                ]
              },
              "email": {
                "description": "Email of the contact",
                "type": "string",
                "example": "example@e-goi.com"
              },
              "email_status": {
                "description": "Email channel status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "cellphone": {
                "description": "Cellphone of the contact (country code followed by phone number, split by '-')",
                "type": "string",
                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                "example": "351-300404336"
              },
              "cellphone_status": {
                "description": "Cellphone channel status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "phone": {
                "description": "Phone of the contact (country code followed by phone number, split by '-')",
                "type": "string",
                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                "example": "351-300404336"
              },
              "phone_status": {
                "description": "Phone channel status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "push_token_android": {
                "description": "Android push token of the contact",
                "type": "array",
                "items": {
                  "properties": {
                    "app_id": {
                      "title": "Push App Id",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*"
                    },
                    "token": {
                      "description": "Android push app ID",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "push_token_ios": {
                "description": "IOS push token of the contact",
                "type": "array",
                "items": {
                  "properties": {
                    "app_id": {
                      "title": "Push App Id",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*"
                    },
                    "token": {
                      "description": "Ios push app ID",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "ContactBaseWithStatusFieldsSchema": {
        "title": "Contact",
        "description": "Contact base",
        "properties": {
          "base": {
            "description": "Contact base fields",
            "properties": {
              "contact_id": {
                "title": "Contact ID",
                "type": "string",
                "pattern": "[a-fA-F\\d]{10}",
                "readOnly": true,
                "example": "8f3a27ef26"
              },
              "status": {
                "description": "Status of the contact",
                "type": "string",
                "default": "active",
                "enum": [
                  "active",
                  "inactive",
                  "removed",
                  "unconfirmed"
                ]
              },
              "consent": {
                "description": "Contact consent",
                "type": "string",
                "enum": [
                  "any",
                  "consent",
                  "contract",
                  "legitimate_interest",
                  "none",
                  "protect_vital_interests",
                  "public_interests",
                  "required_by_law",
                  "withdrawn"
                ]
              },
              "first_name": {
                "description": "First name of the contact",
                "type": "string",
                "example": "John"
              },
              "last_name": {
                "description": "Last name of the contact",
                "type": "string",
                "example": "Doe"
              },
              "birth_date": {
                "description": "Birth date of the contact",
                "type": "string",
                "format": "date",
                "example": "1975-01-10"
              },
              "language": {
                "title": "language",
                "description": "Current language",
                "type": "string",
                "default": "en",
                "enum": [
                  "en",
                  "pt",
                  "br",
                  "es",
                  "de",
                  "hu",
                  "fr"
                ]
              },
              "email": {
                "description": "Email of the contact",
                "type": "string",
                "example": "example@e-goi.com"
              },
              "email_status": {
                "description": "Email channel status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "cellphone": {
                "description": "Cellphone of the contact (country code followed by phone number, split by '-')",
                "type": "string",
                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                "example": "351-300404336"
              },
              "cellphone_status": {
                "description": "Cellphone channel status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "phone": {
                "description": "Phone of the contact (country code followed by phone number, split by '-')",
                "type": "string",
                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                "example": "351-300404336"
              },
              "phone_status": {
                "description": "Phone channel status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "push_token_android": {
                "description": "Android push token of the contact",
                "type": "array",
                "items": {
                  "properties": {
                    "app_id": {
                      "title": "Push App Id",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*"
                    },
                    "token": {
                      "description": "Android push app ID",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "push_token_ios": {
                "description": "IOS push token of the contact",
                "type": "array",
                "items": {
                  "properties": {
                    "app_id": {
                      "title": "Push App Id",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*"
                    },
                    "token": {
                      "description": "Ios push app ID",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "ContactBaseWithStatusFieldsNoTokensSchema": {
        "title": "Contact",
        "description": "Contact base",
        "properties": {
          "base": {
            "description": "Contact base fields",
            "properties": {
              "contact_id": {
                "title": "Contact ID",
                "type": "string",
                "pattern": "[a-fA-F\\d]{10}",
                "readOnly": true,
                "example": "8f3a27ef26"
              },
              "status": {
                "description": "Status of the contact",
                "type": "string",
                "default": "active",
                "enum": [
                  "active",
                  "inactive",
                  "removed",
                  "unconfirmed"
                ]
              },
              "consent": {
                "description": "Contact consent",
                "type": "string",
                "enum": [
                  "any",
                  "consent",
                  "contract",
                  "legitimate_interest",
                  "none",
                  "protect_vital_interests",
                  "public_interests",
                  "required_by_law",
                  "withdrawn"
                ]
              },
              "first_name": {
                "description": "First name of the contact",
                "type": "string",
                "example": "John"
              },
              "last_name": {
                "description": "Last name of the contact",
                "type": "string",
                "example": "Doe"
              },
              "birth_date": {
                "description": "Birth date of the contact",
                "type": "string",
                "format": "date",
                "example": "1975-01-10"
              },
              "language": {
                "title": "language",
                "description": "Current language",
                "type": "string",
                "default": "en",
                "enum": [
                  "en",
                  "pt",
                  "br",
                  "es",
                  "de",
                  "hu",
                  "fr"
                ]
              },
              "email": {
                "description": "Email of the contact",
                "type": "string",
                "example": "example@e-goi.com"
              },
              "email_status": {
                "description": "Email channel status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "cellphone": {
                "description": "Cellphone of the contact (country code followed by phone number, split by '-')",
                "type": "string",
                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                "example": "351-300404336"
              },
              "cellphone_status": {
                "description": "Cellphone channel status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "phone": {
                "description": "Phone of the contact (country code followed by phone number, split by '-')",
                "type": "string",
                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                "example": "351-300404336"
              },
              "phone_status": {
                "description": "Phone channel status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "ContactInsideBasePost": {
        "properties": {
          "contact_id": {
            "title": "Contact ID",
            "type": "string",
            "pattern": "[a-fA-F\\d]{10}",
            "readOnly": true,
            "example": "8f3a27ef26"
          },
          "status": {
            "description": "Status of the contact",
            "type": "string",
            "default": "active",
            "enum": [
              "active",
              "inactive",
              "removed",
              "unconfirmed"
            ]
          },
          "first_name": {
            "description": "First name of the contact",
            "type": "string",
            "example": "John"
          },
          "last_name": {
            "description": "Last name of the contact",
            "type": "string",
            "example": "Doe"
          },
          "birth_date": {
            "description": "Birth date of the contact",
            "type": "string",
            "format": "date",
            "example": "1975-01-10"
          },
          "language": {
            "title": "language",
            "description": "Current language",
            "type": "string",
            "default": "en",
            "enum": [
              "en",
              "pt",
              "br",
              "es",
              "de",
              "hu",
              "fr"
            ]
          },
          "email": {
            "description": "Email of the contact",
            "type": "string",
            "example": "example@e-goi.com"
          },
          "email_status": {
            "description": "Email channel status",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          },
          "cellphone": {
            "description": "Cellphone of the contact (country code followed by phone number, split by '-')",
            "type": "string",
            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
            "example": "351-300404336"
          },
          "cellphone_status": {
            "description": "Cellphone channel status",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          },
          "phone": {
            "description": "Phone of the contact (country code followed by phone number, split by '-')",
            "type": "string",
            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
            "example": "351-300404336"
          },
          "phone_status": {
            "description": "Phone channel status",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          },
          "push_token_android": {
            "description": "Android push token of the contact",
            "type": "array",
            "items": {
              "properties": {
                "app_id": {
                  "title": "Push App Id",
                  "type": "string",
                  "pattern": "[a-zA-Z0-9_-]*"
                },
                "token": {
                  "description": "Android push app ID",
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "push_token_ios": {
            "description": "IOS push token of the contact",
            "type": "array",
            "items": {
              "properties": {
                "app_id": {
                  "title": "Push App Id",
                  "type": "string",
                  "pattern": "[a-zA-Z0-9_-]*"
                },
                "token": {
                  "description": "Ios push app ID",
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "ContactCompareFieldPost": {
        "properties": {
          "field_id": {
            "description": "Field Id from wich you wish to identify the contact (must be set as unique in list)",
            "type": "string",
            "example": "email"
          },
          "value": {
            "description": "Value for identify the contact",
            "type": "string",
            "example": "example@e-goi.com"
          }
        },
        "type": "object"
      },
      "ContactUtmPost": {
        "properties": {
          "utm_source": {
            "description": "Utm source value",
            "type": "string",
            "example": "source"
          },
          "utm_medium": {
            "description": "Utm medium value",
            "type": "string",
            "example": "medium"
          },
          "utm_campaign": {
            "description": "Utm campaign value",
            "type": "string",
            "example": "campaign"
          },
          "utm_content": {
            "description": "Utm content value",
            "type": "string",
            "example": "content"
          },
          "utm_term": {
            "description": "Utm source value",
            "type": "string",
            "example": "term"
          }
        },
        "type": "object"
      },
      "ContactReferrerPost": {
        "properties": {
          "referrer": {
            "description": "Referrer value",
            "type": "string",
            "example": "referrer"
          }
        },
        "type": "object"
      },
      "ContactAdvertisingPost": {
        "properties": {
          "gclid": {
            "description": "Identifier that Google uses in Google Ads",
            "type": "string",
            "example": "google"
          },
          "msclkid": {
            "description": "Identifier that Microsoft uses in Microsoft Ads",
            "type": "string",
            "example": "microsoft"
          },
          "fbclid": {
            "description": "Identifier that Facebook uses in Facebook Ads",
            "type": "string",
            "example": "facebook"
          }
        },
        "type": "object"
      },
      "ContactInsideBase": {
        "properties": {
          "contact_id": {
            "title": "Contact ID",
            "type": "string",
            "pattern": "[a-fA-F\\d]{10}",
            "readOnly": true,
            "example": "8f3a27ef26"
          },
          "status": {
            "description": "Status of the contact",
            "type": "string",
            "default": "active",
            "enum": [
              "active",
              "inactive",
              "removed",
              "unconfirmed"
            ]
          },
          "consent": {
            "description": "Contact consent",
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "none",
              "any",
              "consent",
              "contract",
              "legitimate_interest",
              "required_by_law",
              "protect_vital_interests",
              "public_interests",
              "withdrawn"
            ]
          },
          "consent_date": {
            "description": "Date and hour of the contact consent",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2019-01-01 00:00:00"
          },
          "subscription_method": {
            "description": "Contact subscription method",
            "type": "string",
            "enum": [
              "manual",
              "form",
              "imported",
              "referral",
              "api"
            ],
            "readOnly": true
          },
          "subscription_date": {
            "description": "Date and hour of the contact subscription",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2019-01-01 00:00:00"
          },
          "subscription_form": {
            "description": "Contact subscription form",
            "type": "integer",
            "minimum": 0,
            "readOnly": true
          },
          "unsubscription_method": {
            "description": "Contact unsubscription method",
            "type": "string",
            "enum": [
              "manual",
              "form",
              "unsubscribe_link",
              "bounce",
              "api",
              ""
            ],
            "readOnly": true
          },
          "unsubscription_reason": {
            "description": "Contact unsubscription reason",
            "type": "string",
            "enum": [
              "not_interested",
              "lack_of_time",
              "email_address_change",
              "spam",
              "other",
              ""
            ],
            "readOnly": true
          },
          "unsubscription_observation": {
            "description": "Contact unsubscription observation",
            "type": "string",
            "readOnly": true,
            "example": ""
          },
          "unsubscription_date": {
            "description": "Contact unsubscription date",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "0000-00-00 00:00:00"
          },
          "change_date": {
            "description": "Last modification date of the contact",
            "type": "string",
            "format": "date",
            "readOnly": true,
            "example": "0000-00-00 00:00:00"
          },
          "first_name": {
            "description": "First name of the contact",
            "type": "string",
            "example": "John"
          },
          "last_name": {
            "description": "Last name of the contact",
            "type": "string",
            "example": "Doe"
          },
          "birth_date": {
            "description": "Birth date of the contact",
            "type": "string",
            "format": "date",
            "example": "1975-01-10"
          },
          "language": {
            "title": "language",
            "description": "Current language",
            "type": "string",
            "default": "en",
            "enum": [
              "en",
              "pt",
              "br",
              "es",
              "de",
              "hu",
              "fr"
            ]
          },
          "email": {
            "description": "Email of the contact",
            "type": "string",
            "example": "example@e-goi.com"
          },
          "email_status": {
            "description": "Email channel status",
            "type": "string",
            "default": "active",
            "enum": [
              "active",
              "inactive"
            ],
            "readOnly": true
          },
          "cellphone": {
            "description": "Cellphone of the contact",
            "type": "string",
            "example": "351-300404336"
          },
          "cellphone_status": {
            "description": "Cellphone channel status",
            "type": "string",
            "default": "active",
            "enum": [
              "active",
              "inactive"
            ],
            "readOnly": true
          },
          "phone": {
            "description": "Phone of the contact",
            "type": "string",
            "example": "351-300404336"
          },
          "phone_status": {
            "description": "Phone channel status",
            "type": "string",
            "default": "active",
            "enum": [
              "active",
              "inactive"
            ],
            "readOnly": true
          },
          "push_token_android": {
            "description": "Android push token of the contact",
            "type": "array",
            "items": {
              "properties": {
                "app_id": {
                  "title": "Push App Id",
                  "type": "string",
                  "pattern": "[a-zA-Z0-9_-]*"
                },
                "token": {
                  "description": "Android push app ID",
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "push_token_ios": {
            "description": "IOS push token of the contact",
            "type": "array",
            "items": {
              "properties": {
                "app_id": {
                  "title": "Push App Id",
                  "type": "string",
                  "pattern": "[a-zA-Z0-9_-]*"
                },
                "token": {
                  "description": "Ios push app ID",
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "ContactInsideBaseWithId": {
        "properties": {
          "contact_id": {
            "type": "string",
            "pattern": "[a-fA-F\\d]{10}",
            "example": "8f3a27ef26"
          },
          "status": {
            "description": "Status of the contact",
            "type": "string",
            "default": "active",
            "enum": [
              "active",
              "inactive",
              "removed",
              "unconfirmed"
            ]
          },
          "consent": {
            "description": "Contact consent",
            "type": "string",
            "default": "consent",
            "enum": [
              "any",
              "consent",
              "contract",
              "legitimate_interest",
              "none",
              "protect_vital_interests",
              "public_interests",
              "required_by_law",
              "withdrawn"
            ],
            "readOnly": true
          },
          "consent_date": {
            "description": "Date and hour of the contact consent",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2019-01-01 00:00:00"
          },
          "subscription_method": {
            "description": "Contact subscription method",
            "type": "string",
            "enum": [
              "manual",
              "form",
              "imported",
              "referral",
              "api"
            ],
            "readOnly": true
          },
          "subscription_date": {
            "description": "Date and hour of the contact subscription",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2019-01-01 00:00:00"
          },
          "subscription_form": {
            "description": "Contact subscription form",
            "type": "integer",
            "minimum": 0,
            "readOnly": true
          },
          "unsubscription_method": {
            "description": "Contact unsubscription method",
            "type": "string",
            "enum": [
              "manual",
              "form",
              "unsubscribe_link",
              "bounce",
              "api",
              ""
            ],
            "readOnly": true
          },
          "unsubscription_reason": {
            "description": "Contact unsubscription reason",
            "type": "string",
            "enum": [
              "not_interested",
              "lack_of_time",
              "email_address_change",
              "spam",
              "other",
              ""
            ],
            "readOnly": true
          },
          "unsubscription_observation": {
            "description": "Contact unsubscription observation",
            "type": "string",
            "readOnly": true,
            "example": ""
          },
          "unsubscription_date": {
            "description": "Contact unsubscription date",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "0000-00-00 00:00:00"
          },
          "change_date": {
            "description": "Last modification date of the contact",
            "type": "string",
            "format": "date",
            "readOnly": true,
            "example": "0000-00-00 00:00:00"
          },
          "first_name": {
            "description": "First name of the contact",
            "type": "string",
            "example": "John"
          },
          "last_name": {
            "description": "Last name of the contact",
            "type": "string",
            "example": "Doe"
          },
          "birth_date": {
            "description": "Birth date of the contact",
            "type": "string",
            "format": "date",
            "example": "1975-01-10"
          },
          "language": {
            "title": "language",
            "description": "Current language",
            "type": "string",
            "default": "en",
            "enum": [
              "en",
              "pt",
              "br",
              "es",
              "de",
              "hu",
              "fr"
            ]
          },
          "email": {
            "description": "Email of the contact",
            "type": "string",
            "example": "example@e-goi.com"
          },
          "email_status": {
            "description": "Email channel status",
            "type": "string",
            "default": "active",
            "enum": [
              "active",
              "inactive"
            ],
            "readOnly": true
          },
          "cellphone": {
            "description": "Cellphone of the contact",
            "type": "string",
            "example": "351-300404336"
          },
          "cellphone_status": {
            "description": "Cellphone channel status",
            "type": "string",
            "default": "active",
            "enum": [
              "active",
              "inactive"
            ],
            "readOnly": true
          },
          "phone": {
            "description": "Phone of the contact",
            "type": "string",
            "example": "351-300404336"
          },
          "phone_status": {
            "description": "Phone channel status",
            "type": "string",
            "default": "active",
            "enum": [
              "active",
              "inactive"
            ],
            "readOnly": true
          },
          "push_token_android": {
            "description": "Android push token of the contact",
            "type": "array",
            "items": {
              "properties": {
                "app_id": {
                  "title": "Push App Id",
                  "type": "string",
                  "pattern": "[a-zA-Z0-9_-]*"
                },
                "token": {
                  "description": "Android push app ID",
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "push_token_ios": {
            "description": "IOS push token of the contact",
            "type": "array",
            "items": {
              "properties": {
                "app_id": {
                  "title": "Push App Id",
                  "type": "string",
                  "pattern": "[a-zA-Z0-9_-]*"
                },
                "token": {
                  "description": "Ios push app ID",
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "ContactExtraFieldsSchema": {
        "title": "Contact",
        "description": "Contact Extra schema",
        "properties": {
          "extra": {
            "description": "Array of the contact's extra fields",
            "type": "array",
            "items": {
              "type": "object",
              "oneOf": [
                {
                  "title": "ContactExtraFieldDate",
                  "properties": {
                    "field_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "format": {
                      "description": "Extra field format",
                      "type": "string",
                      "enum": [
                        "date"
                      ],
                      "readOnly": true
                    },
                    "value": {
                      "description": "Extra field value",
                      "type": "string",
                      "format": "date",
                      "example": "2019-01-01"
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ContactExtraFieldText",
                  "properties": {
                    "field_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "format": {
                      "description": "Extra field format",
                      "type": "string",
                      "enum": [
                        "text"
                      ],
                      "readOnly": true
                    },
                    "value": {
                      "description": "Extra field value",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ContactExtraFieldCellphone",
                  "properties": {
                    "field_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "format": {
                      "description": "Extra field format",
                      "type": "string",
                      "enum": [
                        "cellphone"
                      ],
                      "readOnly": true
                    },
                    "value": {
                      "description": "Cellphone  value (country code followed by phone number, split by '-')",
                      "type": "string",
                      "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                      "example": "351-300404336"
                    },
                    "status": {
                      "description": "Extra field status",
                      "type": "string",
                      "enum": [
                        "active",
                        "inactive"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ContactExtraFieldPhone",
                  "properties": {
                    "field_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "format": {
                      "description": "Extra field format",
                      "type": "string",
                      "enum": [
                        "phone"
                      ],
                      "readOnly": true
                    },
                    "value": {
                      "description": "Phone value (country code followed by phone number, split by '-')",
                      "type": "string",
                      "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                      "example": "351-300404336"
                    },
                    "status": {
                      "description": "Extra field status",
                      "type": "string",
                      "enum": [
                        "active",
                        "inactive"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ContactExtraFieldNumber",
                  "properties": {
                    "field_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "format": {
                      "description": "Extra field format",
                      "type": "string",
                      "enum": [
                        "number"
                      ],
                      "readOnly": true
                    },
                    "value": {
                      "description": "Extra field value",
                      "type": "string",
                      "example": "100"
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ContactExtraFieldEmail",
                  "properties": {
                    "field_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "format": {
                      "description": "Extra field format",
                      "type": "string",
                      "enum": [
                        "email"
                      ],
                      "readOnly": true
                    },
                    "value": {
                      "description": "Extra field value",
                      "type": "string"
                    },
                    "status": {
                      "description": "Extra field status",
                      "type": "string",
                      "enum": [
                        "active",
                        "inactive"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ContactExtraFieldOptions",
                  "properties": {
                    "field_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "format": {
                      "description": "Extra field format",
                      "type": "string",
                      "enum": [
                        "options"
                      ],
                      "readOnly": true
                    },
                    "value": {
                      "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                      "type": "array",
                      "items": {
                        "type": "integer"
                      },
                      "example": [
                        1,
                        2
                      ]
                    }
                  },
                  "type": "object"
                }
              ]
            }
          }
        },
        "type": "object"
      },
      "contactStatusFieldsSchema": {
        "title": "Contact",
        "description": "Contact status schema",
        "properties": {
          "email_status": {
            "description": "Email channel status",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          },
          "cellphone_status": {
            "description": "Cellphone channel status",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          },
          "phone_status": {
            "description": "Phone channel status",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          }
        },
        "type": "object"
      },
      "contactBaseExtra": {
        "title": "Contact",
        "description": "Contact Base and Extra schema",
        "type": "object",
        "allOf": [
          {
            "title": "Contact",
            "description": "Contact base",
            "properties": {
              "base": {
                "description": "Contact base fields",
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "contact_id": {
                        "title": "Contact ID",
                        "type": "string",
                        "pattern": "[a-fA-F\\d]{10}",
                        "readOnly": true,
                        "example": "8f3a27ef26"
                      },
                      "status": {
                        "description": "Status of the contact",
                        "type": "string",
                        "default": "active",
                        "enum": [
                          "active",
                          "inactive",
                          "removed",
                          "unconfirmed"
                        ]
                      },
                      "consent": {
                        "description": "Contact consent",
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "example": [
                          "none",
                          "any",
                          "consent",
                          "contract",
                          "legitimate_interest",
                          "required_by_law",
                          "protect_vital_interests",
                          "public_interests",
                          "withdrawn"
                        ]
                      },
                      "consent_date": {
                        "description": "Date and hour of the contact consent",
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "example": "2019-01-01 00:00:00"
                      },
                      "subscription_method": {
                        "description": "Contact subscription method",
                        "type": "string",
                        "enum": [
                          "manual",
                          "form",
                          "imported",
                          "referral",
                          "api"
                        ],
                        "readOnly": true
                      },
                      "subscription_date": {
                        "description": "Date and hour of the contact subscription",
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "example": "2019-01-01 00:00:00"
                      },
                      "subscription_form": {
                        "description": "Contact subscription form",
                        "type": "integer",
                        "minimum": 0,
                        "readOnly": true
                      },
                      "unsubscription_method": {
                        "description": "Contact unsubscription method",
                        "type": "string",
                        "enum": [
                          "manual",
                          "form",
                          "unsubscribe_link",
                          "bounce",
                          "api",
                          ""
                        ],
                        "readOnly": true
                      },
                      "unsubscription_reason": {
                        "description": "Contact unsubscription reason",
                        "type": "string",
                        "enum": [
                          "not_interested",
                          "lack_of_time",
                          "email_address_change",
                          "spam",
                          "other",
                          ""
                        ],
                        "readOnly": true
                      },
                      "unsubscription_observation": {
                        "description": "Contact unsubscription observation",
                        "type": "string",
                        "readOnly": true,
                        "example": ""
                      },
                      "unsubscription_date": {
                        "description": "Contact unsubscription date",
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "example": "0000-00-00 00:00:00"
                      },
                      "change_date": {
                        "description": "Last modification date of the contact",
                        "type": "string",
                        "format": "date",
                        "readOnly": true,
                        "example": "0000-00-00 00:00:00"
                      },
                      "first_name": {
                        "description": "First name of the contact",
                        "type": "string",
                        "example": "John"
                      },
                      "last_name": {
                        "description": "Last name of the contact",
                        "type": "string",
                        "example": "Doe"
                      },
                      "birth_date": {
                        "description": "Birth date of the contact",
                        "type": "string",
                        "format": "date",
                        "example": "1975-01-10"
                      },
                      "language": {
                        "title": "language",
                        "description": "Current language",
                        "type": "string",
                        "default": "en",
                        "enum": [
                          "en",
                          "pt",
                          "br",
                          "es",
                          "de",
                          "hu",
                          "fr"
                        ]
                      },
                      "email": {
                        "description": "Email of the contact",
                        "type": "string",
                        "example": "example@e-goi.com"
                      },
                      "email_status": {
                        "description": "Email channel status",
                        "type": "string",
                        "default": "active",
                        "enum": [
                          "active",
                          "inactive"
                        ],
                        "readOnly": true
                      },
                      "cellphone": {
                        "description": "Cellphone of the contact",
                        "type": "string",
                        "example": "351-300404336"
                      },
                      "cellphone_status": {
                        "description": "Cellphone channel status",
                        "type": "string",
                        "default": "active",
                        "enum": [
                          "active",
                          "inactive"
                        ],
                        "readOnly": true
                      },
                      "phone": {
                        "description": "Phone of the contact",
                        "type": "string",
                        "example": "351-300404336"
                      },
                      "phone_status": {
                        "description": "Phone channel status",
                        "type": "string",
                        "default": "active",
                        "enum": [
                          "active",
                          "inactive"
                        ],
                        "readOnly": true
                      },
                      "push_token_android": {
                        "description": "Android push token of the contact",
                        "type": "array",
                        "items": {
                          "properties": {
                            "app_id": {
                              "title": "Push App Id",
                              "type": "string",
                              "pattern": "[a-zA-Z0-9_-]*"
                            },
                            "token": {
                              "description": "Android push app ID",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "push_token_ios": {
                        "description": "IOS push token of the contact",
                        "type": "array",
                        "items": {
                          "properties": {
                            "app_id": {
                              "title": "Push App Id",
                              "type": "string",
                              "pattern": "[a-zA-Z0-9_-]*"
                            },
                            "token": {
                              "description": "Ios push app ID",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Contact",
            "description": "Contact Extra schema",
            "properties": {
              "extra": {
                "description": "Array of the contact's extra fields",
                "type": "array",
                "items": {
                  "type": "object",
                  "oneOf": [
                    {
                      "title": "ContactExtraFieldDate",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "date"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "format": "date",
                          "example": "2019-01-01"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldText",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "text"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldCellphone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "cellphone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Cellphone  value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldPhone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "phone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Phone value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldNumber",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "number"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "example": "100"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldEmail",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "email"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldOptions",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "options"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                          "type": "array",
                          "items": {
                            "type": "integer"
                          },
                          "example": [
                            1,
                            2
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "type": "object"
          }
        ]
      },
      "contactBaseExtraPost": {
        "title": "Contact",
        "description": "Contact Base and Extra schema",
        "type": "object",
        "allOf": [
          {
            "title": "Contact",
            "description": "Contact base",
            "properties": {
              "base": {
                "description": "Contact base fields",
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "contact_id": {
                        "title": "Contact ID",
                        "type": "string",
                        "pattern": "[a-fA-F\\d]{10}",
                        "readOnly": true,
                        "example": "8f3a27ef26"
                      },
                      "status": {
                        "description": "Status of the contact",
                        "type": "string",
                        "default": "active",
                        "enum": [
                          "active",
                          "inactive",
                          "removed",
                          "unconfirmed"
                        ]
                      },
                      "first_name": {
                        "description": "First name of the contact",
                        "type": "string",
                        "example": "John"
                      },
                      "last_name": {
                        "description": "Last name of the contact",
                        "type": "string",
                        "example": "Doe"
                      },
                      "birth_date": {
                        "description": "Birth date of the contact",
                        "type": "string",
                        "format": "date",
                        "example": "1975-01-10"
                      },
                      "language": {
                        "title": "language",
                        "description": "Current language",
                        "type": "string",
                        "default": "en",
                        "enum": [
                          "en",
                          "pt",
                          "br",
                          "es",
                          "de",
                          "hu",
                          "fr"
                        ]
                      },
                      "email": {
                        "description": "Email of the contact",
                        "type": "string",
                        "example": "example@e-goi.com"
                      },
                      "email_status": {
                        "description": "Email channel status",
                        "type": "string",
                        "enum": [
                          "active",
                          "inactive"
                        ]
                      },
                      "cellphone": {
                        "description": "Cellphone of the contact (country code followed by phone number, split by '-')",
                        "type": "string",
                        "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                        "example": "351-300404336"
                      },
                      "cellphone_status": {
                        "description": "Cellphone channel status",
                        "type": "string",
                        "enum": [
                          "active",
                          "inactive"
                        ]
                      },
                      "phone": {
                        "description": "Phone of the contact (country code followed by phone number, split by '-')",
                        "type": "string",
                        "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                        "example": "351-300404336"
                      },
                      "phone_status": {
                        "description": "Phone channel status",
                        "type": "string",
                        "enum": [
                          "active",
                          "inactive"
                        ]
                      },
                      "push_token_android": {
                        "description": "Android push token of the contact",
                        "type": "array",
                        "items": {
                          "properties": {
                            "app_id": {
                              "title": "Push App Id",
                              "type": "string",
                              "pattern": "[a-zA-Z0-9_-]*"
                            },
                            "token": {
                              "description": "Android push app ID",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "push_token_ios": {
                        "description": "IOS push token of the contact",
                        "type": "array",
                        "items": {
                          "properties": {
                            "app_id": {
                              "title": "Push App Id",
                              "type": "string",
                              "pattern": "[a-zA-Z0-9_-]*"
                            },
                            "token": {
                              "description": "Ios push app ID",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            },
            "type": "object",
            "x-sort-index": 1
          },
          {
            "title": "Contact",
            "description": "Contact Extra schema",
            "properties": {
              "extra": {
                "description": "Array of the contact's extra fields",
                "type": "array",
                "items": {
                  "type": "object",
                  "oneOf": [
                    {
                      "title": "ContactExtraFieldDate",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "date"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "format": "date",
                          "example": "2019-01-01"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldText",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "text"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldCellphone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "cellphone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Cellphone  value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldPhone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "phone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Phone value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldNumber",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "number"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "example": "100"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldEmail",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "email"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldOptions",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "options"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                          "type": "array",
                          "items": {
                            "type": "integer"
                          },
                          "example": [
                            1,
                            2
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "type": "object"
          },
          {
            "title": "Contact",
            "description": "UTM, Referrer and Advertising parameters for the Contact",
            "type": "object",
            "allOf": [
              {
                "title": "Contact",
                "description": "Contact Utm",
                "properties": {
                  "utm": {
                    "description": "Contact Urchin Tracking Module (utm) fields",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "utm_source": {
                            "description": "Utm source value",
                            "type": "string",
                            "example": "source"
                          },
                          "utm_medium": {
                            "description": "Utm medium value",
                            "type": "string",
                            "example": "medium"
                          },
                          "utm_campaign": {
                            "description": "Utm campaign value",
                            "type": "string",
                            "example": "campaign"
                          },
                          "utm_content": {
                            "description": "Utm content value",
                            "type": "string",
                            "example": "content"
                          },
                          "utm_term": {
                            "description": "Utm source value",
                            "type": "string",
                            "example": "term"
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Contact",
                "description": "Contact Referrer",
                "properties": {
                  "referrer": {
                    "description": "Contact referrer fields",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "referrer": {
                            "description": "Referrer value",
                            "type": "string",
                            "example": "referrer"
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Contact",
                "description": "Contact Advertising",
                "properties": {
                  "advertising": {
                    "description": "Contact advertising fields",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "gclid": {
                            "description": "Identifier that Google uses in Google Ads",
                            "type": "string",
                            "example": "google"
                          },
                          "msclkid": {
                            "description": "Identifier that Microsoft uses in Microsoft Ads",
                            "type": "string",
                            "example": "microsoft"
                          },
                          "fbclid": {
                            "description": "Identifier that Facebook uses in Facebook Ads",
                            "type": "string",
                            "example": "facebook"
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "contactFieldIdBaseExtraPost": {
        "title": "Contact",
        "description": "Contact Update by field Base and Extra schema",
        "type": "object",
        "allOf": [
          {
            "title": "Contact",
            "description": "Contact By Field Id",
            "properties": {
              "compare_field": {
                "description": "Contact compare fields",
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "field_id": {
                        "description": "Field Id from wich you wish to identify the contact (must be set as unique in list)",
                        "type": "string",
                        "example": "email"
                      },
                      "value": {
                        "description": "Value for identify the contact",
                        "type": "string",
                        "example": "example@e-goi.com"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            },
            "type": "object",
            "x-sort-index": 1
          },
          {
            "title": "Contact",
            "description": "Contact base",
            "properties": {
              "base": {
                "description": "Contact base fields",
                "properties": {
                  "contact_id": {
                    "title": "Contact ID",
                    "type": "string",
                    "pattern": "[a-fA-F\\d]{10}",
                    "readOnly": true,
                    "example": "8f3a27ef26"
                  },
                  "status": {
                    "description": "Status of the contact",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive",
                      "unconfirmed"
                    ]
                  },
                  "consent": {
                    "description": "Contact consent",
                    "type": "string",
                    "enum": [
                      "any",
                      "consent",
                      "contract",
                      "legitimate_interest",
                      "none",
                      "protect_vital_interests",
                      "public_interests",
                      "required_by_law",
                      "withdrawn"
                    ]
                  },
                  "first_name": {
                    "description": "First name of the contact",
                    "type": "string",
                    "example": "John"
                  },
                  "last_name": {
                    "description": "Last name of the contact",
                    "type": "string",
                    "example": "Doe"
                  },
                  "birth_date": {
                    "description": "Birth date of the contact",
                    "type": "string",
                    "format": "date",
                    "example": "1975-01-10"
                  },
                  "language": {
                    "title": "language",
                    "description": "Current language",
                    "type": "string",
                    "default": "en",
                    "enum": [
                      "en",
                      "pt",
                      "br",
                      "es",
                      "de",
                      "hu",
                      "fr"
                    ]
                  },
                  "email": {
                    "description": "Email of the contact",
                    "type": "string",
                    "example": "example@e-goi.com"
                  },
                  "email_status": {
                    "description": "Email channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "cellphone": {
                    "description": "Cellphone of the contact (country code followed by phone number, split by '-')",
                    "type": "string",
                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                    "example": "351-300404336"
                  },
                  "cellphone_status": {
                    "description": "Cellphone channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "phone": {
                    "description": "Phone of the contact (country code followed by phone number, split by '-')",
                    "type": "string",
                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                    "example": "351-300404336"
                  },
                  "phone_status": {
                    "description": "Phone channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "push_token_android": {
                    "description": "Android push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Android push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "push_token_ios": {
                    "description": "IOS push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Ios push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "Contact",
            "description": "Contact Extra schema",
            "properties": {
              "extra": {
                "description": "Array of the contact's extra fields",
                "type": "array",
                "items": {
                  "type": "object",
                  "oneOf": [
                    {
                      "title": "ContactExtraFieldDate",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "date"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "format": "date",
                          "example": "2019-01-01"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldText",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "text"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldCellphone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "cellphone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Cellphone  value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldPhone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "phone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Phone value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldNumber",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "number"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "example": "100"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldEmail",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "email"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldOptions",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "options"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                          "type": "array",
                          "items": {
                            "type": "integer"
                          },
                          "example": [
                            1,
                            2
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "type": "object"
          }
        ]
      },
      "contactUtmReferrerAdvertisingPost": {
        "title": "Contact",
        "description": "UTM, Referrer and Advertising parameters for the Contact",
        "type": "object",
        "allOf": [
          {
            "title": "Contact",
            "description": "Contact Utm",
            "properties": {
              "utm": {
                "description": "Contact Urchin Tracking Module (utm) fields",
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "utm_source": {
                        "description": "Utm source value",
                        "type": "string",
                        "example": "source"
                      },
                      "utm_medium": {
                        "description": "Utm medium value",
                        "type": "string",
                        "example": "medium"
                      },
                      "utm_campaign": {
                        "description": "Utm campaign value",
                        "type": "string",
                        "example": "campaign"
                      },
                      "utm_content": {
                        "description": "Utm content value",
                        "type": "string",
                        "example": "content"
                      },
                      "utm_term": {
                        "description": "Utm source value",
                        "type": "string",
                        "example": "term"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Contact",
            "description": "Contact Referrer",
            "properties": {
              "referrer": {
                "description": "Contact referrer fields",
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "referrer": {
                        "description": "Referrer value",
                        "type": "string",
                        "example": "referrer"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Contact",
            "description": "Contact Advertising",
            "properties": {
              "advertising": {
                "description": "Contact advertising fields",
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "gclid": {
                        "description": "Identifier that Google uses in Google Ads",
                        "type": "string",
                        "example": "google"
                      },
                      "msclkid": {
                        "description": "Identifier that Microsoft uses in Microsoft Ads",
                        "type": "string",
                        "example": "microsoft"
                      },
                      "fbclid": {
                        "description": "Identifier that Facebook uses in Facebook Ads",
                        "type": "string",
                        "example": "facebook"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "contactBaseExtraFull": {
        "title": "Contact",
        "description": "Contact Base and Extra schema with contact_id",
        "type": "object",
        "allOf": [
          {
            "title": "Contact",
            "description": "Contact base with contact_id",
            "properties": {
              "base": {
                "description": "Contact base fields with contact_id",
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "contact_id": {
                        "type": "string",
                        "pattern": "[a-fA-F\\d]{10}",
                        "example": "8f3a27ef26"
                      },
                      "status": {
                        "description": "Status of the contact",
                        "type": "string",
                        "default": "active",
                        "enum": [
                          "active",
                          "inactive",
                          "removed",
                          "unconfirmed"
                        ]
                      },
                      "consent": {
                        "description": "Contact consent",
                        "type": "string",
                        "default": "consent",
                        "enum": [
                          "any",
                          "consent",
                          "contract",
                          "legitimate_interest",
                          "none",
                          "protect_vital_interests",
                          "public_interests",
                          "required_by_law",
                          "withdrawn"
                        ],
                        "readOnly": true
                      },
                      "consent_date": {
                        "description": "Date and hour of the contact consent",
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "example": "2019-01-01 00:00:00"
                      },
                      "subscription_method": {
                        "description": "Contact subscription method",
                        "type": "string",
                        "enum": [
                          "manual",
                          "form",
                          "imported",
                          "referral",
                          "api"
                        ],
                        "readOnly": true
                      },
                      "subscription_date": {
                        "description": "Date and hour of the contact subscription",
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "example": "2019-01-01 00:00:00"
                      },
                      "subscription_form": {
                        "description": "Contact subscription form",
                        "type": "integer",
                        "minimum": 0,
                        "readOnly": true
                      },
                      "unsubscription_method": {
                        "description": "Contact unsubscription method",
                        "type": "string",
                        "enum": [
                          "manual",
                          "form",
                          "unsubscribe_link",
                          "bounce",
                          "api",
                          ""
                        ],
                        "readOnly": true
                      },
                      "unsubscription_reason": {
                        "description": "Contact unsubscription reason",
                        "type": "string",
                        "enum": [
                          "not_interested",
                          "lack_of_time",
                          "email_address_change",
                          "spam",
                          "other",
                          ""
                        ],
                        "readOnly": true
                      },
                      "unsubscription_observation": {
                        "description": "Contact unsubscription observation",
                        "type": "string",
                        "readOnly": true,
                        "example": ""
                      },
                      "unsubscription_date": {
                        "description": "Contact unsubscription date",
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "example": "0000-00-00 00:00:00"
                      },
                      "change_date": {
                        "description": "Last modification date of the contact",
                        "type": "string",
                        "format": "date",
                        "readOnly": true,
                        "example": "0000-00-00 00:00:00"
                      },
                      "first_name": {
                        "description": "First name of the contact",
                        "type": "string",
                        "example": "John"
                      },
                      "last_name": {
                        "description": "Last name of the contact",
                        "type": "string",
                        "example": "Doe"
                      },
                      "birth_date": {
                        "description": "Birth date of the contact",
                        "type": "string",
                        "format": "date",
                        "example": "1975-01-10"
                      },
                      "language": {
                        "title": "language",
                        "description": "Current language",
                        "type": "string",
                        "default": "en",
                        "enum": [
                          "en",
                          "pt",
                          "br",
                          "es",
                          "de",
                          "hu",
                          "fr"
                        ]
                      },
                      "email": {
                        "description": "Email of the contact",
                        "type": "string",
                        "example": "example@e-goi.com"
                      },
                      "email_status": {
                        "description": "Email channel status",
                        "type": "string",
                        "default": "active",
                        "enum": [
                          "active",
                          "inactive"
                        ],
                        "readOnly": true
                      },
                      "cellphone": {
                        "description": "Cellphone of the contact",
                        "type": "string",
                        "example": "351-300404336"
                      },
                      "cellphone_status": {
                        "description": "Cellphone channel status",
                        "type": "string",
                        "default": "active",
                        "enum": [
                          "active",
                          "inactive"
                        ],
                        "readOnly": true
                      },
                      "phone": {
                        "description": "Phone of the contact",
                        "type": "string",
                        "example": "351-300404336"
                      },
                      "phone_status": {
                        "description": "Phone channel status",
                        "type": "string",
                        "default": "active",
                        "enum": [
                          "active",
                          "inactive"
                        ],
                        "readOnly": true
                      },
                      "push_token_android": {
                        "description": "Android push token of the contact",
                        "type": "array",
                        "items": {
                          "properties": {
                            "app_id": {
                              "title": "Push App Id",
                              "type": "string",
                              "pattern": "[a-zA-Z0-9_-]*"
                            },
                            "token": {
                              "description": "Android push app ID",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "push_token_ios": {
                        "description": "IOS push token of the contact",
                        "type": "array",
                        "items": {
                          "properties": {
                            "app_id": {
                              "title": "Push App Id",
                              "type": "string",
                              "pattern": "[a-zA-Z0-9_-]*"
                            },
                            "token": {
                              "description": "Ios push app ID",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Contact",
            "description": "Contact Extra schema",
            "properties": {
              "extra": {
                "description": "Array of the contact's extra fields",
                "type": "array",
                "items": {
                  "type": "object",
                  "oneOf": [
                    {
                      "title": "ContactExtraFieldDate",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "date"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "format": "date",
                          "example": "2019-01-01"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldText",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "text"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldCellphone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "cellphone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Cellphone  value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldPhone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "phone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Phone value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldNumber",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "number"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "example": "100"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldEmail",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "email"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldOptions",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "options"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                          "type": "array",
                          "items": {
                            "type": "integer"
                          },
                          "example": [
                            1,
                            2
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "type": "object"
          }
        ]
      },
      "contactBaseStatusExtra": {
        "title": "Contact",
        "description": "Contact schema",
        "type": "object",
        "allOf": [
          {
            "title": "Contact",
            "description": "Contact base",
            "properties": {
              "base": {
                "description": "Contact base fields",
                "properties": {
                  "contact_id": {
                    "title": "Contact ID",
                    "type": "string",
                    "pattern": "[a-fA-F\\d]{10}",
                    "readOnly": true,
                    "example": "8f3a27ef26"
                  },
                  "status": {
                    "description": "Status of the contact",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive",
                      "removed",
                      "unconfirmed"
                    ]
                  },
                  "consent": {
                    "description": "Contact consent",
                    "type": "string",
                    "enum": [
                      "any",
                      "consent",
                      "contract",
                      "legitimate_interest",
                      "none",
                      "protect_vital_interests",
                      "public_interests",
                      "required_by_law",
                      "withdrawn"
                    ]
                  },
                  "first_name": {
                    "description": "First name of the contact",
                    "type": "string",
                    "example": "John"
                  },
                  "last_name": {
                    "description": "Last name of the contact",
                    "type": "string",
                    "example": "Doe"
                  },
                  "birth_date": {
                    "description": "Birth date of the contact",
                    "type": "string",
                    "format": "date",
                    "example": "1975-01-10"
                  },
                  "language": {
                    "title": "language",
                    "description": "Current language",
                    "type": "string",
                    "default": "en",
                    "enum": [
                      "en",
                      "pt",
                      "br",
                      "es",
                      "de",
                      "hu",
                      "fr"
                    ]
                  },
                  "email": {
                    "description": "Email of the contact",
                    "type": "string",
                    "example": "example@e-goi.com"
                  },
                  "email_status": {
                    "description": "Email channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "cellphone": {
                    "description": "Cellphone of the contact (country code followed by phone number, split by '-')",
                    "type": "string",
                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                    "example": "351-300404336"
                  },
                  "cellphone_status": {
                    "description": "Cellphone channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "phone": {
                    "description": "Phone of the contact (country code followed by phone number, split by '-')",
                    "type": "string",
                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                    "example": "351-300404336"
                  },
                  "phone_status": {
                    "description": "Phone channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "push_token_android": {
                    "description": "Android push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Android push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "push_token_ios": {
                    "description": "IOS push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Ios push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "Contact",
            "description": "Contact Extra schema",
            "properties": {
              "extra": {
                "description": "Array of the contact's extra fields",
                "type": "array",
                "items": {
                  "type": "object",
                  "oneOf": [
                    {
                      "title": "ContactExtraFieldDate",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "date"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "format": "date",
                          "example": "2019-01-01"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldText",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "text"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldCellphone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "cellphone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Cellphone  value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldPhone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "phone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Phone value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldNumber",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "number"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "example": "100"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldEmail",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "email"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldOptions",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "options"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                          "type": "array",
                          "items": {
                            "type": "integer"
                          },
                          "example": [
                            1,
                            2
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "type": "object"
          }
        ]
      },
      "contactBaseStatusExtraNoRemoved": {
        "title": "Contact",
        "description": "Contact schema",
        "type": "object",
        "allOf": [
          {
            "title": "Contact",
            "description": "Contact base",
            "properties": {
              "base": {
                "description": "Contact base fields",
                "properties": {
                  "contact_id": {
                    "title": "Contact ID",
                    "type": "string",
                    "pattern": "[a-fA-F\\d]{10}",
                    "readOnly": true,
                    "example": "8f3a27ef26"
                  },
                  "status": {
                    "description": "Status of the contact",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive",
                      "unconfirmed"
                    ]
                  },
                  "consent": {
                    "description": "Contact consent",
                    "type": "string",
                    "enum": [
                      "any",
                      "consent",
                      "contract",
                      "legitimate_interest",
                      "none",
                      "protect_vital_interests",
                      "public_interests",
                      "required_by_law",
                      "withdrawn"
                    ]
                  },
                  "first_name": {
                    "description": "First name of the contact",
                    "type": "string",
                    "example": "John"
                  },
                  "last_name": {
                    "description": "Last name of the contact",
                    "type": "string",
                    "example": "Doe"
                  },
                  "birth_date": {
                    "description": "Birth date of the contact",
                    "type": "string",
                    "format": "date",
                    "example": "1975-01-10"
                  },
                  "language": {
                    "title": "language",
                    "description": "Current language",
                    "type": "string",
                    "default": "en",
                    "enum": [
                      "en",
                      "pt",
                      "br",
                      "es",
                      "de",
                      "hu",
                      "fr"
                    ]
                  },
                  "email": {
                    "description": "Email of the contact",
                    "type": "string",
                    "example": "example@e-goi.com"
                  },
                  "email_status": {
                    "description": "Email channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "cellphone": {
                    "description": "Cellphone of the contact (country code followed by phone number, split by '-')",
                    "type": "string",
                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                    "example": "351-300404336"
                  },
                  "cellphone_status": {
                    "description": "Cellphone channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "phone": {
                    "description": "Phone of the contact (country code followed by phone number, split by '-')",
                    "type": "string",
                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                    "example": "351-300404336"
                  },
                  "phone_status": {
                    "description": "Phone channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "push_token_android": {
                    "description": "Android push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Android push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "push_token_ios": {
                    "description": "IOS push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Ios push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "Contact",
            "description": "Contact Extra schema",
            "properties": {
              "extra": {
                "description": "Array of the contact's extra fields",
                "type": "array",
                "items": {
                  "type": "object",
                  "oneOf": [
                    {
                      "title": "ContactExtraFieldDate",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "date"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "format": "date",
                          "example": "2019-01-01"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldText",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "text"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldCellphone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "cellphone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Cellphone  value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldPhone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "phone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Phone value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldNumber",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "number"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "example": "100"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldEmail",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "email"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldOptions",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "options"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                          "type": "array",
                          "items": {
                            "type": "integer"
                          },
                          "example": [
                            1,
                            2
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "type": "object"
          }
        ]
      },
      "contactTags": {
        "properties": {
          "tags": {
            "description": "Array of tags for this contact",
            "type": "array",
            "items": {
              "type": "integer"
            },
            "readOnly": true,
            "example": [
              1,
              2
            ]
          }
        },
        "type": "object"
      },
      "ContactExtraFields": {
        "type": "object",
        "oneOf": [
          {
            "title": "ContactExtraFieldDate",
            "properties": {
              "field_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "format": {
                "description": "Extra field format",
                "type": "string",
                "enum": [
                  "date"
                ],
                "readOnly": true
              },
              "value": {
                "description": "Extra field value",
                "type": "string",
                "format": "date",
                "example": "2019-01-01"
              }
            },
            "type": "object"
          },
          {
            "title": "ContactExtraFieldText",
            "properties": {
              "field_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "format": {
                "description": "Extra field format",
                "type": "string",
                "enum": [
                  "text"
                ],
                "readOnly": true
              },
              "value": {
                "description": "Extra field value",
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "title": "ContactExtraFieldCellphone",
            "properties": {
              "field_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "format": {
                "description": "Extra field format",
                "type": "string",
                "enum": [
                  "cellphone"
                ],
                "readOnly": true
              },
              "value": {
                "description": "Cellphone  value (country code followed by phone number, split by '-')",
                "type": "string",
                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                "example": "351-300404336"
              },
              "status": {
                "description": "Extra field status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "ContactExtraFieldPhone",
            "properties": {
              "field_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "format": {
                "description": "Extra field format",
                "type": "string",
                "enum": [
                  "phone"
                ],
                "readOnly": true
              },
              "value": {
                "description": "Phone value (country code followed by phone number, split by '-')",
                "type": "string",
                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                "example": "351-300404336"
              },
              "status": {
                "description": "Extra field status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "ContactExtraFieldNumber",
            "properties": {
              "field_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "format": {
                "description": "Extra field format",
                "type": "string",
                "enum": [
                  "number"
                ],
                "readOnly": true
              },
              "value": {
                "description": "Extra field value",
                "type": "string",
                "example": "100"
              }
            },
            "type": "object"
          },
          {
            "title": "ContactExtraFieldEmail",
            "properties": {
              "field_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "format": {
                "description": "Extra field format",
                "type": "string",
                "enum": [
                  "email"
                ],
                "readOnly": true
              },
              "value": {
                "description": "Extra field value",
                "type": "string"
              },
              "status": {
                "description": "Extra field status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "ContactExtraFieldOptions",
            "properties": {
              "field_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "format": {
                "description": "Extra field format",
                "type": "string",
                "enum": [
                  "options"
                ],
                "readOnly": true
              },
              "value": {
                "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "example": [
                  1,
                  2
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "ContactExtraFieldDate": {
        "title": "ContactExtraFieldDate",
        "properties": {
          "field_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "format": {
            "description": "Extra field format",
            "type": "string",
            "enum": [
              "date"
            ],
            "readOnly": true
          },
          "value": {
            "description": "Extra field value",
            "type": "string",
            "format": "date",
            "example": "2019-01-01"
          }
        },
        "type": "object"
      },
      "ContactExtraFieldText": {
        "title": "ContactExtraFieldText",
        "properties": {
          "field_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "format": {
            "description": "Extra field format",
            "type": "string",
            "enum": [
              "text"
            ],
            "readOnly": true
          },
          "value": {
            "description": "Extra field value",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ContactExtraFieldCellphone": {
        "title": "ContactExtraFieldCellphone",
        "properties": {
          "field_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "format": {
            "description": "Extra field format",
            "type": "string",
            "enum": [
              "cellphone"
            ],
            "readOnly": true
          },
          "value": {
            "description": "Cellphone  value (country code followed by phone number, split by '-')",
            "type": "string",
            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
            "example": "351-300404336"
          },
          "status": {
            "description": "Extra field status",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          }
        },
        "type": "object"
      },
      "ContactExtraFieldPhone": {
        "title": "ContactExtraFieldPhone",
        "properties": {
          "field_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "format": {
            "description": "Extra field format",
            "type": "string",
            "enum": [
              "phone"
            ],
            "readOnly": true
          },
          "value": {
            "description": "Phone value (country code followed by phone number, split by '-')",
            "type": "string",
            "pattern": "^(\\d){1,3}-(\\d){4,20}$",
            "example": "351-300404336"
          },
          "status": {
            "description": "Extra field status",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          }
        },
        "type": "object"
      },
      "ContactExtraFieldNumber": {
        "title": "ContactExtraFieldNumber",
        "properties": {
          "field_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "format": {
            "description": "Extra field format",
            "type": "string",
            "enum": [
              "number"
            ],
            "readOnly": true
          },
          "value": {
            "description": "Extra field value",
            "type": "string",
            "example": "100"
          }
        },
        "type": "object"
      },
      "ContactExtraFieldEmail": {
        "title": "ContactExtraFieldEmail",
        "properties": {
          "field_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "format": {
            "description": "Extra field format",
            "type": "string",
            "enum": [
              "email"
            ],
            "readOnly": true
          },
          "value": {
            "description": "Extra field value",
            "type": "string"
          },
          "status": {
            "description": "Extra field status",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          }
        },
        "type": "object"
      },
      "ContactExtraFieldOptions": {
        "title": "ContactExtraFieldOptions",
        "properties": {
          "field_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "format": {
            "description": "Extra field format",
            "type": "string",
            "enum": [
              "options"
            ],
            "readOnly": true
          },
          "value": {
            "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2
            ]
          }
        },
        "type": "object"
      },
      "unsubscriptionObject": {
        "title": "unsubscription Object",
        "properties": {
          "unsubscription_method": {
            "description": "Unsubcription Method",
            "type": "string",
            "enum": [
              "manual",
              "form",
              "unsubscribe_link",
              "bounce",
              "api"
            ]
          },
          "unsubscription_reason": {
            "description": "Unsubcription Reason",
            "type": "string",
            "enum": [
              "not_interested",
              "lack_of_time",
              "email_address_change",
              "spam",
              "other"
            ]
          },
          "unsubscription_observation": {
            "description": "Unsubcription Observation",
            "type": "string"
          }
        },
        "type": "object"
      },
      "CreateContactResponse": {
        "title": "CreateContactResponse",
        "description": "Create contact response schema",
        "properties": {
          "contact_id": {
            "title": "Contact ID",
            "type": "string",
            "pattern": "[a-fA-F\\d]{10}",
            "readOnly": true,
            "example": "8f3a27ef26"
          }
        },
        "type": "object"
      },
      "ActivateContactsRequest": {
        "title": "Activate Contacts Request",
        "description": "Activate contacts request schema",
        "required": [
          "type"
        ],
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "all": "#/components/schemas/ActivateContactsAll",
            "contacts": "#/components/schemas/ActivateContactsMany"
          }
        },
        "oneOf": [
          {
            "title": "Activate Contacts All",
            "properties": {
              "type": {
                "description": "Activates the contacts in the whole list (excluding removed contacts)",
                "type": "string",
                "enum": [
                  "all"
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Activate Contacts Many",
            "properties": {
              "type": {
                "description": "Activates the provided contacts (excluding removed contacts)",
                "type": "string",
                "enum": [
                  "contacts"
                ]
              },
              "contacts": {
                "description": "Array of contact IDs to activate",
                "type": "array",
                "items": {
                  "title": "Contact ID",
                  "type": "string",
                  "pattern": "[a-fA-F\\d]{10}",
                  "example": "8f3a27ef26"
                },
                "minItems": 1,
                "uniqueItems": true
              }
            },
            "type": "object"
          }
        ]
      },
      "ActivateContactsAll": {
        "title": "Activate Contacts All",
        "properties": {
          "type": {
            "description": "Activates the contacts in the whole list (excluding removed contacts)",
            "type": "string",
            "enum": [
              "all"
            ]
          }
        },
        "type": "object"
      },
      "ActivateContactsMany": {
        "title": "Activate Contacts Many",
        "properties": {
          "type": {
            "description": "Activates the provided contacts (excluding removed contacts)",
            "type": "string",
            "enum": [
              "contacts"
            ]
          },
          "contacts": {
            "description": "Array of contact IDs to activate",
            "type": "array",
            "items": {
              "title": "Contact ID",
              "type": "string",
              "pattern": "[a-fA-F\\d]{10}",
              "example": "8f3a27ef26"
            },
            "minItems": 1,
            "uniqueItems": true
          }
        },
        "type": "object"
      },
      "AttachTagRequest": {
        "title": "Attach Tag Request",
        "description": "Attach tag to contact request schema",
        "type": "object",
        "oneOf": [
          {
            "title": "Attach by Contacts",
            "required": [
              "contacts",
              "tag_id"
            ],
            "properties": {
              "tag_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "contacts": {
                "description": "Array of contact IDs to attach the tag",
                "type": "array",
                "items": {
                  "title": "Contact ID",
                  "type": "string",
                  "pattern": "[a-fA-F\\d]{10}",
                  "example": "8f3a27ef26"
                },
                "minItems": 1,
                "uniqueItems": true
              }
            },
            "type": "object"
          },
          {
            "title": "Attach by Segment",
            "required": [
              "segment_id",
              "tag_id"
            ],
            "properties": {
              "tag_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "segment_id": {
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "title": "Attach by Field Id",
            "required": [
              "field_id",
              "contacts",
              "tag_id"
            ],
            "properties": {
              "tag_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "field_id": {
                "title": "FieldId",
                "type": "string",
                "pattern": "[a-zA-Z0-9_-]*"
              },
              "contacts": {
                "description": "Array of contacts to attach the tag",
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "example"
                },
                "minItems": 1,
                "uniqueItems": true
              }
            },
            "type": "object"
          },
          {
            "title": "Attach Tags by Contacts",
            "required": [
              "contacts",
              "tags"
            ],
            "properties": {
              "tags": {
                "description": "Array of tag IDs to attach to the contacts",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "minItems": 1,
                "uniqueItems": true
              },
              "contacts": {
                "description": "Array of contact IDs to attach the tags",
                "type": "array",
                "items": {
                  "title": "Contact ID",
                  "type": "string",
                  "pattern": "[a-fA-F\\d]{10}",
                  "example": "8f3a27ef26"
                },
                "minItems": 1,
                "uniqueItems": true
              }
            },
            "type": "object"
          }
        ]
      },
      "AttachTagResponse": {
        "title": "Attach Tag Response",
        "description": "Attach tag to contact response schema",
        "properties": {
          "tag_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "success": {
            "description": "Array of contacts where the tag was successfully attached",
            "type": "array",
            "items": {
              "title": "Contact ID",
              "type": "string",
              "pattern": "[a-fA-F\\d]{10}",
              "readOnly": true,
              "example": "8f3a27ef26"
            }
          },
          "error": {
            "description": "Array of contacts where the tag was not successfully attached",
            "type": "array",
            "items": {
              "title": "Contact ID",
              "type": "string",
              "pattern": "[a-fA-F\\d]{10}",
              "readOnly": true,
              "example": "8f3a27ef26"
            }
          }
        },
        "type": "object",
        "example": {
          "tag_id": 1,
          "success": [
            "8f3a27ef26",
            "7a5b21ca17"
          ],
          "error": {
            "invalid_contact": [
              "aa3b21ef1a"
            ],
            "has_tag_id": [
              "69cca8a466",
              "084862c319"
            ]
          }
        }
      },
      "DeactivateContactsRequest": {
        "title": "Deactivate Contacts Request",
        "description": "Deactivate contacts request schema",
        "required": [
          "type"
        ],
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "all": "#/components/schemas/DeactivateContactsAll",
            "contacts": "#/components/schemas/DeactivateContactsMany"
          }
        },
        "oneOf": [
          {
            "title": "Deactivate Contacts All",
            "properties": {
              "type": {
                "description": "Deactivates the contacts in the whole list (excluding removed contacts)",
                "type": "string",
                "enum": [
                  "all"
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Deactivate Contacts Many",
            "properties": {
              "type": {
                "description": "Deactivates the provided contacts (excluding removed contacts)",
                "type": "string",
                "enum": [
                  "contacts"
                ]
              },
              "contacts": {
                "description": "Array of contact IDs to activate",
                "type": "array",
                "items": {
                  "title": "Contact ID",
                  "type": "string",
                  "pattern": "[a-fA-F\\d]{10}",
                  "example": "8f3a27ef26"
                },
                "minItems": 1,
                "uniqueItems": true
              }
            },
            "type": "object"
          }
        ]
      },
      "DeactivateContactsAll": {
        "title": "Deactivate Contacts All",
        "properties": {
          "type": {
            "description": "Deactivates the contacts in the whole list (excluding removed contacts)",
            "type": "string",
            "enum": [
              "all"
            ]
          }
        },
        "type": "object"
      },
      "DeactivateContactsMany": {
        "title": "Deactivate Contacts Many",
        "properties": {
          "type": {
            "description": "Deactivates the provided contacts (excluding removed contacts)",
            "type": "string",
            "enum": [
              "contacts"
            ]
          },
          "contacts": {
            "description": "Array of contact IDs to activate",
            "type": "array",
            "items": {
              "title": "Contact ID",
              "type": "string",
              "pattern": "[a-fA-F\\d]{10}",
              "example": "8f3a27ef26"
            },
            "minItems": 1,
            "uniqueItems": true
          }
        },
        "type": "object"
      },
      "DetachTagRequest": {
        "title": "Detach Tag Request",
        "description": "Detach tag to contact request schema",
        "required": [
          "tag_id"
        ],
        "properties": {
          "tag_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          }
        },
        "type": "object",
        "oneOf": [
          {
            "title": "Detach by Contacts",
            "required": [
              "contacts"
            ],
            "properties": {
              "contacts": {
                "description": "Array of contact IDs to dettach the tag",
                "type": "array",
                "items": {
                  "title": "Contact ID",
                  "type": "string",
                  "pattern": "[a-fA-F\\d]{10}",
                  "example": "8f3a27ef26"
                },
                "minItems": 1,
                "uniqueItems": true
              }
            },
            "type": "object"
          },
          {
            "title": "Detach by Segment",
            "required": [
              "segment_id"
            ],
            "properties": {
              "segment_id": {
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "title": "Detach by Field Id",
            "required": [
              "field_id",
              "contacts"
            ],
            "properties": {
              "field_id": {
                "title": "FieldId",
                "type": "string",
                "pattern": "[a-zA-Z0-9_-]*"
              },
              "contacts": {
                "description": "Array of contacts to detach the tag",
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "example"
                },
                "minItems": 1,
                "uniqueItems": true
              }
            },
            "type": "object"
          }
        ]
      },
      "ContactExportRequest": {
        "title": "ContactExportRequest",
        "description": "Contact export request schema",
        "required": [
          "format"
        ],
        "properties": {
          "format": {
            "description": "File extension to export contacts",
            "type": "string",
            "enum": [
              "csv",
              "xml"
            ]
          },
          "callback_url": {
            "description": "Url to receive the callback <a href='/usecases/callbacks/#exports-a-list-of-contacts' target='_blank'>[Go to callback documentation]</a>",
            "type": "string",
            "format": "uri"
          },
          "segments": {
            "description": "Array of segment IDs to filter contacts to export. ***Note:*** segments of type ***auto*** and\n ***tag*** are not yet supported but they are expected to be supported soon!",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "fields": {
            "description": "Array of field IDs to be displayed in the exported file",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "type": "object"
      },
      "ExportReportWebhookData": {
        "title": "ExportReportWebhookData",
        "description": "Accepted response schema",
        "properties": {
          "file": {
            "type": "string",
            "format": "uri"
          }
        },
        "type": "object"
      },
      "ExportContactsWebhookData": {
        "title": "ExportContactsWebhookData",
        "description": "Accepted response schema",
        "properties": {
          "file": {
            "type": "string",
            "format": "uri"
          }
        },
        "type": "object"
      },
      "ImportContactsWebhookData": {
        "title": "ImportContactsWebhookData",
        "description": "Accepted response schema",
        "properties": {
          "imported": {
            "type": "integer",
            "minimum": 0,
            "example": 100
          },
          "updated": {
            "type": "integer",
            "minimum": 0,
            "example": 10
          },
          "ignored": {
            "type": "integer",
            "minimum": 0,
            "example": 5
          },
          "invalid": {
            "type": "integer",
            "minimum": 0,
            "example": 1
          },
          "file": {
            "type": "string",
            "example": "example.com"
          }
        },
        "type": "object"
      },
      "ContactForgetRequest": {
        "title": "ContactForgetRequest",
        "description": "Contact forget request schema",
        "required": [
          "contacts"
        ],
        "properties": {
          "contacts": {
            "description": "Array of contact IDs to forget (Max: 1000)",
            "type": "array",
            "items": {
              "title": "Contact ID",
              "type": "string",
              "pattern": "[a-fA-F\\d]{10}",
              "example": "8f3a27ef26"
            },
            "minItems": 1,
            "uniqueItems": true
          }
        },
        "type": "object"
      },
      "ImportBulkFileRequest": {
        "title": "Contact import Bulk",
        "description": "Contact import request schema",
        "type": "object",
        "oneOf": [
          {
            "title": "Bulk Object",
            "description": "Contact import bulk request schema",
            "required": [
              "mode",
              "compare_field",
              "contacts"
            ],
            "properties": {
              "mode": {
                "description": "Add new contacts only ('add'), add and replace existing ones ('update') or only replace existing ones ('update_only')",
                "type": "string",
                "enum": [
                  "add",
                  "update",
                  "update_only"
                ]
              },
              "compare_field": {
                "description": "Field ID which will be mapped for comparison to prevent duplicates. Field must be set as unique in E-goi.",
                "type": "string",
                "example": "email"
              },
              "contacts": {
                "description": "Array of contacts to import",
                "type": "array",
                "items": {
                  "title": "ContactBulk",
                  "description": "Contact schema",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "Contact",
                      "description": "Contact Base and Extra schema",
                      "type": "object",
                      "allOf": [
                        {
                          "title": "Contact",
                          "description": "Contact base",
                          "properties": {
                            "base": {
                              "description": "Contact base fields",
                              "type": "object",
                              "allOf": [
                                {
                                  "properties": {
                                    "contact_id": {
                                      "title": "Contact ID",
                                      "type": "string",
                                      "pattern": "[a-fA-F\\d]{10}",
                                      "readOnly": true,
                                      "example": "8f3a27ef26"
                                    },
                                    "status": {
                                      "description": "Status of the contact",
                                      "type": "string",
                                      "default": "active",
                                      "enum": [
                                        "active",
                                        "inactive",
                                        "removed",
                                        "unconfirmed"
                                      ]
                                    },
                                    "consent": {
                                      "description": "Contact consent",
                                      "type": "string",
                                      "default": "consent",
                                      "enum": [
                                        "any",
                                        "consent",
                                        "contract",
                                        "legitimate_interest",
                                        "none",
                                        "protect_vital_interests",
                                        "public_interests",
                                        "required_by_law",
                                        "withdrawn"
                                      ],
                                      "readOnly": true
                                    },
                                    "consent_date": {
                                      "description": "Date and hour of the contact consent",
                                      "type": "string",
                                      "format": "date-time",
                                      "readOnly": true,
                                      "example": "2019-01-01 00:00:00"
                                    },
                                    "subscription_method": {
                                      "description": "Contact subscription method",
                                      "type": "string",
                                      "enum": [
                                        "manual",
                                        "form",
                                        "imported",
                                        "referral",
                                        "api"
                                      ],
                                      "readOnly": true
                                    },
                                    "subscription_date": {
                                      "description": "Date and hour of the contact subscription",
                                      "type": "string",
                                      "format": "date-time",
                                      "readOnly": true,
                                      "example": "2019-01-01 00:00:00"
                                    },
                                    "subscription_form": {
                                      "description": "Contact subscription form",
                                      "type": "integer",
                                      "minimum": 0,
                                      "readOnly": true
                                    },
                                    "unsubscription_method": {
                                      "description": "Contact unsubscription method",
                                      "type": "string",
                                      "enum": [
                                        "manual",
                                        "form",
                                        "unsubscribe_link",
                                        "bounce",
                                        "api",
                                        ""
                                      ],
                                      "readOnly": true
                                    },
                                    "unsubscription_reason": {
                                      "description": "Contact unsubscription reason",
                                      "type": "string",
                                      "enum": [
                                        "not_interested",
                                        "lack_of_time",
                                        "email_address_change",
                                        "spam",
                                        "other",
                                        ""
                                      ],
                                      "readOnly": true
                                    },
                                    "unsubscription_observation": {
                                      "description": "Contact unsubscription observation",
                                      "type": "string",
                                      "readOnly": true,
                                      "example": ""
                                    },
                                    "unsubscription_date": {
                                      "description": "Contact unsubscription date",
                                      "type": "string",
                                      "format": "date-time",
                                      "readOnly": true,
                                      "example": "0000-00-00 00:00:00"
                                    },
                                    "change_date": {
                                      "description": "Last modification date of the contact",
                                      "type": "string",
                                      "format": "date",
                                      "readOnly": true,
                                      "example": "0000-00-00 00:00:00"
                                    },
                                    "first_name": {
                                      "description": "First name of the contact",
                                      "type": "string",
                                      "example": "John"
                                    },
                                    "last_name": {
                                      "description": "Last name of the contact",
                                      "type": "string",
                                      "example": "Doe"
                                    },
                                    "birth_date": {
                                      "description": "Birth date of the contact",
                                      "type": "string",
                                      "format": "date",
                                      "example": "1975-01-10"
                                    },
                                    "language": {
                                      "title": "language",
                                      "description": "Current language",
                                      "type": "string",
                                      "default": "en",
                                      "enum": [
                                        "en",
                                        "pt",
                                        "br",
                                        "es",
                                        "de",
                                        "hu",
                                        "fr"
                                      ]
                                    },
                                    "email": {
                                      "description": "Email of the contact",
                                      "type": "string",
                                      "example": "example@e-goi.com"
                                    },
                                    "email_status": {
                                      "description": "Email channel status",
                                      "type": "string",
                                      "default": "active",
                                      "enum": [
                                        "active",
                                        "inactive"
                                      ],
                                      "readOnly": true
                                    },
                                    "cellphone": {
                                      "description": "Cellphone of the contact",
                                      "type": "string",
                                      "example": "351-300404336"
                                    },
                                    "cellphone_status": {
                                      "description": "Cellphone channel status",
                                      "type": "string",
                                      "default": "active",
                                      "enum": [
                                        "active",
                                        "inactive"
                                      ],
                                      "readOnly": true
                                    },
                                    "phone": {
                                      "description": "Phone of the contact",
                                      "type": "string",
                                      "example": "351-300404336"
                                    },
                                    "phone_status": {
                                      "description": "Phone channel status",
                                      "type": "string",
                                      "default": "active",
                                      "enum": [
                                        "active",
                                        "inactive"
                                      ],
                                      "readOnly": true
                                    },
                                    "push_token_android": {
                                      "description": "Android push token of the contact",
                                      "type": "array",
                                      "items": {
                                        "properties": {
                                          "app_id": {
                                            "title": "Push App Id",
                                            "type": "string",
                                            "pattern": "[a-zA-Z0-9_-]*"
                                          },
                                          "token": {
                                            "description": "Android push app ID",
                                            "type": "string"
                                          }
                                        },
                                        "type": "object"
                                      }
                                    },
                                    "push_token_ios": {
                                      "description": "IOS push token of the contact",
                                      "type": "array",
                                      "items": {
                                        "properties": {
                                          "app_id": {
                                            "title": "Push App Id",
                                            "type": "string",
                                            "pattern": "[a-zA-Z0-9_-]*"
                                          },
                                          "token": {
                                            "description": "Ios push app ID",
                                            "type": "string"
                                          }
                                        },
                                        "type": "object"
                                      }
                                    }
                                  },
                                  "type": "object"
                                }
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "Contact",
                          "description": "Contact Extra schema",
                          "properties": {
                            "extra": {
                              "description": "Array of the contact's extra fields",
                              "type": "array",
                              "items": {
                                "type": "object",
                                "oneOf": [
                                  {
                                    "title": "ContactExtraFieldDate",
                                    "properties": {
                                      "field_id": {
                                        "title": "ID",
                                        "type": "integer",
                                        "minimum": 1,
                                        "example": 1
                                      },
                                      "format": {
                                        "description": "Extra field format",
                                        "type": "string",
                                        "enum": [
                                          "date"
                                        ],
                                        "readOnly": true
                                      },
                                      "value": {
                                        "description": "Extra field value",
                                        "type": "string",
                                        "format": "date",
                                        "example": "2019-01-01"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  {
                                    "title": "ContactExtraFieldText",
                                    "properties": {
                                      "field_id": {
                                        "title": "ID",
                                        "type": "integer",
                                        "minimum": 1,
                                        "example": 1
                                      },
                                      "format": {
                                        "description": "Extra field format",
                                        "type": "string",
                                        "enum": [
                                          "text"
                                        ],
                                        "readOnly": true
                                      },
                                      "value": {
                                        "description": "Extra field value",
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  {
                                    "title": "ContactExtraFieldCellphone",
                                    "properties": {
                                      "field_id": {
                                        "title": "ID",
                                        "type": "integer",
                                        "minimum": 1,
                                        "example": 1
                                      },
                                      "format": {
                                        "description": "Extra field format",
                                        "type": "string",
                                        "enum": [
                                          "cellphone"
                                        ],
                                        "readOnly": true
                                      },
                                      "value": {
                                        "description": "Extra field value",
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  {
                                    "title": "ContactExtraFieldPhone",
                                    "properties": {
                                      "field_id": {
                                        "title": "ID",
                                        "type": "integer",
                                        "minimum": 1,
                                        "example": 1
                                      },
                                      "format": {
                                        "description": "Extra field format",
                                        "type": "string",
                                        "enum": [
                                          "phone"
                                        ],
                                        "readOnly": true
                                      },
                                      "value": {
                                        "description": "Extra field value",
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  {
                                    "title": "ContactExtraFieldNumber",
                                    "properties": {
                                      "field_id": {
                                        "title": "ID",
                                        "type": "integer",
                                        "minimum": 1,
                                        "example": 1
                                      },
                                      "format": {
                                        "description": "Extra field format",
                                        "type": "string",
                                        "enum": [
                                          "number"
                                        ],
                                        "readOnly": true
                                      },
                                      "value": {
                                        "description": "Extra field value",
                                        "type": "string",
                                        "example": "100"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  {
                                    "title": "ContactExtraFieldEmail",
                                    "properties": {
                                      "field_id": {
                                        "title": "ID",
                                        "type": "integer",
                                        "minimum": 1,
                                        "example": 1
                                      },
                                      "format": {
                                        "description": "Extra field format",
                                        "type": "string",
                                        "enum": [
                                          "email"
                                        ],
                                        "readOnly": true
                                      },
                                      "value": {
                                        "description": "Extra field value",
                                        "type": "string"
                                      },
                                      "status": {
                                        "description": "Extra field status",
                                        "type": "string",
                                        "enum": [
                                          "active",
                                          "inactive"
                                        ]
                                      }
                                    },
                                    "type": "object"
                                  },
                                  {
                                    "title": "ContactExtraFieldOptions",
                                    "properties": {
                                      "field_id": {
                                        "title": "ID",
                                        "type": "integer",
                                        "minimum": 1,
                                        "example": 1
                                      },
                                      "format": {
                                        "description": "Extra field format",
                                        "type": "string",
                                        "enum": [
                                          "options"
                                        ],
                                        "readOnly": true
                                      },
                                      "value": {
                                        "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                        "type": "array",
                                        "items": {
                                          "type": "integer"
                                        },
                                        "example": [
                                          1,
                                          2
                                        ]
                                      }
                                    },
                                    "type": "object"
                                  }
                                ]
                              }
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "Contact",
                          "description": "Contact Utm",
                          "properties": {
                            "utm": {
                              "description": "Contact Urchin Tracking Module (utm) fields",
                              "type": "object",
                              "allOf": [
                                {
                                  "properties": {
                                    "utm_source": {
                                      "description": "Utm source value",
                                      "type": "string",
                                      "example": "source"
                                    },
                                    "utm_medium": {
                                      "description": "Utm medium value",
                                      "type": "string",
                                      "example": "medium"
                                    },
                                    "utm_campaign": {
                                      "description": "Utm campaign value",
                                      "type": "string",
                                      "example": "campaign"
                                    },
                                    "utm_content": {
                                      "description": "Utm content value",
                                      "type": "string",
                                      "example": "content"
                                    },
                                    "utm_term": {
                                      "description": "Utm source value",
                                      "type": "string",
                                      "example": "term"
                                    }
                                  },
                                  "type": "object"
                                }
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "Contact",
                          "description": "Contact Referrer",
                          "properties": {
                            "referrer": {
                              "description": "Contact referrer fields",
                              "type": "object",
                              "allOf": [
                                {
                                  "properties": {
                                    "referrer": {
                                      "description": "Referrer value",
                                      "type": "string",
                                      "example": "referrer"
                                    }
                                  },
                                  "type": "object"
                                }
                              ]
                            }
                          },
                          "type": "object"
                        }
                      ]
                    },
                    {
                      "properties": {
                        "tags": {
                          "description": "Array of tags for this contact",
                          "type": "array",
                          "items": {
                            "type": "integer"
                          },
                          "readOnly": true,
                          "example": [
                            1,
                            2
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              },
              "force_empty": {
                "description": "If 'true' accepts empty values and erases those fields",
                "type": "boolean",
                "default": false
              },
              "notify": {
                "description": "Array of IDs of the users to notify",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "callback_url": {
                "description": "Url to receive the report <a href='/usecases/callbacks/#import-collection-of-contacts' target='_blank'>[Go to callback documentation]</a>",
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "title": "File",
            "description": "Contact import bulk request schema",
            "required": [
              "mode",
              "compare_field",
              "file"
            ],
            "properties": {
              "mode": {
                "description": "Add new contacts only ('add'), add and replace existing ones ('update') or only replace existing ones ('update_only')",
                "type": "string",
                "enum": [
                  "add",
                  "update",
                  "update_only"
                ]
              },
              "compare_field": {
                "description": "Field ID which will be mapped for comparison to prevent duplicates. Field must be set as unique in E-goi.",
                "type": "string",
                "example": "email"
              },
              "file": {
                "description": "File to import",
                "type": "object",
                "allOf": [
                  {
                    "title": "ContactBulkFile",
                    "description": "Contact File schema",
                    "type": "object",
                    "allOf": [
                      {
                        "required": [
                          "url"
                        ],
                        "properties": {
                          "url": {
                            "description": "Url from wich we will download the csv file:\n *       Note: Only 'http' or 'https' protocols are supported",
                            "type": "string",
                            "example": "https://e-goi.com/file.csv"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "required": [
                          "field_mapping"
                        ],
                        "properties": {
                          "field_mapping": {
                            "description": "Contact Import File Field Mapping",
                            "type": "array",
                            "items": {
                              "title": "contactFieldMappingFileBulkSchema",
                              "required": [
                                "field_id",
                                "column_name"
                              ],
                              "properties": {
                                "field_id": {
                                  "title": "FieldId",
                                  "type": "string",
                                  "pattern": "[a-zA-Z0-9_-]*"
                                },
                                "column_name": {
                                  "description": "The column name as defined in your file",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            }
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "separator": {
                            "description": "Csv column separator (defaults to \")",
                            "type": "string",
                            "example": "\""
                          }
                        },
                        "type": "object"
                      },
                      {
                        "properties": {
                          "delimiter": {
                            "description": "Csv column delimiter (defaults to ,)",
                            "type": "string",
                            "example": ","
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                ]
              },
              "force_empty": {
                "description": "If 'true' accepts empty values and erases those fields",
                "type": "boolean",
                "default": false
              },
              "notify": {
                "description": "Array of IDs of the users to notify",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "callback_url": {
                "description": "Url to receive the report <a href='/usecases/callbacks/#import-collection-of-contacts' target='_blank'>[Go to callback documentation]</a>",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "ImportBulkFileRequestSchema": {
        "title": "File",
        "description": "Contact import bulk request schema",
        "required": [
          "mode",
          "compare_field",
          "file"
        ],
        "properties": {
          "mode": {
            "description": "Add new contacts only ('add'), add and replace existing ones ('update') or only replace existing ones ('update_only')",
            "type": "string",
            "enum": [
              "add",
              "update",
              "update_only"
            ]
          },
          "compare_field": {
            "description": "Field ID which will be mapped for comparison to prevent duplicates. Field must be set as unique in E-goi.",
            "type": "string",
            "example": "email"
          },
          "file": {
            "description": "File to import",
            "type": "object",
            "allOf": [
              {
                "title": "ContactBulkFile",
                "description": "Contact File schema",
                "type": "object",
                "allOf": [
                  {
                    "required": [
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "description": "Url from wich we will download the csv file:\n *       Note: Only 'http' or 'https' protocols are supported",
                        "type": "string",
                        "example": "https://e-goi.com/file.csv"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "required": [
                      "field_mapping"
                    ],
                    "properties": {
                      "field_mapping": {
                        "description": "Contact Import File Field Mapping",
                        "type": "array",
                        "items": {
                          "title": "contactFieldMappingFileBulkSchema",
                          "required": [
                            "field_id",
                            "column_name"
                          ],
                          "properties": {
                            "field_id": {
                              "title": "FieldId",
                              "type": "string",
                              "pattern": "[a-zA-Z0-9_-]*"
                            },
                            "column_name": {
                              "description": "The column name as defined in your file",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      }
                    },
                    "type": "object"
                  },
                  {
                    "properties": {
                      "separator": {
                        "description": "Csv column separator (defaults to \")",
                        "type": "string",
                        "example": "\""
                      }
                    },
                    "type": "object"
                  },
                  {
                    "properties": {
                      "delimiter": {
                        "description": "Csv column delimiter (defaults to ,)",
                        "type": "string",
                        "example": ","
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            ]
          },
          "force_empty": {
            "description": "If 'true' accepts empty values and erases those fields",
            "type": "boolean",
            "default": false
          },
          "notify": {
            "description": "Array of IDs of the users to notify",
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "callback_url": {
            "description": "Url to receive the report <a href='/usecases/callbacks/#import-collection-of-contacts' target='_blank'>[Go to callback documentation]</a>",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ImportBulkRequest": {
        "title": "Bulk Object",
        "description": "Contact import bulk request schema",
        "required": [
          "mode",
          "compare_field",
          "contacts"
        ],
        "properties": {
          "mode": {
            "description": "Add new contacts only ('add'), add and replace existing ones ('update') or only replace existing ones ('update_only')",
            "type": "string",
            "enum": [
              "add",
              "update",
              "update_only"
            ]
          },
          "compare_field": {
            "description": "Field ID which will be mapped for comparison to prevent duplicates. Field must be set as unique in E-goi.",
            "type": "string",
            "example": "email"
          },
          "contacts": {
            "description": "Array of contacts to import",
            "type": "array",
            "items": {
              "title": "ContactBulk",
              "description": "Contact schema",
              "type": "object",
              "allOf": [
                {
                  "title": "Contact",
                  "description": "Contact Base and Extra schema",
                  "type": "object",
                  "allOf": [
                    {
                      "title": "Contact",
                      "description": "Contact base",
                      "properties": {
                        "base": {
                          "description": "Contact base fields",
                          "type": "object",
                          "allOf": [
                            {
                              "properties": {
                                "contact_id": {
                                  "title": "Contact ID",
                                  "type": "string",
                                  "pattern": "[a-fA-F\\d]{10}",
                                  "readOnly": true,
                                  "example": "8f3a27ef26"
                                },
                                "status": {
                                  "description": "Status of the contact",
                                  "type": "string",
                                  "default": "active",
                                  "enum": [
                                    "active",
                                    "inactive",
                                    "removed",
                                    "unconfirmed"
                                  ]
                                },
                                "consent": {
                                  "description": "Contact consent",
                                  "type": "string",
                                  "default": "consent",
                                  "enum": [
                                    "any",
                                    "consent",
                                    "contract",
                                    "legitimate_interest",
                                    "none",
                                    "protect_vital_interests",
                                    "public_interests",
                                    "required_by_law",
                                    "withdrawn"
                                  ],
                                  "readOnly": true
                                },
                                "consent_date": {
                                  "description": "Date and hour of the contact consent",
                                  "type": "string",
                                  "format": "date-time",
                                  "readOnly": true,
                                  "example": "2019-01-01 00:00:00"
                                },
                                "subscription_method": {
                                  "description": "Contact subscription method",
                                  "type": "string",
                                  "enum": [
                                    "manual",
                                    "form",
                                    "imported",
                                    "referral",
                                    "api"
                                  ],
                                  "readOnly": true
                                },
                                "subscription_date": {
                                  "description": "Date and hour of the contact subscription",
                                  "type": "string",
                                  "format": "date-time",
                                  "readOnly": true,
                                  "example": "2019-01-01 00:00:00"
                                },
                                "subscription_form": {
                                  "description": "Contact subscription form",
                                  "type": "integer",
                                  "minimum": 0,
                                  "readOnly": true
                                },
                                "unsubscription_method": {
                                  "description": "Contact unsubscription method",
                                  "type": "string",
                                  "enum": [
                                    "manual",
                                    "form",
                                    "unsubscribe_link",
                                    "bounce",
                                    "api",
                                    ""
                                  ],
                                  "readOnly": true
                                },
                                "unsubscription_reason": {
                                  "description": "Contact unsubscription reason",
                                  "type": "string",
                                  "enum": [
                                    "not_interested",
                                    "lack_of_time",
                                    "email_address_change",
                                    "spam",
                                    "other",
                                    ""
                                  ],
                                  "readOnly": true
                                },
                                "unsubscription_observation": {
                                  "description": "Contact unsubscription observation",
                                  "type": "string",
                                  "readOnly": true,
                                  "example": ""
                                },
                                "unsubscription_date": {
                                  "description": "Contact unsubscription date",
                                  "type": "string",
                                  "format": "date-time",
                                  "readOnly": true,
                                  "example": "0000-00-00 00:00:00"
                                },
                                "change_date": {
                                  "description": "Last modification date of the contact",
                                  "type": "string",
                                  "format": "date",
                                  "readOnly": true,
                                  "example": "0000-00-00 00:00:00"
                                },
                                "first_name": {
                                  "description": "First name of the contact",
                                  "type": "string",
                                  "example": "John"
                                },
                                "last_name": {
                                  "description": "Last name of the contact",
                                  "type": "string",
                                  "example": "Doe"
                                },
                                "birth_date": {
                                  "description": "Birth date of the contact",
                                  "type": "string",
                                  "format": "date",
                                  "example": "1975-01-10"
                                },
                                "language": {
                                  "title": "language",
                                  "description": "Current language",
                                  "type": "string",
                                  "default": "en",
                                  "enum": [
                                    "en",
                                    "pt",
                                    "br",
                                    "es",
                                    "de",
                                    "hu",
                                    "fr"
                                  ]
                                },
                                "email": {
                                  "description": "Email of the contact",
                                  "type": "string",
                                  "example": "example@e-goi.com"
                                },
                                "email_status": {
                                  "description": "Email channel status",
                                  "type": "string",
                                  "default": "active",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ],
                                  "readOnly": true
                                },
                                "cellphone": {
                                  "description": "Cellphone of the contact",
                                  "type": "string",
                                  "example": "351-300404336"
                                },
                                "cellphone_status": {
                                  "description": "Cellphone channel status",
                                  "type": "string",
                                  "default": "active",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ],
                                  "readOnly": true
                                },
                                "phone": {
                                  "description": "Phone of the contact",
                                  "type": "string",
                                  "example": "351-300404336"
                                },
                                "phone_status": {
                                  "description": "Phone channel status",
                                  "type": "string",
                                  "default": "active",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ],
                                  "readOnly": true
                                },
                                "push_token_android": {
                                  "description": "Android push token of the contact",
                                  "type": "array",
                                  "items": {
                                    "properties": {
                                      "app_id": {
                                        "title": "Push App Id",
                                        "type": "string",
                                        "pattern": "[a-zA-Z0-9_-]*"
                                      },
                                      "token": {
                                        "description": "Android push app ID",
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  }
                                },
                                "push_token_ios": {
                                  "description": "IOS push token of the contact",
                                  "type": "array",
                                  "items": {
                                    "properties": {
                                      "app_id": {
                                        "title": "Push App Id",
                                        "type": "string",
                                        "pattern": "[a-zA-Z0-9_-]*"
                                      },
                                      "token": {
                                        "description": "Ios push app ID",
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  }
                                }
                              },
                              "type": "object"
                            }
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "Contact",
                      "description": "Contact Extra schema",
                      "properties": {
                        "extra": {
                          "description": "Array of the contact's extra fields",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "oneOf": [
                              {
                                "title": "ContactExtraFieldDate",
                                "properties": {
                                  "field_id": {
                                    "title": "ID",
                                    "type": "integer",
                                    "minimum": 1,
                                    "example": 1
                                  },
                                  "format": {
                                    "description": "Extra field format",
                                    "type": "string",
                                    "enum": [
                                      "date"
                                    ],
                                    "readOnly": true
                                  },
                                  "value": {
                                    "description": "Extra field value",
                                    "type": "string",
                                    "format": "date",
                                    "example": "2019-01-01"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "ContactExtraFieldText",
                                "properties": {
                                  "field_id": {
                                    "title": "ID",
                                    "type": "integer",
                                    "minimum": 1,
                                    "example": 1
                                  },
                                  "format": {
                                    "description": "Extra field format",
                                    "type": "string",
                                    "enum": [
                                      "text"
                                    ],
                                    "readOnly": true
                                  },
                                  "value": {
                                    "description": "Extra field value",
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "ContactExtraFieldCellphone",
                                "properties": {
                                  "field_id": {
                                    "title": "ID",
                                    "type": "integer",
                                    "minimum": 1,
                                    "example": 1
                                  },
                                  "format": {
                                    "description": "Extra field format",
                                    "type": "string",
                                    "enum": [
                                      "cellphone"
                                    ],
                                    "readOnly": true
                                  },
                                  "value": {
                                    "description": "Extra field value",
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "ContactExtraFieldPhone",
                                "properties": {
                                  "field_id": {
                                    "title": "ID",
                                    "type": "integer",
                                    "minimum": 1,
                                    "example": 1
                                  },
                                  "format": {
                                    "description": "Extra field format",
                                    "type": "string",
                                    "enum": [
                                      "phone"
                                    ],
                                    "readOnly": true
                                  },
                                  "value": {
                                    "description": "Extra field value",
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "ContactExtraFieldNumber",
                                "properties": {
                                  "field_id": {
                                    "title": "ID",
                                    "type": "integer",
                                    "minimum": 1,
                                    "example": 1
                                  },
                                  "format": {
                                    "description": "Extra field format",
                                    "type": "string",
                                    "enum": [
                                      "number"
                                    ],
                                    "readOnly": true
                                  },
                                  "value": {
                                    "description": "Extra field value",
                                    "type": "string",
                                    "example": "100"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "ContactExtraFieldEmail",
                                "properties": {
                                  "field_id": {
                                    "title": "ID",
                                    "type": "integer",
                                    "minimum": 1,
                                    "example": 1
                                  },
                                  "format": {
                                    "description": "Extra field format",
                                    "type": "string",
                                    "enum": [
                                      "email"
                                    ],
                                    "readOnly": true
                                  },
                                  "value": {
                                    "description": "Extra field value",
                                    "type": "string"
                                  },
                                  "status": {
                                    "description": "Extra field status",
                                    "type": "string",
                                    "enum": [
                                      "active",
                                      "inactive"
                                    ]
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "title": "ContactExtraFieldOptions",
                                "properties": {
                                  "field_id": {
                                    "title": "ID",
                                    "type": "integer",
                                    "minimum": 1,
                                    "example": 1
                                  },
                                  "format": {
                                    "description": "Extra field format",
                                    "type": "string",
                                    "enum": [
                                      "options"
                                    ],
                                    "readOnly": true
                                  },
                                  "value": {
                                    "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                    "type": "array",
                                    "items": {
                                      "type": "integer"
                                    },
                                    "example": [
                                      1,
                                      2
                                    ]
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          }
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "Contact",
                      "description": "Contact Utm",
                      "properties": {
                        "utm": {
                          "description": "Contact Urchin Tracking Module (utm) fields",
                          "type": "object",
                          "allOf": [
                            {
                              "properties": {
                                "utm_source": {
                                  "description": "Utm source value",
                                  "type": "string",
                                  "example": "source"
                                },
                                "utm_medium": {
                                  "description": "Utm medium value",
                                  "type": "string",
                                  "example": "medium"
                                },
                                "utm_campaign": {
                                  "description": "Utm campaign value",
                                  "type": "string",
                                  "example": "campaign"
                                },
                                "utm_content": {
                                  "description": "Utm content value",
                                  "type": "string",
                                  "example": "content"
                                },
                                "utm_term": {
                                  "description": "Utm source value",
                                  "type": "string",
                                  "example": "term"
                                }
                              },
                              "type": "object"
                            }
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "Contact",
                      "description": "Contact Referrer",
                      "properties": {
                        "referrer": {
                          "description": "Contact referrer fields",
                          "type": "object",
                          "allOf": [
                            {
                              "properties": {
                                "referrer": {
                                  "description": "Referrer value",
                                  "type": "string",
                                  "example": "referrer"
                                }
                              },
                              "type": "object"
                            }
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                },
                {
                  "properties": {
                    "tags": {
                      "description": "Array of tags for this contact",
                      "type": "array",
                      "items": {
                        "type": "integer"
                      },
                      "readOnly": true,
                      "example": [
                        1,
                        2
                      ]
                    }
                  },
                  "type": "object"
                }
              ]
            }
          },
          "force_empty": {
            "description": "If 'true' accepts empty values and erases those fields",
            "type": "boolean",
            "default": false
          },
          "notify": {
            "description": "Array of IDs of the users to notify",
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "callback_url": {
            "description": "Url to receive the report <a href='/usecases/callbacks/#import-collection-of-contacts' target='_blank'>[Go to callback documentation]</a>",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ContactBulk": {
        "title": "ContactBulk",
        "description": "Contact schema",
        "type": "object",
        "allOf": [
          {
            "title": "Contact",
            "description": "Contact Base and Extra schema",
            "type": "object",
            "allOf": [
              {
                "title": "Contact",
                "description": "Contact base",
                "properties": {
                  "base": {
                    "description": "Contact base fields",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "contact_id": {
                            "title": "Contact ID",
                            "type": "string",
                            "pattern": "[a-fA-F\\d]{10}",
                            "readOnly": true,
                            "example": "8f3a27ef26"
                          },
                          "status": {
                            "description": "Status of the contact",
                            "type": "string",
                            "default": "active",
                            "enum": [
                              "active",
                              "inactive",
                              "removed",
                              "unconfirmed"
                            ]
                          },
                          "consent": {
                            "description": "Contact consent",
                            "type": "string",
                            "default": "consent",
                            "enum": [
                              "any",
                              "consent",
                              "contract",
                              "legitimate_interest",
                              "none",
                              "protect_vital_interests",
                              "public_interests",
                              "required_by_law",
                              "withdrawn"
                            ],
                            "readOnly": true
                          },
                          "consent_date": {
                            "description": "Date and hour of the contact consent",
                            "type": "string",
                            "format": "date-time",
                            "readOnly": true,
                            "example": "2019-01-01 00:00:00"
                          },
                          "subscription_method": {
                            "description": "Contact subscription method",
                            "type": "string",
                            "enum": [
                              "manual",
                              "form",
                              "imported",
                              "referral",
                              "api"
                            ],
                            "readOnly": true
                          },
                          "subscription_date": {
                            "description": "Date and hour of the contact subscription",
                            "type": "string",
                            "format": "date-time",
                            "readOnly": true,
                            "example": "2019-01-01 00:00:00"
                          },
                          "subscription_form": {
                            "description": "Contact subscription form",
                            "type": "integer",
                            "minimum": 0,
                            "readOnly": true
                          },
                          "unsubscription_method": {
                            "description": "Contact unsubscription method",
                            "type": "string",
                            "enum": [
                              "manual",
                              "form",
                              "unsubscribe_link",
                              "bounce",
                              "api",
                              ""
                            ],
                            "readOnly": true
                          },
                          "unsubscription_reason": {
                            "description": "Contact unsubscription reason",
                            "type": "string",
                            "enum": [
                              "not_interested",
                              "lack_of_time",
                              "email_address_change",
                              "spam",
                              "other",
                              ""
                            ],
                            "readOnly": true
                          },
                          "unsubscription_observation": {
                            "description": "Contact unsubscription observation",
                            "type": "string",
                            "readOnly": true,
                            "example": ""
                          },
                          "unsubscription_date": {
                            "description": "Contact unsubscription date",
                            "type": "string",
                            "format": "date-time",
                            "readOnly": true,
                            "example": "0000-00-00 00:00:00"
                          },
                          "change_date": {
                            "description": "Last modification date of the contact",
                            "type": "string",
                            "format": "date",
                            "readOnly": true,
                            "example": "0000-00-00 00:00:00"
                          },
                          "first_name": {
                            "description": "First name of the contact",
                            "type": "string",
                            "example": "John"
                          },
                          "last_name": {
                            "description": "Last name of the contact",
                            "type": "string",
                            "example": "Doe"
                          },
                          "birth_date": {
                            "description": "Birth date of the contact",
                            "type": "string",
                            "format": "date",
                            "example": "1975-01-10"
                          },
                          "language": {
                            "title": "language",
                            "description": "Current language",
                            "type": "string",
                            "default": "en",
                            "enum": [
                              "en",
                              "pt",
                              "br",
                              "es",
                              "de",
                              "hu",
                              "fr"
                            ]
                          },
                          "email": {
                            "description": "Email of the contact",
                            "type": "string",
                            "example": "example@e-goi.com"
                          },
                          "email_status": {
                            "description": "Email channel status",
                            "type": "string",
                            "default": "active",
                            "enum": [
                              "active",
                              "inactive"
                            ],
                            "readOnly": true
                          },
                          "cellphone": {
                            "description": "Cellphone of the contact",
                            "type": "string",
                            "example": "351-300404336"
                          },
                          "cellphone_status": {
                            "description": "Cellphone channel status",
                            "type": "string",
                            "default": "active",
                            "enum": [
                              "active",
                              "inactive"
                            ],
                            "readOnly": true
                          },
                          "phone": {
                            "description": "Phone of the contact",
                            "type": "string",
                            "example": "351-300404336"
                          },
                          "phone_status": {
                            "description": "Phone channel status",
                            "type": "string",
                            "default": "active",
                            "enum": [
                              "active",
                              "inactive"
                            ],
                            "readOnly": true
                          },
                          "push_token_android": {
                            "description": "Android push token of the contact",
                            "type": "array",
                            "items": {
                              "properties": {
                                "app_id": {
                                  "title": "Push App Id",
                                  "type": "string",
                                  "pattern": "[a-zA-Z0-9_-]*"
                                },
                                "token": {
                                  "description": "Android push app ID",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            }
                          },
                          "push_token_ios": {
                            "description": "IOS push token of the contact",
                            "type": "array",
                            "items": {
                              "properties": {
                                "app_id": {
                                  "title": "Push App Id",
                                  "type": "string",
                                  "pattern": "[a-zA-Z0-9_-]*"
                                },
                                "token": {
                                  "description": "Ios push app ID",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            }
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Contact",
                "description": "Contact Extra schema",
                "properties": {
                  "extra": {
                    "description": "Array of the contact's extra fields",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "oneOf": [
                        {
                          "title": "ContactExtraFieldDate",
                          "properties": {
                            "field_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "format": {
                              "description": "Extra field format",
                              "type": "string",
                              "enum": [
                                "date"
                              ],
                              "readOnly": true
                            },
                            "value": {
                              "description": "Extra field value",
                              "type": "string",
                              "format": "date",
                              "example": "2019-01-01"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ContactExtraFieldText",
                          "properties": {
                            "field_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "format": {
                              "description": "Extra field format",
                              "type": "string",
                              "enum": [
                                "text"
                              ],
                              "readOnly": true
                            },
                            "value": {
                              "description": "Extra field value",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ContactExtraFieldCellphone",
                          "properties": {
                            "field_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "format": {
                              "description": "Extra field format",
                              "type": "string",
                              "enum": [
                                "cellphone"
                              ],
                              "readOnly": true
                            },
                            "value": {
                              "description": "Extra field value",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ContactExtraFieldPhone",
                          "properties": {
                            "field_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "format": {
                              "description": "Extra field format",
                              "type": "string",
                              "enum": [
                                "phone"
                              ],
                              "readOnly": true
                            },
                            "value": {
                              "description": "Extra field value",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ContactExtraFieldNumber",
                          "properties": {
                            "field_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "format": {
                              "description": "Extra field format",
                              "type": "string",
                              "enum": [
                                "number"
                              ],
                              "readOnly": true
                            },
                            "value": {
                              "description": "Extra field value",
                              "type": "string",
                              "example": "100"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ContactExtraFieldEmail",
                          "properties": {
                            "field_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "format": {
                              "description": "Extra field format",
                              "type": "string",
                              "enum": [
                                "email"
                              ],
                              "readOnly": true
                            },
                            "value": {
                              "description": "Extra field value",
                              "type": "string"
                            },
                            "status": {
                              "description": "Extra field status",
                              "type": "string",
                              "enum": [
                                "active",
                                "inactive"
                              ]
                            }
                          },
                          "type": "object"
                        },
                        {
                          "title": "ContactExtraFieldOptions",
                          "properties": {
                            "field_id": {
                              "title": "ID",
                              "type": "integer",
                              "minimum": 1,
                              "example": 1
                            },
                            "format": {
                              "description": "Extra field format",
                              "type": "string",
                              "enum": [
                                "options"
                              ],
                              "readOnly": true
                            },
                            "value": {
                              "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                              "type": "array",
                              "items": {
                                "type": "integer"
                              },
                              "example": [
                                1,
                                2
                              ]
                            }
                          },
                          "type": "object"
                        }
                      ]
                    }
                  }
                },
                "type": "object"
              },
              {
                "title": "Contact",
                "description": "Contact Utm",
                "properties": {
                  "utm": {
                    "description": "Contact Urchin Tracking Module (utm) fields",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "utm_source": {
                            "description": "Utm source value",
                            "type": "string",
                            "example": "source"
                          },
                          "utm_medium": {
                            "description": "Utm medium value",
                            "type": "string",
                            "example": "medium"
                          },
                          "utm_campaign": {
                            "description": "Utm campaign value",
                            "type": "string",
                            "example": "campaign"
                          },
                          "utm_content": {
                            "description": "Utm content value",
                            "type": "string",
                            "example": "content"
                          },
                          "utm_term": {
                            "description": "Utm source value",
                            "type": "string",
                            "example": "term"
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Contact",
                "description": "Contact Referrer",
                "properties": {
                  "referrer": {
                    "description": "Contact referrer fields",
                    "type": "object",
                    "allOf": [
                      {
                        "properties": {
                          "referrer": {
                            "description": "Referrer value",
                            "type": "string",
                            "example": "referrer"
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "properties": {
              "tags": {
                "description": "Array of tags for this contact",
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "readOnly": true,
                "example": [
                  1,
                  2
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "ContactBulkFile": {
        "title": "ContactBulkFile",
        "description": "Contact File schema",
        "type": "object",
        "allOf": [
          {
            "required": [
              "url"
            ],
            "properties": {
              "url": {
                "description": "Url from wich we will download the csv file:\n *       Note: Only 'http' or 'https' protocols are supported",
                "type": "string",
                "example": "https://e-goi.com/file.csv"
              }
            },
            "type": "object"
          },
          {
            "required": [
              "field_mapping"
            ],
            "properties": {
              "field_mapping": {
                "description": "Contact Import File Field Mapping",
                "type": "array",
                "items": {
                  "title": "contactFieldMappingFileBulkSchema",
                  "required": [
                    "field_id",
                    "column_name"
                  ],
                  "properties": {
                    "field_id": {
                      "title": "FieldId",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*"
                    },
                    "column_name": {
                      "description": "The column name as defined in your file",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "separator": {
                "description": "Csv column separator (defaults to \")",
                "type": "string",
                "example": "\""
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "delimiter": {
                "description": "Csv column delimiter (defaults to ,)",
                "type": "string",
                "example": ","
              }
            },
            "type": "object"
          }
        ]
      },
      "contactFieldMappingFileBulkSchema": {
        "title": "contactFieldMappingFileBulkSchema",
        "required": [
          "field_id",
          "column_name"
        ],
        "properties": {
          "field_id": {
            "title": "FieldId",
            "type": "string",
            "pattern": "[a-zA-Z0-9_-]*"
          },
          "column_name": {
            "description": "The column name as defined in your file",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ContactBaseFieldsBulkSchema": {
        "title": "Contact",
        "description": "Contact base",
        "properties": {
          "base": {
            "description": "Contact base fields",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "contact_id": {
                    "title": "Contact ID",
                    "type": "string",
                    "pattern": "[a-fA-F\\d]{10}",
                    "readOnly": true,
                    "example": "8f3a27ef26"
                  },
                  "status": {
                    "description": "Status of the contact",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive",
                      "removed",
                      "unconfirmed"
                    ]
                  },
                  "consent": {
                    "description": "Contact consent",
                    "type": "string",
                    "default": "consent",
                    "enum": [
                      "any",
                      "consent",
                      "contract",
                      "legitimate_interest",
                      "none",
                      "protect_vital_interests",
                      "public_interests",
                      "required_by_law",
                      "withdrawn"
                    ],
                    "readOnly": true
                  },
                  "consent_date": {
                    "description": "Date and hour of the contact consent",
                    "type": "string",
                    "format": "date-time",
                    "readOnly": true,
                    "example": "2019-01-01 00:00:00"
                  },
                  "subscription_method": {
                    "description": "Contact subscription method",
                    "type": "string",
                    "enum": [
                      "manual",
                      "form",
                      "imported",
                      "referral",
                      "api"
                    ],
                    "readOnly": true
                  },
                  "subscription_date": {
                    "description": "Date and hour of the contact subscription",
                    "type": "string",
                    "format": "date-time",
                    "readOnly": true,
                    "example": "2019-01-01 00:00:00"
                  },
                  "subscription_form": {
                    "description": "Contact subscription form",
                    "type": "integer",
                    "minimum": 0,
                    "readOnly": true
                  },
                  "unsubscription_method": {
                    "description": "Contact unsubscription method",
                    "type": "string",
                    "enum": [
                      "manual",
                      "form",
                      "unsubscribe_link",
                      "bounce",
                      "api",
                      ""
                    ],
                    "readOnly": true
                  },
                  "unsubscription_reason": {
                    "description": "Contact unsubscription reason",
                    "type": "string",
                    "enum": [
                      "not_interested",
                      "lack_of_time",
                      "email_address_change",
                      "spam",
                      "other",
                      ""
                    ],
                    "readOnly": true
                  },
                  "unsubscription_observation": {
                    "description": "Contact unsubscription observation",
                    "type": "string",
                    "readOnly": true,
                    "example": ""
                  },
                  "unsubscription_date": {
                    "description": "Contact unsubscription date",
                    "type": "string",
                    "format": "date-time",
                    "readOnly": true,
                    "example": "0000-00-00 00:00:00"
                  },
                  "change_date": {
                    "description": "Last modification date of the contact",
                    "type": "string",
                    "format": "date",
                    "readOnly": true,
                    "example": "0000-00-00 00:00:00"
                  },
                  "first_name": {
                    "description": "First name of the contact",
                    "type": "string",
                    "example": "John"
                  },
                  "last_name": {
                    "description": "Last name of the contact",
                    "type": "string",
                    "example": "Doe"
                  },
                  "birth_date": {
                    "description": "Birth date of the contact",
                    "type": "string",
                    "format": "date",
                    "example": "1975-01-10"
                  },
                  "language": {
                    "title": "language",
                    "description": "Current language",
                    "type": "string",
                    "default": "en",
                    "enum": [
                      "en",
                      "pt",
                      "br",
                      "es",
                      "de",
                      "hu",
                      "fr"
                    ]
                  },
                  "email": {
                    "description": "Email of the contact",
                    "type": "string",
                    "example": "example@e-goi.com"
                  },
                  "email_status": {
                    "description": "Email channel status",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive"
                    ],
                    "readOnly": true
                  },
                  "cellphone": {
                    "description": "Cellphone of the contact",
                    "type": "string",
                    "example": "351-300404336"
                  },
                  "cellphone_status": {
                    "description": "Cellphone channel status",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive"
                    ],
                    "readOnly": true
                  },
                  "phone": {
                    "description": "Phone of the contact",
                    "type": "string",
                    "example": "351-300404336"
                  },
                  "phone_status": {
                    "description": "Phone channel status",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive"
                    ],
                    "readOnly": true
                  },
                  "push_token_android": {
                    "description": "Android push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Android push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "push_token_ios": {
                    "description": "IOS push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Ios push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "type": "object"
              }
            ]
          }
        },
        "type": "object"
      },
      "ContactBaseWithStatusFieldsBulkSchema": {
        "title": "Contact",
        "description": "Contact base",
        "properties": {
          "base": {
            "description": "Contact base fields",
            "properties": {
              "contact_id": {
                "title": "Contact ID",
                "type": "string",
                "pattern": "[a-fA-F\\d]{10}",
                "readOnly": true,
                "example": "8f3a27ef26"
              },
              "status": {
                "description": "Status of the contact",
                "type": "string",
                "default": "active",
                "enum": [
                  "active",
                  "inactive",
                  "removed",
                  "unconfirmed"
                ]
              },
              "consent": {
                "description": "Contact consent",
                "type": "string",
                "enum": [
                  "any",
                  "consent",
                  "contract",
                  "legitimate_interest",
                  "none",
                  "protect_vital_interests",
                  "public_interests",
                  "required_by_law",
                  "withdrawn"
                ]
              },
              "first_name": {
                "description": "First name of the contact",
                "type": "string",
                "example": "John"
              },
              "last_name": {
                "description": "Last name of the contact",
                "type": "string",
                "example": "Doe"
              },
              "birth_date": {
                "description": "Birth date of the contact",
                "type": "string",
                "format": "date",
                "example": "1975-01-10"
              },
              "language": {
                "title": "language",
                "description": "Current language",
                "type": "string",
                "default": "en",
                "enum": [
                  "en",
                  "pt",
                  "br",
                  "es",
                  "de",
                  "hu",
                  "fr"
                ]
              },
              "email": {
                "description": "Email of the contact",
                "type": "string",
                "example": "example@e-goi.com"
              },
              "email_status": {
                "description": "Email channel status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "cellphone": {
                "description": "Cellphone of the contact",
                "type": "string",
                "example": "351-300404336"
              },
              "cellphone_status": {
                "description": "Cellphone channel status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "phone": {
                "description": "Phone of the contact",
                "type": "string",
                "example": "351-300404336"
              },
              "phone_status": {
                "description": "Phone channel status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "push_token_android": {
                "description": "Android push token of the contact",
                "type": "array",
                "items": {
                  "properties": {
                    "app_id": {
                      "title": "Push App Id",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*"
                    },
                    "token": {
                      "description": "Android push app ID",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "push_token_ios": {
                "description": "IOS push token of the contact",
                "type": "array",
                "items": {
                  "properties": {
                    "app_id": {
                      "title": "Push App Id",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9_-]*"
                    },
                    "token": {
                      "description": "Ios push app ID",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "ContactInsideBaseBulk": {
        "properties": {
          "contact_id": {
            "title": "Contact ID",
            "type": "string",
            "pattern": "[a-fA-F\\d]{10}",
            "readOnly": true,
            "example": "8f3a27ef26"
          },
          "status": {
            "description": "Status of the contact",
            "type": "string",
            "default": "active",
            "enum": [
              "active",
              "inactive",
              "removed",
              "unconfirmed"
            ]
          },
          "consent": {
            "description": "Contact consent",
            "type": "string",
            "default": "consent",
            "enum": [
              "any",
              "consent",
              "contract",
              "legitimate_interest",
              "none",
              "protect_vital_interests",
              "public_interests",
              "required_by_law",
              "withdrawn"
            ],
            "readOnly": true
          },
          "consent_date": {
            "description": "Date and hour of the contact consent",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2019-01-01 00:00:00"
          },
          "subscription_method": {
            "description": "Contact subscription method",
            "type": "string",
            "enum": [
              "manual",
              "form",
              "imported",
              "referral",
              "api"
            ],
            "readOnly": true
          },
          "subscription_date": {
            "description": "Date and hour of the contact subscription",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2019-01-01 00:00:00"
          },
          "subscription_form": {
            "description": "Contact subscription form",
            "type": "integer",
            "minimum": 0,
            "readOnly": true
          },
          "unsubscription_method": {
            "description": "Contact unsubscription method",
            "type": "string",
            "enum": [
              "manual",
              "form",
              "unsubscribe_link",
              "bounce",
              "api",
              ""
            ],
            "readOnly": true
          },
          "unsubscription_reason": {
            "description": "Contact unsubscription reason",
            "type": "string",
            "enum": [
              "not_interested",
              "lack_of_time",
              "email_address_change",
              "spam",
              "other",
              ""
            ],
            "readOnly": true
          },
          "unsubscription_observation": {
            "description": "Contact unsubscription observation",
            "type": "string",
            "readOnly": true,
            "example": ""
          },
          "unsubscription_date": {
            "description": "Contact unsubscription date",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "0000-00-00 00:00:00"
          },
          "change_date": {
            "description": "Last modification date of the contact",
            "type": "string",
            "format": "date",
            "readOnly": true,
            "example": "0000-00-00 00:00:00"
          },
          "first_name": {
            "description": "First name of the contact",
            "type": "string",
            "example": "John"
          },
          "last_name": {
            "description": "Last name of the contact",
            "type": "string",
            "example": "Doe"
          },
          "birth_date": {
            "description": "Birth date of the contact",
            "type": "string",
            "format": "date",
            "example": "1975-01-10"
          },
          "language": {
            "title": "language",
            "description": "Current language",
            "type": "string",
            "default": "en",
            "enum": [
              "en",
              "pt",
              "br",
              "es",
              "de",
              "hu",
              "fr"
            ]
          },
          "email": {
            "description": "Email of the contact",
            "type": "string",
            "example": "example@e-goi.com"
          },
          "email_status": {
            "description": "Email channel status",
            "type": "string",
            "default": "active",
            "enum": [
              "active",
              "inactive"
            ],
            "readOnly": true
          },
          "cellphone": {
            "description": "Cellphone of the contact",
            "type": "string",
            "example": "351-300404336"
          },
          "cellphone_status": {
            "description": "Cellphone channel status",
            "type": "string",
            "default": "active",
            "enum": [
              "active",
              "inactive"
            ],
            "readOnly": true
          },
          "phone": {
            "description": "Phone of the contact",
            "type": "string",
            "example": "351-300404336"
          },
          "phone_status": {
            "description": "Phone channel status",
            "type": "string",
            "default": "active",
            "enum": [
              "active",
              "inactive"
            ],
            "readOnly": true
          },
          "push_token_android": {
            "description": "Android push token of the contact",
            "type": "array",
            "items": {
              "properties": {
                "app_id": {
                  "title": "Push App Id",
                  "type": "string",
                  "pattern": "[a-zA-Z0-9_-]*"
                },
                "token": {
                  "description": "Android push app ID",
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "push_token_ios": {
            "description": "IOS push token of the contact",
            "type": "array",
            "items": {
              "properties": {
                "app_id": {
                  "title": "Push App Id",
                  "type": "string",
                  "pattern": "[a-zA-Z0-9_-]*"
                },
                "token": {
                  "description": "Ios push app ID",
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "ContactExtraFieldsBulkSchema": {
        "title": "Contact",
        "description": "Contact Extra schema",
        "properties": {
          "extra": {
            "description": "Array of the contact's extra fields",
            "type": "array",
            "items": {
              "type": "object",
              "oneOf": [
                {
                  "title": "ContactExtraFieldDate",
                  "properties": {
                    "field_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "format": {
                      "description": "Extra field format",
                      "type": "string",
                      "enum": [
                        "date"
                      ],
                      "readOnly": true
                    },
                    "value": {
                      "description": "Extra field value",
                      "type": "string",
                      "format": "date",
                      "example": "2019-01-01"
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ContactExtraFieldText",
                  "properties": {
                    "field_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "format": {
                      "description": "Extra field format",
                      "type": "string",
                      "enum": [
                        "text"
                      ],
                      "readOnly": true
                    },
                    "value": {
                      "description": "Extra field value",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ContactExtraFieldCellphone",
                  "properties": {
                    "field_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "format": {
                      "description": "Extra field format",
                      "type": "string",
                      "enum": [
                        "cellphone"
                      ],
                      "readOnly": true
                    },
                    "value": {
                      "description": "Extra field value",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ContactExtraFieldPhone",
                  "properties": {
                    "field_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "format": {
                      "description": "Extra field format",
                      "type": "string",
                      "enum": [
                        "phone"
                      ],
                      "readOnly": true
                    },
                    "value": {
                      "description": "Extra field value",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ContactExtraFieldNumber",
                  "properties": {
                    "field_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "format": {
                      "description": "Extra field format",
                      "type": "string",
                      "enum": [
                        "number"
                      ],
                      "readOnly": true
                    },
                    "value": {
                      "description": "Extra field value",
                      "type": "string",
                      "example": "100"
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ContactExtraFieldEmail",
                  "properties": {
                    "field_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "format": {
                      "description": "Extra field format",
                      "type": "string",
                      "enum": [
                        "email"
                      ],
                      "readOnly": true
                    },
                    "value": {
                      "description": "Extra field value",
                      "type": "string"
                    },
                    "status": {
                      "description": "Extra field status",
                      "type": "string",
                      "enum": [
                        "active",
                        "inactive"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ContactExtraFieldOptions",
                  "properties": {
                    "field_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "format": {
                      "description": "Extra field format",
                      "type": "string",
                      "enum": [
                        "options"
                      ],
                      "readOnly": true
                    },
                    "value": {
                      "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                      "type": "array",
                      "items": {
                        "type": "integer"
                      },
                      "example": [
                        1,
                        2
                      ]
                    }
                  },
                  "type": "object"
                }
              ]
            }
          }
        },
        "type": "object"
      },
      "contactStatusFieldsBulkSchema": {
        "title": "Contact",
        "description": "Contact status schema",
        "properties": {
          "email_status": {
            "description": "Email channel status",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          },
          "cellphone_status": {
            "description": "Cellphone channel status",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          },
          "phone_status": {
            "description": "Phone channel status",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          }
        },
        "type": "object"
      },
      "contactBaseExtraBulk": {
        "title": "Contact",
        "description": "Contact Base and Extra schema",
        "type": "object",
        "allOf": [
          {
            "title": "Contact",
            "description": "Contact base",
            "properties": {
              "base": {
                "description": "Contact base fields",
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "contact_id": {
                        "title": "Contact ID",
                        "type": "string",
                        "pattern": "[a-fA-F\\d]{10}",
                        "readOnly": true,
                        "example": "8f3a27ef26"
                      },
                      "status": {
                        "description": "Status of the contact",
                        "type": "string",
                        "default": "active",
                        "enum": [
                          "active",
                          "inactive",
                          "removed",
                          "unconfirmed"
                        ]
                      },
                      "consent": {
                        "description": "Contact consent",
                        "type": "string",
                        "default": "consent",
                        "enum": [
                          "any",
                          "consent",
                          "contract",
                          "legitimate_interest",
                          "none",
                          "protect_vital_interests",
                          "public_interests",
                          "required_by_law",
                          "withdrawn"
                        ],
                        "readOnly": true
                      },
                      "consent_date": {
                        "description": "Date and hour of the contact consent",
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "example": "2019-01-01 00:00:00"
                      },
                      "subscription_method": {
                        "description": "Contact subscription method",
                        "type": "string",
                        "enum": [
                          "manual",
                          "form",
                          "imported",
                          "referral",
                          "api"
                        ],
                        "readOnly": true
                      },
                      "subscription_date": {
                        "description": "Date and hour of the contact subscription",
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "example": "2019-01-01 00:00:00"
                      },
                      "subscription_form": {
                        "description": "Contact subscription form",
                        "type": "integer",
                        "minimum": 0,
                        "readOnly": true
                      },
                      "unsubscription_method": {
                        "description": "Contact unsubscription method",
                        "type": "string",
                        "enum": [
                          "manual",
                          "form",
                          "unsubscribe_link",
                          "bounce",
                          "api",
                          ""
                        ],
                        "readOnly": true
                      },
                      "unsubscription_reason": {
                        "description": "Contact unsubscription reason",
                        "type": "string",
                        "enum": [
                          "not_interested",
                          "lack_of_time",
                          "email_address_change",
                          "spam",
                          "other",
                          ""
                        ],
                        "readOnly": true
                      },
                      "unsubscription_observation": {
                        "description": "Contact unsubscription observation",
                        "type": "string",
                        "readOnly": true,
                        "example": ""
                      },
                      "unsubscription_date": {
                        "description": "Contact unsubscription date",
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "example": "0000-00-00 00:00:00"
                      },
                      "change_date": {
                        "description": "Last modification date of the contact",
                        "type": "string",
                        "format": "date",
                        "readOnly": true,
                        "example": "0000-00-00 00:00:00"
                      },
                      "first_name": {
                        "description": "First name of the contact",
                        "type": "string",
                        "example": "John"
                      },
                      "last_name": {
                        "description": "Last name of the contact",
                        "type": "string",
                        "example": "Doe"
                      },
                      "birth_date": {
                        "description": "Birth date of the contact",
                        "type": "string",
                        "format": "date",
                        "example": "1975-01-10"
                      },
                      "language": {
                        "title": "language",
                        "description": "Current language",
                        "type": "string",
                        "default": "en",
                        "enum": [
                          "en",
                          "pt",
                          "br",
                          "es",
                          "de",
                          "hu",
                          "fr"
                        ]
                      },
                      "email": {
                        "description": "Email of the contact",
                        "type": "string",
                        "example": "example@e-goi.com"
                      },
                      "email_status": {
                        "description": "Email channel status",
                        "type": "string",
                        "default": "active",
                        "enum": [
                          "active",
                          "inactive"
                        ],
                        "readOnly": true
                      },
                      "cellphone": {
                        "description": "Cellphone of the contact",
                        "type": "string",
                        "example": "351-300404336"
                      },
                      "cellphone_status": {
                        "description": "Cellphone channel status",
                        "type": "string",
                        "default": "active",
                        "enum": [
                          "active",
                          "inactive"
                        ],
                        "readOnly": true
                      },
                      "phone": {
                        "description": "Phone of the contact",
                        "type": "string",
                        "example": "351-300404336"
                      },
                      "phone_status": {
                        "description": "Phone channel status",
                        "type": "string",
                        "default": "active",
                        "enum": [
                          "active",
                          "inactive"
                        ],
                        "readOnly": true
                      },
                      "push_token_android": {
                        "description": "Android push token of the contact",
                        "type": "array",
                        "items": {
                          "properties": {
                            "app_id": {
                              "title": "Push App Id",
                              "type": "string",
                              "pattern": "[a-zA-Z0-9_-]*"
                            },
                            "token": {
                              "description": "Android push app ID",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "push_token_ios": {
                        "description": "IOS push token of the contact",
                        "type": "array",
                        "items": {
                          "properties": {
                            "app_id": {
                              "title": "Push App Id",
                              "type": "string",
                              "pattern": "[a-zA-Z0-9_-]*"
                            },
                            "token": {
                              "description": "Ios push app ID",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Contact",
            "description": "Contact Extra schema",
            "properties": {
              "extra": {
                "description": "Array of the contact's extra fields",
                "type": "array",
                "items": {
                  "type": "object",
                  "oneOf": [
                    {
                      "title": "ContactExtraFieldDate",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "date"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "format": "date",
                          "example": "2019-01-01"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldText",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "text"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldCellphone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "cellphone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldPhone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "phone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldNumber",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "number"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "example": "100"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldEmail",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "email"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldOptions",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "options"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                          "type": "array",
                          "items": {
                            "type": "integer"
                          },
                          "example": [
                            1,
                            2
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "type": "object"
          },
          {
            "title": "Contact",
            "description": "Contact Utm",
            "properties": {
              "utm": {
                "description": "Contact Urchin Tracking Module (utm) fields",
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "utm_source": {
                        "description": "Utm source value",
                        "type": "string",
                        "example": "source"
                      },
                      "utm_medium": {
                        "description": "Utm medium value",
                        "type": "string",
                        "example": "medium"
                      },
                      "utm_campaign": {
                        "description": "Utm campaign value",
                        "type": "string",
                        "example": "campaign"
                      },
                      "utm_content": {
                        "description": "Utm content value",
                        "type": "string",
                        "example": "content"
                      },
                      "utm_term": {
                        "description": "Utm source value",
                        "type": "string",
                        "example": "term"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Contact",
            "description": "Contact Referrer",
            "properties": {
              "referrer": {
                "description": "Contact referrer fields",
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "referrer": {
                        "description": "Referrer value",
                        "type": "string",
                        "example": "referrer"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "contactBaseStatusExtraBulk": {
        "title": "Contact",
        "description": "Contact schema",
        "type": "object",
        "allOf": [
          {
            "title": "Contact",
            "description": "Contact base",
            "properties": {
              "base": {
                "description": "Contact base fields",
                "properties": {
                  "contact_id": {
                    "title": "Contact ID",
                    "type": "string",
                    "pattern": "[a-fA-F\\d]{10}",
                    "readOnly": true,
                    "example": "8f3a27ef26"
                  },
                  "status": {
                    "description": "Status of the contact",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive",
                      "removed",
                      "unconfirmed"
                    ]
                  },
                  "consent": {
                    "description": "Contact consent",
                    "type": "string",
                    "enum": [
                      "any",
                      "consent",
                      "contract",
                      "legitimate_interest",
                      "none",
                      "protect_vital_interests",
                      "public_interests",
                      "required_by_law",
                      "withdrawn"
                    ]
                  },
                  "first_name": {
                    "description": "First name of the contact",
                    "type": "string",
                    "example": "John"
                  },
                  "last_name": {
                    "description": "Last name of the contact",
                    "type": "string",
                    "example": "Doe"
                  },
                  "birth_date": {
                    "description": "Birth date of the contact",
                    "type": "string",
                    "format": "date",
                    "example": "1975-01-10"
                  },
                  "language": {
                    "title": "language",
                    "description": "Current language",
                    "type": "string",
                    "default": "en",
                    "enum": [
                      "en",
                      "pt",
                      "br",
                      "es",
                      "de",
                      "hu",
                      "fr"
                    ]
                  },
                  "email": {
                    "description": "Email of the contact",
                    "type": "string",
                    "example": "example@e-goi.com"
                  },
                  "email_status": {
                    "description": "Email channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "cellphone": {
                    "description": "Cellphone of the contact",
                    "type": "string",
                    "example": "351-300404336"
                  },
                  "cellphone_status": {
                    "description": "Cellphone channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "phone": {
                    "description": "Phone of the contact",
                    "type": "string",
                    "example": "351-300404336"
                  },
                  "phone_status": {
                    "description": "Phone channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "push_token_android": {
                    "description": "Android push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Android push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "push_token_ios": {
                    "description": "IOS push token of the contact",
                    "type": "array",
                    "items": {
                      "properties": {
                        "app_id": {
                          "title": "Push App Id",
                          "type": "string",
                          "pattern": "[a-zA-Z0-9_-]*"
                        },
                        "token": {
                          "description": "Ios push app ID",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "Contact",
            "description": "Contact Extra schema",
            "properties": {
              "extra": {
                "description": "Array of the contact's extra fields",
                "type": "array",
                "items": {
                  "type": "object",
                  "oneOf": [
                    {
                      "title": "ContactExtraFieldDate",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "date"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "format": "date",
                          "example": "2019-01-01"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldText",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "text"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldCellphone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "cellphone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldPhone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "phone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldNumber",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "number"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "example": "100"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldEmail",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "email"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldOptions",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "options"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                          "type": "array",
                          "items": {
                            "type": "integer"
                          },
                          "example": [
                            1,
                            2
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "type": "object"
          }
        ]
      },
      "contactTagsBulk": {
        "properties": {
          "tags": {
            "description": "Array of tags for this contact",
            "type": "array",
            "items": {
              "type": "integer"
            },
            "readOnly": true,
            "example": [
              1,
              2
            ]
          }
        },
        "type": "object"
      },
      "ContactExtraFieldsBulk": {
        "type": "object",
        "oneOf": [
          {
            "title": "ContactExtraFieldDate",
            "properties": {
              "field_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "format": {
                "description": "Extra field format",
                "type": "string",
                "enum": [
                  "date"
                ],
                "readOnly": true
              },
              "value": {
                "description": "Extra field value",
                "type": "string",
                "format": "date",
                "example": "2019-01-01"
              }
            },
            "type": "object"
          },
          {
            "title": "ContactExtraFieldText",
            "properties": {
              "field_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "format": {
                "description": "Extra field format",
                "type": "string",
                "enum": [
                  "text"
                ],
                "readOnly": true
              },
              "value": {
                "description": "Extra field value",
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "title": "ContactExtraFieldCellphone",
            "properties": {
              "field_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "format": {
                "description": "Extra field format",
                "type": "string",
                "enum": [
                  "cellphone"
                ],
                "readOnly": true
              },
              "value": {
                "description": "Extra field value",
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "title": "ContactExtraFieldPhone",
            "properties": {
              "field_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "format": {
                "description": "Extra field format",
                "type": "string",
                "enum": [
                  "phone"
                ],
                "readOnly": true
              },
              "value": {
                "description": "Extra field value",
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "title": "ContactExtraFieldNumber",
            "properties": {
              "field_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "format": {
                "description": "Extra field format",
                "type": "string",
                "enum": [
                  "number"
                ],
                "readOnly": true
              },
              "value": {
                "description": "Extra field value",
                "type": "string",
                "example": "100"
              }
            },
            "type": "object"
          },
          {
            "title": "ContactExtraFieldEmail",
            "properties": {
              "field_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "format": {
                "description": "Extra field format",
                "type": "string",
                "enum": [
                  "email"
                ],
                "readOnly": true
              },
              "value": {
                "description": "Extra field value",
                "type": "string"
              },
              "status": {
                "description": "Extra field status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "ContactExtraFieldOptions",
            "properties": {
              "field_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "format": {
                "description": "Extra field format",
                "type": "string",
                "enum": [
                  "options"
                ],
                "readOnly": true
              },
              "value": {
                "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "example": [
                  1,
                  2
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "ContactExtraFieldCellphoneBulk": {
        "title": "ContactExtraFieldCellphone",
        "properties": {
          "field_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "format": {
            "description": "Extra field format",
            "type": "string",
            "enum": [
              "cellphone"
            ],
            "readOnly": true
          },
          "value": {
            "description": "Extra field value",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ContactExtraFieldPhoneBulk": {
        "title": "ContactExtraFieldPhone",
        "properties": {
          "field_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "format": {
            "description": "Extra field format",
            "type": "string",
            "enum": [
              "phone"
            ],
            "readOnly": true
          },
          "value": {
            "description": "Extra field value",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ContactExtraFieldEmailBulk": {
        "title": "ContactExtraFieldEmail",
        "properties": {
          "field_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "format": {
            "description": "Extra field format",
            "type": "string",
            "enum": [
              "email"
            ],
            "readOnly": true
          },
          "value": {
            "description": "Extra field value",
            "type": "string"
          },
          "status": {
            "description": "Extra field status",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          }
        },
        "type": "object"
      },
      "RemoveRequest": {
        "title": "Remove Request",
        "description": "Remove contact request schema",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "allOf": [
                {
                  "properties": {
                    "contact_id": {
                      "title": "Contact ID",
                      "type": "string",
                      "pattern": "[a-fA-F\\d]{10}",
                      "example": "8f3a27ef26"
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "unsubscription Object",
                  "properties": {
                    "unsubscription_method": {
                      "description": "Unsubcription Method",
                      "type": "string",
                      "enum": [
                        "manual",
                        "form",
                        "unsubscribe_link",
                        "bounce",
                        "api"
                      ]
                    },
                    "unsubscription_reason": {
                      "description": "Unsubcription Reason",
                      "type": "string",
                      "enum": [
                        "not_interested",
                        "lack_of_time",
                        "email_address_change",
                        "spam",
                        "other"
                      ]
                    },
                    "unsubscription_observation": {
                      "description": "Unsubcription Observation",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              ]
            }
          }
        },
        "type": "object"
      },
      "RemoveResponse": {
        "title": "Remove Response",
        "description": "Remove contact response schema",
        "properties": {
          "success": {
            "type": "array",
            "items": {
              "title": "Contact ID",
              "type": "string",
              "pattern": "[a-fA-F\\d]{10}",
              "readOnly": true,
              "example": "8f3a27ef26"
            }
          },
          "errors": {
            "properties": {
              "invalid_unsubscription_reason": {
                "type": "array",
                "items": {
                  "title": "Contact ID",
                  "type": "string",
                  "pattern": "[a-fA-F\\d]{10}",
                  "readOnly": true,
                  "example": "8f3a27ef26"
                },
                "example": [
                  "cbb0077994",
                  "be9715c108",
                  "649a15f483"
                ]
              },
              "invalid_unsubscription_method": {
                "type": "array",
                "items": {
                  "title": "Contact ID",
                  "type": "string",
                  "pattern": "[a-fA-F\\d]{10}",
                  "readOnly": true,
                  "example": "8f3a27ef26"
                },
                "example": [
                  "732711d708",
                  "ba5b2b14aa"
                ]
              },
              "invalid_data_type": {
                "type": "array",
                "items": {
                  "title": "Contact ID",
                  "type": "string",
                  "pattern": "[a-fA-F\\d]{10}",
                  "readOnly": true,
                  "example": "8f3a27ef26"
                },
                "example": [
                  "44fc463242"
                ]
              },
              "contact_not_in_list": {
                "type": "array",
                "items": {
                  "title": "Contact ID",
                  "type": "string",
                  "pattern": "[a-fA-F\\d]{10}",
                  "readOnly": true,
                  "example": "8f3a27ef26"
                },
                "example": [
                  "a47a947e2b"
                ]
              },
              "contact_already_removed": {
                "type": "array",
                "items": {
                  "title": "Contact ID",
                  "type": "string",
                  "pattern": "[a-fA-F\\d]{10}",
                  "readOnly": true,
                  "example": "8f3a27ef26"
                },
                "example": [
                  "a41a247e21"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "RequestItemsUnsubscribe": {
        "type": "object",
        "allOf": [
          {
            "properties": {
              "contact_id": {
                "title": "Contact ID",
                "type": "string",
                "pattern": "[a-fA-F\\d]{10}",
                "example": "8f3a27ef26"
              }
            },
            "type": "object"
          },
          {
            "title": "unsubscription Object",
            "properties": {
              "unsubscription_method": {
                "description": "Unsubcription Method",
                "type": "string",
                "enum": [
                  "manual",
                  "form",
                  "unsubscribe_link",
                  "bounce",
                  "api"
                ]
              },
              "unsubscription_reason": {
                "description": "Unsubcription Reason",
                "type": "string",
                "enum": [
                  "not_interested",
                  "lack_of_time",
                  "email_address_change",
                  "spam",
                  "other"
                ]
              },
              "unsubscription_observation": {
                "description": "Unsubcription Observation",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "StartAutomationRequest": {
        "title": "Start Automation",
        "description": "Start automation to the provided contacts",
        "required": [
          "automation_id",
          "action_id",
          "contacts"
        ],
        "properties": {
          "automation_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "action_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "contacts": {
            "description": "Array of contact IDs to start automation",
            "type": "array",
            "items": {
              "title": "Contact ID",
              "type": "string",
              "pattern": "[a-fA-F\\d]{10}",
              "example": "8f3a27ef26"
            }
          }
        },
        "type": "object",
        "example": {
          "automation_id": 1,
          "action_id": 1,
          "contacts": [
            "8f3a27ef26",
            "aa3b21ef1a",
            "7a5b21ca17"
          ]
        }
      },
      "StartAutomationResponse": {
        "title": "Start Automation",
        "description": "Start automation to the provided contacts",
        "properties": {
          "automation_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "action_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "success": {
            "description": "Array of contacts where the automation was successfully started",
            "type": "array",
            "items": {
              "title": "Contact ID",
              "type": "string",
              "pattern": "[a-fA-F\\d]{10}",
              "readOnly": true,
              "example": "8f3a27ef26"
            }
          },
          "error": {
            "description": "Array of contacts where the automation was not successfully started",
            "type": "array",
            "items": {
              "title": "Contact ID",
              "type": "string",
              "pattern": "[a-fA-F\\d]{10}",
              "readOnly": true,
              "example": "8f3a27ef26"
            }
          }
        },
        "type": "object",
        "example": {
          "automation_id": 1,
          "action_id": 1,
          "success": [
            "8f3a27ef26",
            "7a5b21ca17"
          ],
          "error": {
            "already_in_queue": [
              "aa3b21ef1a"
            ]
          }
        }
      },
      "UpdateContactsRequest": {
        "title": "Updates contacts Request",
        "description": "Updates contacts request schema",
        "type": "object",
        "allOf": [
          {
            "title": "Updates contacts Request",
            "description": "Updates contacts request schema",
            "type": "object",
            "oneOf": [
              {
                "title": "Update by Contact",
                "required": [
                  "contacts",
                  "type"
                ],
                "properties": {
                  "type": {
                    "description": "Updates the provided contacts (excluding removed contacts)",
                    "type": "string",
                    "enum": [
                      "contacts"
                    ]
                  },
                  "contacts": {
                    "title": "Update Contacts Request",
                    "description": "Array of contact IDs to update",
                    "type": "array",
                    "items": {
                      "title": "Contact ID",
                      "type": "string",
                      "pattern": "[a-fA-F\\d]{10}",
                      "example": "8f3a27ef26"
                    },
                    "minItems": 1,
                    "uniqueItems": true
                  }
                },
                "type": "object"
              },
              {
                "title": "Update by Segment",
                "description": "Segment ID to update contacts",
                "required": [
                  "segment_id",
                  "type"
                ],
                "properties": {
                  "type": {
                    "description": "Updates contacts in the selected segment (excluding removed contacts)",
                    "type": "string",
                    "enum": [
                      "segment"
                    ]
                  },
                  "segment_id": {
                    "title": "Update Contacts Channel Field Request by segment",
                    "description": "Segment ID to update channel field",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              {
                "title": "Update for All",
                "required": [
                  "type"
                ],
                "properties": {
                  "type": {
                    "description": "Updates the contacts in the whole list (excluding removed contacts)",
                    "type": "string",
                    "enum": [
                      "all"
                    ]
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Contact",
            "description": "Contact base",
            "properties": {
              "base": {
                "description": "Contact base fields",
                "properties": {
                  "contact_id": {
                    "title": "Contact ID",
                    "type": "string",
                    "pattern": "[a-fA-F\\d]{10}",
                    "readOnly": true,
                    "example": "8f3a27ef26"
                  },
                  "status": {
                    "description": "Status of the contact",
                    "type": "string",
                    "default": "active",
                    "enum": [
                      "active",
                      "inactive",
                      "removed",
                      "unconfirmed"
                    ]
                  },
                  "consent": {
                    "description": "Contact consent",
                    "type": "string",
                    "enum": [
                      "any",
                      "consent",
                      "contract",
                      "legitimate_interest",
                      "none",
                      "protect_vital_interests",
                      "public_interests",
                      "required_by_law",
                      "withdrawn"
                    ]
                  },
                  "first_name": {
                    "description": "First name of the contact",
                    "type": "string",
                    "example": "John"
                  },
                  "last_name": {
                    "description": "Last name of the contact",
                    "type": "string",
                    "example": "Doe"
                  },
                  "birth_date": {
                    "description": "Birth date of the contact",
                    "type": "string",
                    "format": "date",
                    "example": "1975-01-10"
                  },
                  "language": {
                    "title": "language",
                    "description": "Current language",
                    "type": "string",
                    "default": "en",
                    "enum": [
                      "en",
                      "pt",
                      "br",
                      "es",
                      "de",
                      "hu",
                      "fr"
                    ]
                  },
                  "email": {
                    "description": "Email of the contact",
                    "type": "string",
                    "example": "example@e-goi.com"
                  },
                  "email_status": {
                    "description": "Email channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "cellphone": {
                    "description": "Cellphone of the contact (country code followed by phone number, split by '-')",
                    "type": "string",
                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                    "example": "351-300404336"
                  },
                  "cellphone_status": {
                    "description": "Cellphone channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  },
                  "phone": {
                    "description": "Phone of the contact (country code followed by phone number, split by '-')",
                    "type": "string",
                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                    "example": "351-300404336"
                  },
                  "phone_status": {
                    "description": "Phone channel status",
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "Contact",
            "description": "Contact Extra schema",
            "properties": {
              "extra": {
                "description": "Array of the contact's extra fields",
                "type": "array",
                "items": {
                  "type": "object",
                  "oneOf": [
                    {
                      "title": "ContactExtraFieldDate",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "date"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "format": "date",
                          "example": "2019-01-01"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldText",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "text"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldCellphone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "cellphone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Cellphone  value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldPhone",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "phone"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Phone value (country code followed by phone number, split by '-')",
                          "type": "string",
                          "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                          "example": "351-300404336"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldNumber",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "number"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string",
                          "example": "100"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldEmail",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "email"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field value",
                          "type": "string"
                        },
                        "status": {
                          "description": "Extra field status",
                          "type": "string",
                          "enum": [
                            "active",
                            "inactive"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "ContactExtraFieldOptions",
                      "properties": {
                        "field_id": {
                          "title": "ID",
                          "type": "integer",
                          "minimum": 1,
                          "example": 1
                        },
                        "format": {
                          "description": "Extra field format",
                          "type": "string",
                          "enum": [
                            "options"
                          ],
                          "readOnly": true
                        },
                        "value": {
                          "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                          "type": "array",
                          "items": {
                            "type": "integer"
                          },
                          "example": [
                            1,
                            2
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "type": "object"
          }
        ]
      },
      "ContactsActionUpdateContactsSchema": {
        "title": "Updates contacts Request",
        "description": "Updates contacts request schema",
        "type": "object",
        "oneOf": [
          {
            "title": "Update by Contact",
            "required": [
              "contacts",
              "type"
            ],
            "properties": {
              "type": {
                "description": "Updates the provided contacts (excluding removed contacts)",
                "type": "string",
                "enum": [
                  "contacts"
                ]
              },
              "contacts": {
                "title": "Update Contacts Request",
                "description": "Array of contact IDs to update",
                "type": "array",
                "items": {
                  "title": "Contact ID",
                  "type": "string",
                  "pattern": "[a-fA-F\\d]{10}",
                  "example": "8f3a27ef26"
                },
                "minItems": 1,
                "uniqueItems": true
              }
            },
            "type": "object"
          },
          {
            "title": "Update by Segment",
            "description": "Segment ID to update contacts",
            "required": [
              "segment_id",
              "type"
            ],
            "properties": {
              "type": {
                "description": "Updates contacts in the selected segment (excluding removed contacts)",
                "type": "string",
                "enum": [
                  "segment"
                ]
              },
              "segment_id": {
                "title": "Update Contacts Channel Field Request by segment",
                "description": "Segment ID to update channel field",
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "title": "Update for All",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "description": "Updates the contacts in the whole list (excluding removed contacts)",
                "type": "string",
                "enum": [
                  "all"
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "ContactActivity": {
        "title": "Contact Activity",
        "description": "Contact activity schema",
        "type": "object",
        "oneOf": [
          {
            "title": "Click Activities",
            "description": "Contact click activity schema",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "action_data": {
                    "description": "Action data",
                    "properties": {
                      "campaign_hash": {
                        "description": "campaign hash",
                        "type": "string",
                        "example": "97b5a6cecf"
                      },
                      "url": {
                        "description": "url",
                        "type": "string",
                        "example": "example.com"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              {
                "title": "Contact Activity",
                "description": "Contact activity schema",
                "properties": {
                  "date": {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  },
                  "action_name": {
                    "description": "Action name",
                    "type": "string",
                    "enum": [
                      "email_click",
                      "push_click",
                      "web_push_click",
                      "smart_sms_click"
                    ]
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Campaign Activities",
            "description": "Contact campaign activity schema",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "action_data": {
                    "description": "Action data",
                    "properties": {
                      "campaign_hash": {
                        "description": "campaign hash",
                        "type": "string",
                        "example": "97b5a6cecf"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              {
                "title": "Contact Activity",
                "description": "Campaign contact activity schema",
                "properties": {
                  "date": {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  },
                  "action_name": {
                    "description": "Action name",
                    "type": "string",
                    "enum": [
                      "email_open",
                      "forward",
                      "email_send",
                      "sms_send",
                      "voice_send",
                      "sms_report",
                      "voice_report",
                      "invitation_send",
                      "invitation_open",
                      "email_soft_bounce",
                      "email_hard_bounce",
                      "double_optin",
                      "double_optin_resend",
                      "email_spam_complaint",
                      "double_optedit",
                      "push_send",
                      "push_open",
                      "push_received",
                      "push_error",
                      "push_canceled",
                      "reply_to_email",
                      "web_push_send",
                      "web_push_delivered",
                      "web_push_open",
                      "web_push_bounce",
                      "voice_menu_event",
                      "voice_redirect",
                      "push_delivered",
                      "smart_sms_send",
                      "smart_sms_open",
                      "smart_sms_report"
                    ]
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Tag Activities",
            "description": "Contact Tags activity schema",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "action_data": {
                    "description": "Action data",
                    "properties": {
                      "tag_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "readOnly": true,
                        "example": 1
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              {
                "title": "Contact Activity",
                "description": "Contact activity schema",
                "properties": {
                  "date": {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  },
                  "action_name": {
                    "description": "Action name",
                    "type": "string",
                    "enum": [
                      "attach_tag",
                      "detach_tag"
                    ]
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Automation Activities",
            "description": "Contact Automation activity schema",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "action_data": {
                    "description": "Action data",
                    "properties": {
                      "automation_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "readOnly": true,
                        "example": 1
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              {
                "title": "Contact Activity",
                "description": "Contact activity schema",
                "properties": {
                  "date": {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  },
                  "action_name": {
                    "description": "Action name",
                    "type": "string",
                    "enum": [
                      "automation_event",
                      "automation_action",
                      "automation_trigger"
                    ]
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Other Activities",
            "description": "Other contact activity schema",
            "properties": {
              "date": {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              },
              "action_name": {
                "description": "Action name",
                "type": "string",
                "enum": [
                  "subscription",
                  "unsubscribe",
                  "unsubscribe_api",
                  "unsubscribe_manual",
                  "unsubscribe_reason",
                  "edit_subscription",
                  "resubscription",
                  "conversion",
                  "facebook_like",
                  "social_share",
                  "cellphone_field_disable",
                  "email_field_disable",
                  "phone_field_disable",
                  "email_field_enable",
                  "cellphone_field_enable",
                  "phone_field_enable",
                  "web_push_subscription",
                  "web_push_unsubscription",
                  "add_push_contact",
                  "remove_push_contact",
                  "forget_subscription",
                  "change_consent",
                  "push_unsubscription"
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "ContactOtherActivity": {
        "title": "Other Activities",
        "description": "Other contact activity schema",
        "properties": {
          "date": {
            "title": "date_time",
            "description": "The date and time",
            "type": "string",
            "format": "date-time",
            "example": "YYYY-MM-DD hh:mm:ss"
          },
          "action_name": {
            "description": "Action name",
            "type": "string",
            "enum": [
              "subscription",
              "unsubscribe",
              "unsubscribe_api",
              "unsubscribe_manual",
              "unsubscribe_reason",
              "edit_subscription",
              "resubscription",
              "conversion",
              "facebook_like",
              "social_share",
              "cellphone_field_disable",
              "email_field_disable",
              "phone_field_disable",
              "email_field_enable",
              "cellphone_field_enable",
              "phone_field_enable",
              "web_push_subscription",
              "web_push_unsubscription",
              "add_push_contact",
              "remove_push_contact",
              "forget_subscription",
              "change_consent",
              "push_unsubscription"
            ]
          }
        },
        "type": "object"
      },
      "ContactActivityAbstractActionsWithData": {
        "title": "Contact Activity",
        "description": "Contact activity schema",
        "properties": {
          "date": {
            "title": "date_time",
            "description": "The date and time",
            "type": "string",
            "format": "date-time",
            "example": "YYYY-MM-DD hh:mm:ss"
          },
          "action_name": {
            "description": "Action name",
            "type": "string",
            "enum": [
              "email_click",
              "push_click",
              "web_push_click",
              "smart_sms_click"
            ]
          }
        },
        "type": "object"
      },
      "ContactActivityAbstractActionsWithCampaign": {
        "title": "Contact Activity",
        "description": "Campaign contact activity schema",
        "properties": {
          "date": {
            "title": "date_time",
            "description": "The date and time",
            "type": "string",
            "format": "date-time",
            "example": "YYYY-MM-DD hh:mm:ss"
          },
          "action_name": {
            "description": "Action name",
            "type": "string",
            "enum": [
              "email_open",
              "forward",
              "email_send",
              "sms_send",
              "voice_send",
              "sms_report",
              "voice_report",
              "invitation_send",
              "invitation_open",
              "email_soft_bounce",
              "email_hard_bounce",
              "double_optin",
              "double_optin_resend",
              "email_spam_complaint",
              "double_optedit",
              "push_send",
              "push_open",
              "push_received",
              "push_error",
              "push_canceled",
              "reply_to_email",
              "web_push_send",
              "web_push_delivered",
              "web_push_open",
              "web_push_bounce",
              "voice_menu_event",
              "voice_redirect",
              "push_delivered",
              "smart_sms_send",
              "smart_sms_open",
              "smart_sms_report"
            ]
          }
        },
        "type": "object"
      },
      "ContactActivityAbstractActionsWithTags": {
        "title": "Contact Activity",
        "description": "Contact activity schema",
        "properties": {
          "date": {
            "title": "date_time",
            "description": "The date and time",
            "type": "string",
            "format": "date-time",
            "example": "YYYY-MM-DD hh:mm:ss"
          },
          "action_name": {
            "description": "Action name",
            "type": "string",
            "enum": [
              "attach_tag",
              "detach_tag"
            ]
          }
        },
        "type": "object"
      },
      "ContactActivityAbstractActionsWithAutomations": {
        "title": "Contact Activity",
        "description": "Contact activity schema",
        "properties": {
          "date": {
            "title": "date_time",
            "description": "The date and time",
            "type": "string",
            "format": "date-time",
            "example": "YYYY-MM-DD hh:mm:ss"
          },
          "action_name": {
            "description": "Action name",
            "type": "string",
            "enum": [
              "automation_event",
              "automation_action",
              "automation_trigger"
            ]
          }
        },
        "type": "object"
      },
      "ContactActivityClick": {
        "title": "Click Activities",
        "description": "Contact click activity schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "action_data": {
                "description": "Action data",
                "properties": {
                  "campaign_hash": {
                    "description": "campaign hash",
                    "type": "string",
                    "example": "97b5a6cecf"
                  },
                  "url": {
                    "description": "url",
                    "type": "string",
                    "example": "example.com"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "Contact Activity",
            "description": "Contact activity schema",
            "properties": {
              "date": {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              },
              "action_name": {
                "description": "Action name",
                "type": "string",
                "enum": [
                  "email_click",
                  "push_click",
                  "web_push_click",
                  "smart_sms_click"
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "ContactCampaignActivity": {
        "title": "Campaign Activities",
        "description": "Contact campaign activity schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "action_data": {
                "description": "Action data",
                "properties": {
                  "campaign_hash": {
                    "description": "campaign hash",
                    "type": "string",
                    "example": "97b5a6cecf"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "Contact Activity",
            "description": "Campaign contact activity schema",
            "properties": {
              "date": {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              },
              "action_name": {
                "description": "Action name",
                "type": "string",
                "enum": [
                  "email_open",
                  "forward",
                  "email_send",
                  "sms_send",
                  "voice_send",
                  "sms_report",
                  "voice_report",
                  "invitation_send",
                  "invitation_open",
                  "email_soft_bounce",
                  "email_hard_bounce",
                  "double_optin",
                  "double_optin_resend",
                  "email_spam_complaint",
                  "double_optedit",
                  "push_send",
                  "push_open",
                  "push_received",
                  "push_error",
                  "push_canceled",
                  "reply_to_email",
                  "web_push_send",
                  "web_push_delivered",
                  "web_push_open",
                  "web_push_bounce",
                  "voice_menu_event",
                  "voice_redirect",
                  "push_delivered",
                  "smart_sms_send",
                  "smart_sms_open",
                  "smart_sms_report"
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "ContactTagActivity": {
        "title": "Tag Activities",
        "description": "Contact Tags activity schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "action_data": {
                "description": "Action data",
                "properties": {
                  "tag_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "readOnly": true,
                    "example": 1
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "Contact Activity",
            "description": "Contact activity schema",
            "properties": {
              "date": {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              },
              "action_name": {
                "description": "Action name",
                "type": "string",
                "enum": [
                  "attach_tag",
                  "detach_tag"
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "ContactAutomationsActivity": {
        "title": "Automation Activities",
        "description": "Contact Automation activity schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "action_data": {
                "description": "Action data",
                "properties": {
                  "automation_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "readOnly": true,
                    "example": 1
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "Contact Activity",
            "description": "Contact activity schema",
            "properties": {
              "date": {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              },
              "action_name": {
                "description": "Action name",
                "type": "string",
                "enum": [
                  "automation_event",
                  "automation_action",
                  "automation_trigger"
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "PostContactsConflict": {
        "title": "PostContactsConflict",
        "description": "Error schema for post lists conflicts",
        "type": "object",
        "allOf": [
          {
            "title": "unique_field_in_use",
            "description": "Error schema for conflict when a provided field is already in use",
            "properties": {
              "errors": {
                "properties": {
                  "unique_field_in_use": {
                    "description": "Occurs when a provided field is already in use",
                    "type": "string",
                    "enum": [
                      "A unique field is already being used"
                    ]
                  },
                  "field_id": {
                    "description": "Field ID",
                    "type": "string"
                  },
                  "contacts": {
                    "type": "array",
                    "items": {
                      "title": "Contact ID",
                      "type": "string",
                      "pattern": "[a-fA-F\\d]{10}",
                      "readOnly": true,
                      "example": "8f3a27ef26"
                    }
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "BaseConflict",
            "properties": {
              "type": {
                "description": "RFC for status code definitions",
                "type": "string",
                "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
              },
              "title": {
                "description": "Error title",
                "type": "string",
                "enum": [
                  "Conflict"
                ]
              },
              "status": {
                "description": "Status code",
                "type": "integer",
                "example": 409
              },
              "detail": {
                "description": "Error detail",
                "type": "string",
                "example": "The request could not be completed due to a conflict with the current state of the target resource"
              }
            },
            "type": "object"
          }
        ]
      },
      "unique_field_in_use": {
        "title": "unique_field_in_use",
        "description": "Error schema for conflict when a provided field is already in use",
        "properties": {
          "errors": {
            "properties": {
              "unique_field_in_use": {
                "description": "Occurs when a provided field is already in use",
                "type": "string",
                "enum": [
                  "A unique field is already being used"
                ]
              },
              "field_id": {
                "description": "Field ID",
                "type": "string"
              },
              "contacts": {
                "type": "array",
                "items": {
                  "title": "Contact ID",
                  "type": "string",
                  "pattern": "[a-fA-F\\d]{10}",
                  "readOnly": true,
                  "example": "8f3a27ef26"
                }
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "ContactSearchResponse": {
        "title": "Contact Search Response",
        "description": "Returned contacts",
        "properties": {
          "contact_id": {
            "title": "Contact ID",
            "type": "string",
            "pattern": "[a-fA-F\\d]{10}",
            "readOnly": true,
            "example": "8f3a27ef26"
          },
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          }
        },
        "type": "object"
      },
      "CName": {
        "title": "CName",
        "description": "CName schema",
        "properties": {
          "cname_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "value": {
            "description": "CName value",
            "type": "string",
            "example": "mkt.example.com"
          },
          "status": {
            "description": "CName status",
            "type": "string",
            "enum": [
              "verified",
              "unverified",
              "recent",
              "invalid",
              "private"
            ],
            "readOnly": true
          }
        },
        "type": "object"
      },
      "CNamePost": {
        "title": "CName",
        "description": "CName schema",
        "properties": {
          "value": {
            "description": "CName value",
            "type": "string",
            "example": "mkt.example.com"
          }
        },
        "type": "object"
      },
      "PostCNameConflict": {
        "title": "PostCNameConflict",
        "description": "Error schema for post lists conflicts",
        "type": "object",
        "allOf": [
          {
            "title": "cname_exists",
            "description": "Error schema for conflict when the provided cname already exists",
            "properties": {
              "errors": {
                "properties": {
                  "cname_exists": {
                    "description": "Occurs when the provided cname already exists",
                    "type": "string",
                    "enum": [
                      "The provided cname already exists"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "BaseConflict",
            "properties": {
              "type": {
                "description": "RFC for status code definitions",
                "type": "string",
                "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
              },
              "title": {
                "description": "Error title",
                "type": "string",
                "enum": [
                  "Conflict"
                ]
              },
              "status": {
                "description": "Status code",
                "type": "integer",
                "example": 409
              },
              "detail": {
                "description": "Error detail",
                "type": "string",
                "example": "The request could not be completed due to a conflict with the current state of the target resource"
              }
            },
            "type": "object"
          }
        ]
      },
      "cname_exists": {
        "title": "cname_exists",
        "description": "Error schema for conflict when the provided cname already exists",
        "properties": {
          "errors": {
            "properties": {
              "cname_exists": {
                "description": "Occurs when the provided cname already exists",
                "type": "string",
                "enum": [
                  "The provided cname already exists"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "Cart": {
        "title": "Cart",
        "description": "Cart schema",
        "properties": {
          "cart_id": {
            "description": "Cart ID is any non-empty unique string",
            "type": "string",
            "example": "cart1"
          },
          "cart_total": {
            "description": "Ecommerce cart total",
            "type": "number",
            "format": "double",
            "example": 1
          },
          "cart_url": {
            "description": "Valid url for a this cart recovery",
            "type": "string",
            "example": "https://example.com/?recover=1&cart_id=8f3a27ef26"
          },
          "contact": {
            "title": "Contact",
            "description": "Contact",
            "type": "object",
            "allOf": [
              {
                "title": "Contact",
                "description": "Contact Base and Extra schema with contact_id",
                "type": "object",
                "allOf": [
                  {
                    "title": "Contact",
                    "description": "Contact base with contact_id",
                    "properties": {
                      "base": {
                        "description": "Contact base fields with contact_id",
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "contact_id": {
                                "type": "string",
                                "pattern": "[a-fA-F\\d]{10}",
                                "example": "8f3a27ef26"
                              },
                              "status": {
                                "description": "Status of the contact",
                                "type": "string",
                                "default": "active",
                                "enum": [
                                  "active",
                                  "inactive",
                                  "removed",
                                  "unconfirmed"
                                ]
                              },
                              "consent": {
                                "description": "Contact consent",
                                "type": "string",
                                "default": "consent",
                                "enum": [
                                  "any",
                                  "consent",
                                  "contract",
                                  "legitimate_interest",
                                  "none",
                                  "protect_vital_interests",
                                  "public_interests",
                                  "required_by_law",
                                  "withdrawn"
                                ],
                                "readOnly": true
                              },
                              "consent_date": {
                                "description": "Date and hour of the contact consent",
                                "type": "string",
                                "format": "date-time",
                                "readOnly": true,
                                "example": "2019-01-01 00:00:00"
                              },
                              "subscription_method": {
                                "description": "Contact subscription method",
                                "type": "string",
                                "enum": [
                                  "manual",
                                  "form",
                                  "imported",
                                  "referral",
                                  "api"
                                ],
                                "readOnly": true
                              },
                              "subscription_date": {
                                "description": "Date and hour of the contact subscription",
                                "type": "string",
                                "format": "date-time",
                                "readOnly": true,
                                "example": "2019-01-01 00:00:00"
                              },
                              "subscription_form": {
                                "description": "Contact subscription form",
                                "type": "integer",
                                "minimum": 0,
                                "readOnly": true
                              },
                              "unsubscription_method": {
                                "description": "Contact unsubscription method",
                                "type": "string",
                                "enum": [
                                  "manual",
                                  "form",
                                  "unsubscribe_link",
                                  "bounce",
                                  "api",
                                  ""
                                ],
                                "readOnly": true
                              },
                              "unsubscription_reason": {
                                "description": "Contact unsubscription reason",
                                "type": "string",
                                "enum": [
                                  "not_interested",
                                  "lack_of_time",
                                  "email_address_change",
                                  "spam",
                                  "other",
                                  ""
                                ],
                                "readOnly": true
                              },
                              "unsubscription_observation": {
                                "description": "Contact unsubscription observation",
                                "type": "string",
                                "readOnly": true,
                                "example": ""
                              },
                              "unsubscription_date": {
                                "description": "Contact unsubscription date",
                                "type": "string",
                                "format": "date-time",
                                "readOnly": true,
                                "example": "0000-00-00 00:00:00"
                              },
                              "change_date": {
                                "description": "Last modification date of the contact",
                                "type": "string",
                                "format": "date",
                                "readOnly": true,
                                "example": "0000-00-00 00:00:00"
                              },
                              "first_name": {
                                "description": "First name of the contact",
                                "type": "string",
                                "example": "John"
                              },
                              "last_name": {
                                "description": "Last name of the contact",
                                "type": "string",
                                "example": "Doe"
                              },
                              "birth_date": {
                                "description": "Birth date of the contact",
                                "type": "string",
                                "format": "date",
                                "example": "1975-01-10"
                              },
                              "language": {
                                "title": "language",
                                "description": "Current language",
                                "type": "string",
                                "default": "en",
                                "enum": [
                                  "en",
                                  "pt",
                                  "br",
                                  "es",
                                  "de",
                                  "hu",
                                  "fr"
                                ]
                              },
                              "email": {
                                "description": "Email of the contact",
                                "type": "string",
                                "example": "example@e-goi.com"
                              },
                              "email_status": {
                                "description": "Email channel status",
                                "type": "string",
                                "default": "active",
                                "enum": [
                                  "active",
                                  "inactive"
                                ],
                                "readOnly": true
                              },
                              "cellphone": {
                                "description": "Cellphone of the contact",
                                "type": "string",
                                "example": "351-300404336"
                              },
                              "cellphone_status": {
                                "description": "Cellphone channel status",
                                "type": "string",
                                "default": "active",
                                "enum": [
                                  "active",
                                  "inactive"
                                ],
                                "readOnly": true
                              },
                              "phone": {
                                "description": "Phone of the contact",
                                "type": "string",
                                "example": "351-300404336"
                              },
                              "phone_status": {
                                "description": "Phone channel status",
                                "type": "string",
                                "default": "active",
                                "enum": [
                                  "active",
                                  "inactive"
                                ],
                                "readOnly": true
                              },
                              "push_token_android": {
                                "description": "Android push token of the contact",
                                "type": "array",
                                "items": {
                                  "properties": {
                                    "app_id": {
                                      "title": "Push App Id",
                                      "type": "string",
                                      "pattern": "[a-zA-Z0-9_-]*"
                                    },
                                    "token": {
                                      "description": "Android push app ID",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              },
                              "push_token_ios": {
                                "description": "IOS push token of the contact",
                                "type": "array",
                                "items": {
                                  "properties": {
                                    "app_id": {
                                      "title": "Push App Id",
                                      "type": "string",
                                      "pattern": "[a-zA-Z0-9_-]*"
                                    },
                                    "token": {
                                      "description": "Ios push app ID",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Contact",
                    "description": "Contact Extra schema",
                    "properties": {
                      "extra": {
                        "description": "Array of the contact's extra fields",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "oneOf": [
                            {
                              "title": "ContactExtraFieldDate",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "date"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string",
                                  "format": "date",
                                  "example": "2019-01-01"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldText",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "text"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldCellphone",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "cellphone"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                  "type": "string",
                                  "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                  "example": "351-300404336"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldPhone",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "phone"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Phone value (country code followed by phone number, split by '-')",
                                  "type": "string",
                                  "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                  "example": "351-300404336"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldNumber",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "number"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string",
                                  "example": "100"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldEmail",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "email"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldOptions",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "options"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                  "type": "array",
                                  "items": {
                                    "type": "integer"
                                  },
                                  "example": [
                                    1,
                                    2
                                  ]
                                }
                              },
                              "type": "object"
                            }
                          ]
                        }
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            ]
          },
          "products": {
            "description": "List of products",
            "type": "array",
            "items": {
              "title": "Product",
              "description": "Product schema",
              "type": "object",
              "allOf": [
                {
                  "properties": {
                    "categories": {
                      "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                                syntax",
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "Clothing>Women>Blue Jeans"
                      }
                    },
                    "related_products": {
                      "description": "Related products, array of 'product_identifier'",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "custom_attributes": {
                      "description": "Custom attributes",
                      "type": "array",
                      "items": {
                        "title": "Product Custom Attributes",
                        "description": "Product Custom Attributes",
                        "properties": {
                          "alias": {
                            "description": "Custom attribute key (lower case without spaces)",
                            "type": "string",
                            "example": "sale_price_5"
                          },
                          "value": {
                            "description": "Custom attribute value",
                            "type": "string",
                            "example": "15.45"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "BasicProduct",
                  "description": "Basic Product schema",
                  "properties": {
                    "product_identifier": {
                      "description": "The ID of the product in your store",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9\\_\\-.]"
                    },
                    "catalog_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "name": {
                      "description": "Name of the product",
                      "type": "string",
                      "example": "Product name"
                    },
                    "description": {
                      "description": "Description of the product",
                      "type": "string",
                      "example": "Product description"
                    },
                    "sku": {
                      "description": "Stock Keeping Unit",
                      "type": "string"
                    },
                    "upc": {
                      "description": "Universal Product Code",
                      "type": "string"
                    },
                    "ean": {
                      "description": "European Article Numbering",
                      "type": "string"
                    },
                    "gtin": {
                      "description": "Global Trade Item Number",
                      "type": "string"
                    },
                    "mpn": {
                      "description": "Manufacturer Part Number",
                      "type": "string"
                    },
                    "link": {
                      "description": "Link for the product",
                      "type": "string"
                    },
                    "image_link": {
                      "description": "Link for the product image",
                      "type": "string"
                    },
                    "price": {
                      "description": "Price of the product",
                      "type": "number",
                      "format": "double",
                      "default": 0,
                      "example": 10
                    },
                    "sale_price": {
                      "description": "Sale price of the product",
                      "type": "number",
                      "format": "double",
                      "default": 0,
                      "example": 10
                    },
                    "brand": {
                      "description": "Brand of the product",
                      "type": "string"
                    },
                    "in_stock": {
                      "description": "Stock of the product",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              ]
            }
          }
        },
        "type": "object"
      },
      "CartPatchRequest": {
        "title": "CartPatchRequest",
        "description": "Cart patch request schema",
        "properties": {
          "cart_total": {
            "description": "Ecommerce cart total",
            "type": "number",
            "format": "double",
            "example": 1
          },
          "contact": {
            "title": "Contact",
            "description": "Contact",
            "type": "object",
            "allOf": [
              {
                "title": "Contact",
                "description": "Contact schema",
                "type": "object",
                "allOf": [
                  {
                    "title": "Contact",
                    "description": "Contact Base and Extra schema",
                    "type": "object",
                    "allOf": [
                      {
                        "title": "Contact",
                        "description": "Contact base",
                        "properties": {
                          "base": {
                            "description": "Contact base fields",
                            "type": "object",
                            "allOf": [
                              {
                                "properties": {
                                  "contact_id": {
                                    "title": "Contact ID",
                                    "type": "string",
                                    "pattern": "[a-fA-F\\d]{10}",
                                    "readOnly": true,
                                    "example": "8f3a27ef26"
                                  },
                                  "status": {
                                    "description": "Status of the contact",
                                    "type": "string",
                                    "default": "active",
                                    "enum": [
                                      "active",
                                      "inactive",
                                      "removed",
                                      "unconfirmed"
                                    ]
                                  },
                                  "consent": {
                                    "description": "Contact consent",
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "example": [
                                      "none",
                                      "any",
                                      "consent",
                                      "contract",
                                      "legitimate_interest",
                                      "required_by_law",
                                      "protect_vital_interests",
                                      "public_interests",
                                      "withdrawn"
                                    ]
                                  },
                                  "consent_date": {
                                    "description": "Date and hour of the contact consent",
                                    "type": "string",
                                    "format": "date-time",
                                    "readOnly": true,
                                    "example": "2019-01-01 00:00:00"
                                  },
                                  "subscription_method": {
                                    "description": "Contact subscription method",
                                    "type": "string",
                                    "enum": [
                                      "manual",
                                      "form",
                                      "imported",
                                      "referral",
                                      "api"
                                    ],
                                    "readOnly": true
                                  },
                                  "subscription_date": {
                                    "description": "Date and hour of the contact subscription",
                                    "type": "string",
                                    "format": "date-time",
                                    "readOnly": true,
                                    "example": "2019-01-01 00:00:00"
                                  },
                                  "subscription_form": {
                                    "description": "Contact subscription form",
                                    "type": "integer",
                                    "minimum": 0,
                                    "readOnly": true
                                  },
                                  "unsubscription_method": {
                                    "description": "Contact unsubscription method",
                                    "type": "string",
                                    "enum": [
                                      "manual",
                                      "form",
                                      "unsubscribe_link",
                                      "bounce",
                                      "api",
                                      ""
                                    ],
                                    "readOnly": true
                                  },
                                  "unsubscription_reason": {
                                    "description": "Contact unsubscription reason",
                                    "type": "string",
                                    "enum": [
                                      "not_interested",
                                      "lack_of_time",
                                      "email_address_change",
                                      "spam",
                                      "other",
                                      ""
                                    ],
                                    "readOnly": true
                                  },
                                  "unsubscription_observation": {
                                    "description": "Contact unsubscription observation",
                                    "type": "string",
                                    "readOnly": true,
                                    "example": ""
                                  },
                                  "unsubscription_date": {
                                    "description": "Contact unsubscription date",
                                    "type": "string",
                                    "format": "date-time",
                                    "readOnly": true,
                                    "example": "0000-00-00 00:00:00"
                                  },
                                  "change_date": {
                                    "description": "Last modification date of the contact",
                                    "type": "string",
                                    "format": "date",
                                    "readOnly": true,
                                    "example": "0000-00-00 00:00:00"
                                  },
                                  "first_name": {
                                    "description": "First name of the contact",
                                    "type": "string",
                                    "example": "John"
                                  },
                                  "last_name": {
                                    "description": "Last name of the contact",
                                    "type": "string",
                                    "example": "Doe"
                                  },
                                  "birth_date": {
                                    "description": "Birth date of the contact",
                                    "type": "string",
                                    "format": "date",
                                    "example": "1975-01-10"
                                  },
                                  "language": {
                                    "title": "language",
                                    "description": "Current language",
                                    "type": "string",
                                    "default": "en",
                                    "enum": [
                                      "en",
                                      "pt",
                                      "br",
                                      "es",
                                      "de",
                                      "hu",
                                      "fr"
                                    ]
                                  },
                                  "email": {
                                    "description": "Email of the contact",
                                    "type": "string",
                                    "example": "example@e-goi.com"
                                  },
                                  "email_status": {
                                    "description": "Email channel status",
                                    "type": "string",
                                    "default": "active",
                                    "enum": [
                                      "active",
                                      "inactive"
                                    ],
                                    "readOnly": true
                                  },
                                  "cellphone": {
                                    "description": "Cellphone of the contact",
                                    "type": "string",
                                    "example": "351-300404336"
                                  },
                                  "cellphone_status": {
                                    "description": "Cellphone channel status",
                                    "type": "string",
                                    "default": "active",
                                    "enum": [
                                      "active",
                                      "inactive"
                                    ],
                                    "readOnly": true
                                  },
                                  "phone": {
                                    "description": "Phone of the contact",
                                    "type": "string",
                                    "example": "351-300404336"
                                  },
                                  "phone_status": {
                                    "description": "Phone channel status",
                                    "type": "string",
                                    "default": "active",
                                    "enum": [
                                      "active",
                                      "inactive"
                                    ],
                                    "readOnly": true
                                  },
                                  "push_token_android": {
                                    "description": "Android push token of the contact",
                                    "type": "array",
                                    "items": {
                                      "properties": {
                                        "app_id": {
                                          "title": "Push App Id",
                                          "type": "string",
                                          "pattern": "[a-zA-Z0-9_-]*"
                                        },
                                        "token": {
                                          "description": "Android push app ID",
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  },
                                  "push_token_ios": {
                                    "description": "IOS push token of the contact",
                                    "type": "array",
                                    "items": {
                                      "properties": {
                                        "app_id": {
                                          "title": "Push App Id",
                                          "type": "string",
                                          "pattern": "[a-zA-Z0-9_-]*"
                                        },
                                        "token": {
                                          "description": "Ios push app ID",
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Contact",
                        "description": "Contact Extra schema",
                        "properties": {
                          "extra": {
                            "description": "Array of the contact's extra fields",
                            "type": "array",
                            "items": {
                              "type": "object",
                              "oneOf": [
                                {
                                  "title": "ContactExtraFieldDate",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "date"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field value",
                                      "type": "string",
                                      "format": "date",
                                      "example": "2019-01-01"
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldText",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "text"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field value",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldCellphone",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "cellphone"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                      "type": "string",
                                      "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                      "example": "351-300404336"
                                    },
                                    "status": {
                                      "description": "Extra field status",
                                      "type": "string",
                                      "enum": [
                                        "active",
                                        "inactive"
                                      ]
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldPhone",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "phone"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Phone value (country code followed by phone number, split by '-')",
                                      "type": "string",
                                      "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                      "example": "351-300404336"
                                    },
                                    "status": {
                                      "description": "Extra field status",
                                      "type": "string",
                                      "enum": [
                                        "active",
                                        "inactive"
                                      ]
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldNumber",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "number"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field value",
                                      "type": "string",
                                      "example": "100"
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldEmail",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "email"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field value",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Extra field status",
                                      "type": "string",
                                      "enum": [
                                        "active",
                                        "inactive"
                                      ]
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldOptions",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "options"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                      "type": "array",
                                      "items": {
                                        "type": "integer"
                                      },
                                      "example": [
                                        1,
                                        2
                                      ]
                                    }
                                  },
                                  "type": "object"
                                }
                              ]
                            }
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "properties": {
                      "tags": {
                        "description": "Array of tags for this contact",
                        "type": "array",
                        "items": {
                          "type": "integer"
                        },
                        "readOnly": true,
                        "example": [
                          1,
                          2
                        ]
                      }
                    },
                    "type": "object"
                  }
                ],
                "x-sort-index": 1
              }
            ]
          },
          "products": {
            "description": "List of products",
            "type": "array",
            "items": {
              "title": "Product",
              "description": "Product schema",
              "type": "object",
              "allOf": [
                {
                  "properties": {
                    "categories": {
                      "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                                syntax",
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "Clothing>Women>Blue Jeans"
                      }
                    },
                    "related_products": {
                      "description": "Related products, array of 'product_identifier'",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "custom_attributes": {
                      "description": "Custom attributes",
                      "type": "array",
                      "items": {
                        "title": "Product Custom Attributes",
                        "description": "Product Custom Attributes",
                        "properties": {
                          "alias": {
                            "description": "Custom attribute key (lower case without spaces)",
                            "type": "string",
                            "example": "sale_price_5"
                          },
                          "value": {
                            "description": "Custom attribute value",
                            "type": "string",
                            "example": "15.45"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "BasicProduct",
                  "description": "Basic Product schema",
                  "properties": {
                    "product_identifier": {
                      "description": "The ID of the product in your store",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9\\_\\-.]"
                    },
                    "catalog_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "name": {
                      "description": "Name of the product",
                      "type": "string",
                      "example": "Product name"
                    },
                    "description": {
                      "description": "Description of the product",
                      "type": "string",
                      "example": "Product description"
                    },
                    "sku": {
                      "description": "Stock Keeping Unit",
                      "type": "string"
                    },
                    "upc": {
                      "description": "Universal Product Code",
                      "type": "string"
                    },
                    "ean": {
                      "description": "European Article Numbering",
                      "type": "string"
                    },
                    "gtin": {
                      "description": "Global Trade Item Number",
                      "type": "string"
                    },
                    "mpn": {
                      "description": "Manufacturer Part Number",
                      "type": "string"
                    },
                    "link": {
                      "description": "Link for the product",
                      "type": "string"
                    },
                    "image_link": {
                      "description": "Link for the product image",
                      "type": "string"
                    },
                    "price": {
                      "description": "Price of the product",
                      "type": "number",
                      "format": "double",
                      "default": 0,
                      "example": 10
                    },
                    "sale_price": {
                      "description": "Sale price of the product",
                      "type": "number",
                      "format": "double",
                      "default": 0,
                      "example": 10
                    },
                    "brand": {
                      "description": "Brand of the product",
                      "type": "string"
                    },
                    "in_stock": {
                      "description": "Stock of the product",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              ]
            }
          }
        },
        "type": "object"
      },
      "CreateCartResponse": {
        "title": "CreateCartResponse",
        "description": "Create cart response schema",
        "properties": {
          "cart_id": {
            "title": "Cart ID",
            "type": "string",
            "pattern": "[a-fA-F\\d]{10}",
            "readOnly": true,
            "example": "8f3a27ef26"
          }
        },
        "type": "object"
      },
      "cart_id": {
        "title": "Cart ID",
        "type": "string",
        "pattern": "[a-fA-F\\d]{10}",
        "readOnly": true,
        "example": "8f3a27ef26"
      },
      "Catalog": {
        "title": "Catalog",
        "description": "Catalog schema",
        "properties": {
          "catalog_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "title": {
            "description": "Title of the catalog",
            "type": "string",
            "example": "Catalog title"
          },
          "default": {
            "description": "Default catalog",
            "type": "boolean",
            "example": "false"
          },
          "domain": {
            "description": "Domain or phisical store alias",
            "type": "string",
            "example": "egoi.com"
          },
          "language": {
            "description": "Language of the catalog",
            "type": "string",
            "example": "en"
          },
          "currency": {
            "description": "Currency of the catalog",
            "type": "string",
            "example": "eur"
          },
          "created": {
            "readOnly": true,
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          },
          "updated": {
            "readOnly": true,
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          }
        },
        "type": "object"
      },
      "CatalogPost": {
        "title": "Catalog",
        "description": "Catalog schema",
        "properties": {
          "title": {
            "description": "Title of the catalog",
            "type": "string",
            "example": "Catalog title"
          },
          "language": {
            "description": "Language of the catalog",
            "type": "string",
            "example": "en"
          },
          "currency": {
            "description": "Currency of the catalog",
            "type": "string",
            "example": "eur"
          },
          "default": {
            "description": "Default catalog",
            "type": "boolean",
            "example": "false"
          },
          "domain": {
            "description": "Domain or phisical store alias are accepted",
            "type": "string",
            "example": "eur"
          }
        },
        "type": "object"
      },
      "CatalogPostRequest": {
        "title": "CatalogPostRequest",
        "description": "Catalog post request schema",
        "required": [
          "title",
          "language",
          "currency"
        ],
        "type": "object",
        "allOf": [
          {
            "title": "Catalog",
            "description": "Catalog schema",
            "properties": {
              "title": {
                "description": "Title of the catalog",
                "type": "string",
                "example": "Catalog title"
              },
              "language": {
                "description": "Language of the catalog",
                "type": "string",
                "example": "en"
              },
              "currency": {
                "description": "Currency of the catalog",
                "type": "string",
                "example": "eur"
              },
              "default": {
                "description": "Default catalog",
                "type": "boolean",
                "example": "false"
              },
              "domain": {
                "description": "Domain or phisical store alias are accepted",
                "type": "string",
                "example": "eur"
              }
            },
            "type": "object"
          }
        ]
      },
      "CreateOrder": {
        "title": "CreateOrder",
        "description": "Create data",
        "required": [
          "order_id"
        ],
        "properties": {
          "order_total": {
            "description": "Ecommerce cart total",
            "type": "number",
            "format": "double",
            "example": 1
          },
          "order_id": {
            "description": "Order ID is any non-empty unique string",
            "type": "string",
            "example": "100"
          },
          "cart_id": {
            "description": "Cart ID that originated this order",
            "type": "string",
            "example": "cart1"
          },
          "order_date": {
            "description": "Date and hour of the order",
            "type": "string",
            "format": "date-time",
            "example": "2019-01-01 00:00:00"
          },
          "order_status": {
            "description": "Status of the order",
            "type": "string",
            "default": "unknown",
            "enum": [
              "created",
              "pending",
              "canceled",
              "completed",
              "unknown",
              "shipped",
              "payment_pending",
              "payment_failed",
              "paid"
            ]
          },
          "contact": {
            "title": "Contact",
            "description": "Contact",
            "type": "object",
            "allOf": [
              {
                "title": "Contact",
                "description": "Contact Base and Extra schema with contact_id",
                "type": "object",
                "allOf": [
                  {
                    "title": "Contact",
                    "description": "Contact base with contact_id",
                    "properties": {
                      "base": {
                        "description": "Contact base fields with contact_id",
                        "type": "object",
                        "allOf": [
                          {
                            "properties": {
                              "contact_id": {
                                "type": "string",
                                "pattern": "[a-fA-F\\d]{10}",
                                "example": "8f3a27ef26"
                              },
                              "status": {
                                "description": "Status of the contact",
                                "type": "string",
                                "default": "active",
                                "enum": [
                                  "active",
                                  "inactive",
                                  "removed",
                                  "unconfirmed"
                                ]
                              },
                              "consent": {
                                "description": "Contact consent",
                                "type": "string",
                                "default": "consent",
                                "enum": [
                                  "any",
                                  "consent",
                                  "contract",
                                  "legitimate_interest",
                                  "none",
                                  "protect_vital_interests",
                                  "public_interests",
                                  "required_by_law",
                                  "withdrawn"
                                ],
                                "readOnly": true
                              },
                              "consent_date": {
                                "description": "Date and hour of the contact consent",
                                "type": "string",
                                "format": "date-time",
                                "readOnly": true,
                                "example": "2019-01-01 00:00:00"
                              },
                              "subscription_method": {
                                "description": "Contact subscription method",
                                "type": "string",
                                "enum": [
                                  "manual",
                                  "form",
                                  "imported",
                                  "referral",
                                  "api"
                                ],
                                "readOnly": true
                              },
                              "subscription_date": {
                                "description": "Date and hour of the contact subscription",
                                "type": "string",
                                "format": "date-time",
                                "readOnly": true,
                                "example": "2019-01-01 00:00:00"
                              },
                              "subscription_form": {
                                "description": "Contact subscription form",
                                "type": "integer",
                                "minimum": 0,
                                "readOnly": true
                              },
                              "unsubscription_method": {
                                "description": "Contact unsubscription method",
                                "type": "string",
                                "enum": [
                                  "manual",
                                  "form",
                                  "unsubscribe_link",
                                  "bounce",
                                  "api",
                                  ""
                                ],
                                "readOnly": true
                              },
                              "unsubscription_reason": {
                                "description": "Contact unsubscription reason",
                                "type": "string",
                                "enum": [
                                  "not_interested",
                                  "lack_of_time",
                                  "email_address_change",
                                  "spam",
                                  "other",
                                  ""
                                ],
                                "readOnly": true
                              },
                              "unsubscription_observation": {
                                "description": "Contact unsubscription observation",
                                "type": "string",
                                "readOnly": true,
                                "example": ""
                              },
                              "unsubscription_date": {
                                "description": "Contact unsubscription date",
                                "type": "string",
                                "format": "date-time",
                                "readOnly": true,
                                "example": "0000-00-00 00:00:00"
                              },
                              "change_date": {
                                "description": "Last modification date of the contact",
                                "type": "string",
                                "format": "date",
                                "readOnly": true,
                                "example": "0000-00-00 00:00:00"
                              },
                              "first_name": {
                                "description": "First name of the contact",
                                "type": "string",
                                "example": "John"
                              },
                              "last_name": {
                                "description": "Last name of the contact",
                                "type": "string",
                                "example": "Doe"
                              },
                              "birth_date": {
                                "description": "Birth date of the contact",
                                "type": "string",
                                "format": "date",
                                "example": "1975-01-10"
                              },
                              "language": {
                                "title": "language",
                                "description": "Current language",
                                "type": "string",
                                "default": "en",
                                "enum": [
                                  "en",
                                  "pt",
                                  "br",
                                  "es",
                                  "de",
                                  "hu",
                                  "fr"
                                ]
                              },
                              "email": {
                                "description": "Email of the contact",
                                "type": "string",
                                "example": "example@e-goi.com"
                              },
                              "email_status": {
                                "description": "Email channel status",
                                "type": "string",
                                "default": "active",
                                "enum": [
                                  "active",
                                  "inactive"
                                ],
                                "readOnly": true
                              },
                              "cellphone": {
                                "description": "Cellphone of the contact",
                                "type": "string",
                                "example": "351-300404336"
                              },
                              "cellphone_status": {
                                "description": "Cellphone channel status",
                                "type": "string",
                                "default": "active",
                                "enum": [
                                  "active",
                                  "inactive"
                                ],
                                "readOnly": true
                              },
                              "phone": {
                                "description": "Phone of the contact",
                                "type": "string",
                                "example": "351-300404336"
                              },
                              "phone_status": {
                                "description": "Phone channel status",
                                "type": "string",
                                "default": "active",
                                "enum": [
                                  "active",
                                  "inactive"
                                ],
                                "readOnly": true
                              },
                              "push_token_android": {
                                "description": "Android push token of the contact",
                                "type": "array",
                                "items": {
                                  "properties": {
                                    "app_id": {
                                      "title": "Push App Id",
                                      "type": "string",
                                      "pattern": "[a-zA-Z0-9_-]*"
                                    },
                                    "token": {
                                      "description": "Android push app ID",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              },
                              "push_token_ios": {
                                "description": "IOS push token of the contact",
                                "type": "array",
                                "items": {
                                  "properties": {
                                    "app_id": {
                                      "title": "Push App Id",
                                      "type": "string",
                                      "pattern": "[a-zA-Z0-9_-]*"
                                    },
                                    "token": {
                                      "description": "Ios push app ID",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              }
                            },
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Contact",
                    "description": "Contact Extra schema",
                    "properties": {
                      "extra": {
                        "description": "Array of the contact's extra fields",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "oneOf": [
                            {
                              "title": "ContactExtraFieldDate",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "date"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string",
                                  "format": "date",
                                  "example": "2019-01-01"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldText",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "text"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldCellphone",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "cellphone"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                  "type": "string",
                                  "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                  "example": "351-300404336"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldPhone",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "phone"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Phone value (country code followed by phone number, split by '-')",
                                  "type": "string",
                                  "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                  "example": "351-300404336"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldNumber",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "number"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string",
                                  "example": "100"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldEmail",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "email"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field value",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Extra field status",
                                  "type": "string",
                                  "enum": [
                                    "active",
                                    "inactive"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            {
                              "title": "ContactExtraFieldOptions",
                              "properties": {
                                "field_id": {
                                  "title": "ID",
                                  "type": "integer",
                                  "minimum": 1,
                                  "example": 1
                                },
                                "format": {
                                  "description": "Extra field format",
                                  "type": "string",
                                  "enum": [
                                    "options"
                                  ],
                                  "readOnly": true
                                },
                                "value": {
                                  "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                  "type": "array",
                                  "items": {
                                    "type": "integer"
                                  },
                                  "example": [
                                    1,
                                    2
                                  ]
                                }
                              },
                              "type": "object"
                            }
                          ]
                        }
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            ]
          },
          "products": {
            "description": "List of products",
            "type": "array",
            "items": {
              "title": "OrderProduct",
              "description": "Order Product schema",
              "properties": {
                "product_identifier": {
                  "description": "The ID of the product in your store",
                  "type": "string",
                  "pattern": "[a-zA-Z0-9\\_\\-.]"
                },
                "catalog_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "readOnly": true,
                  "example": 1
                },
                "name": {
                  "description": "Name of the product",
                  "type": "string",
                  "example": "Product name"
                },
                "description": {
                  "description": "Description of the product",
                  "type": "string",
                  "example": "Product description"
                },
                "sku": {
                  "description": "Stock Keeping Unit",
                  "type": "string"
                },
                "upc": {
                  "description": "Universal Product Code",
                  "type": "string"
                },
                "ean": {
                  "description": "European Article Numbering",
                  "type": "string"
                },
                "gtin": {
                  "description": "Global Trade Item Number",
                  "type": "string"
                },
                "mpn": {
                  "description": "Manufacturer Part Number",
                  "type": "string"
                },
                "link": {
                  "description": "Link for the product",
                  "type": "string"
                },
                "image_link": {
                  "description": "Link for the product image",
                  "type": "string"
                },
                "price": {
                  "description": "Price of the product",
                  "type": "number",
                  "format": "double",
                  "default": 0,
                  "example": 10
                },
                "sale_price": {
                  "description": "Sale price of the product",
                  "type": "number",
                  "format": "double",
                  "default": 0,
                  "example": 10
                },
                "brand": {
                  "description": "Brand of the product",
                  "type": "string"
                },
                "quantity": {
                  "description": "Quantity of the product",
                  "type": "number",
                  "format": "double",
                  "default": 0
                },
                "categories": {
                  "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb syntax",
                  "type": "array",
                  "items": {
                    "type": "string",
                    "example": "Clothing>Women>Blue Jeans"
                  }
                },
                "related_products": {
                  "description": "Related products, array of 'product_identifier'",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "custom_attributes": {
                  "description": "Custom attributes",
                  "type": "array",
                  "items": {
                    "title": "Product Custom Attributes",
                    "description": "Product Custom Attributes",
                    "properties": {
                      "alias": {
                        "description": "Custom attribute key (lower case without spaces)",
                        "type": "string",
                        "example": "sale_price_5"
                      },
                      "value": {
                        "description": "Custom attribute value",
                        "type": "string",
                        "example": "15.45"
                      }
                    },
                    "type": "object"
                  }
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "Order": {
        "title": "Order",
        "description": "Order schema",
        "properties": {
          "order_id": {
            "description": "Ecommerce order id",
            "type": "string",
            "example": "100"
          },
          "cart_total": {
            "description": "Ecommerce cart total",
            "type": "number",
            "format": "double",
            "example": 1
          },
          "cart_id": {
            "description": "Cart ID is any non-empty unique string",
            "type": "string",
            "example": "100"
          },
          "contact": {
            "title": "Contact",
            "description": "Contact",
            "type": "object",
            "allOf": [
              {
                "title": "Contact",
                "description": "Contact schema",
                "type": "object",
                "allOf": [
                  {
                    "title": "Contact",
                    "description": "Contact Base and Extra schema",
                    "type": "object",
                    "allOf": [
                      {
                        "title": "Contact",
                        "description": "Contact base",
                        "properties": {
                          "base": {
                            "description": "Contact base fields",
                            "type": "object",
                            "allOf": [
                              {
                                "properties": {
                                  "contact_id": {
                                    "title": "Contact ID",
                                    "type": "string",
                                    "pattern": "[a-fA-F\\d]{10}",
                                    "readOnly": true,
                                    "example": "8f3a27ef26"
                                  },
                                  "status": {
                                    "description": "Status of the contact",
                                    "type": "string",
                                    "default": "active",
                                    "enum": [
                                      "active",
                                      "inactive",
                                      "removed",
                                      "unconfirmed"
                                    ]
                                  },
                                  "consent": {
                                    "description": "Contact consent",
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "example": [
                                      "none",
                                      "any",
                                      "consent",
                                      "contract",
                                      "legitimate_interest",
                                      "required_by_law",
                                      "protect_vital_interests",
                                      "public_interests",
                                      "withdrawn"
                                    ]
                                  },
                                  "consent_date": {
                                    "description": "Date and hour of the contact consent",
                                    "type": "string",
                                    "format": "date-time",
                                    "readOnly": true,
                                    "example": "2019-01-01 00:00:00"
                                  },
                                  "subscription_method": {
                                    "description": "Contact subscription method",
                                    "type": "string",
                                    "enum": [
                                      "manual",
                                      "form",
                                      "imported",
                                      "referral",
                                      "api"
                                    ],
                                    "readOnly": true
                                  },
                                  "subscription_date": {
                                    "description": "Date and hour of the contact subscription",
                                    "type": "string",
                                    "format": "date-time",
                                    "readOnly": true,
                                    "example": "2019-01-01 00:00:00"
                                  },
                                  "subscription_form": {
                                    "description": "Contact subscription form",
                                    "type": "integer",
                                    "minimum": 0,
                                    "readOnly": true
                                  },
                                  "unsubscription_method": {
                                    "description": "Contact unsubscription method",
                                    "type": "string",
                                    "enum": [
                                      "manual",
                                      "form",
                                      "unsubscribe_link",
                                      "bounce",
                                      "api",
                                      ""
                                    ],
                                    "readOnly": true
                                  },
                                  "unsubscription_reason": {
                                    "description": "Contact unsubscription reason",
                                    "type": "string",
                                    "enum": [
                                      "not_interested",
                                      "lack_of_time",
                                      "email_address_change",
                                      "spam",
                                      "other",
                                      ""
                                    ],
                                    "readOnly": true
                                  },
                                  "unsubscription_observation": {
                                    "description": "Contact unsubscription observation",
                                    "type": "string",
                                    "readOnly": true,
                                    "example": ""
                                  },
                                  "unsubscription_date": {
                                    "description": "Contact unsubscription date",
                                    "type": "string",
                                    "format": "date-time",
                                    "readOnly": true,
                                    "example": "0000-00-00 00:00:00"
                                  },
                                  "change_date": {
                                    "description": "Last modification date of the contact",
                                    "type": "string",
                                    "format": "date",
                                    "readOnly": true,
                                    "example": "0000-00-00 00:00:00"
                                  },
                                  "first_name": {
                                    "description": "First name of the contact",
                                    "type": "string",
                                    "example": "John"
                                  },
                                  "last_name": {
                                    "description": "Last name of the contact",
                                    "type": "string",
                                    "example": "Doe"
                                  },
                                  "birth_date": {
                                    "description": "Birth date of the contact",
                                    "type": "string",
                                    "format": "date",
                                    "example": "1975-01-10"
                                  },
                                  "language": {
                                    "title": "language",
                                    "description": "Current language",
                                    "type": "string",
                                    "default": "en",
                                    "enum": [
                                      "en",
                                      "pt",
                                      "br",
                                      "es",
                                      "de",
                                      "hu",
                                      "fr"
                                    ]
                                  },
                                  "email": {
                                    "description": "Email of the contact",
                                    "type": "string",
                                    "example": "example@e-goi.com"
                                  },
                                  "email_status": {
                                    "description": "Email channel status",
                                    "type": "string",
                                    "default": "active",
                                    "enum": [
                                      "active",
                                      "inactive"
                                    ],
                                    "readOnly": true
                                  },
                                  "cellphone": {
                                    "description": "Cellphone of the contact",
                                    "type": "string",
                                    "example": "351-300404336"
                                  },
                                  "cellphone_status": {
                                    "description": "Cellphone channel status",
                                    "type": "string",
                                    "default": "active",
                                    "enum": [
                                      "active",
                                      "inactive"
                                    ],
                                    "readOnly": true
                                  },
                                  "phone": {
                                    "description": "Phone of the contact",
                                    "type": "string",
                                    "example": "351-300404336"
                                  },
                                  "phone_status": {
                                    "description": "Phone channel status",
                                    "type": "string",
                                    "default": "active",
                                    "enum": [
                                      "active",
                                      "inactive"
                                    ],
                                    "readOnly": true
                                  },
                                  "push_token_android": {
                                    "description": "Android push token of the contact",
                                    "type": "array",
                                    "items": {
                                      "properties": {
                                        "app_id": {
                                          "title": "Push App Id",
                                          "type": "string",
                                          "pattern": "[a-zA-Z0-9_-]*"
                                        },
                                        "token": {
                                          "description": "Android push app ID",
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  },
                                  "push_token_ios": {
                                    "description": "IOS push token of the contact",
                                    "type": "array",
                                    "items": {
                                      "properties": {
                                        "app_id": {
                                          "title": "Push App Id",
                                          "type": "string",
                                          "pattern": "[a-zA-Z0-9_-]*"
                                        },
                                        "token": {
                                          "description": "Ios push app ID",
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Contact",
                        "description": "Contact Extra schema",
                        "properties": {
                          "extra": {
                            "description": "Array of the contact's extra fields",
                            "type": "array",
                            "items": {
                              "type": "object",
                              "oneOf": [
                                {
                                  "title": "ContactExtraFieldDate",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "date"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field value",
                                      "type": "string",
                                      "format": "date",
                                      "example": "2019-01-01"
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldText",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "text"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field value",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldCellphone",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "cellphone"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                      "type": "string",
                                      "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                      "example": "351-300404336"
                                    },
                                    "status": {
                                      "description": "Extra field status",
                                      "type": "string",
                                      "enum": [
                                        "active",
                                        "inactive"
                                      ]
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldPhone",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "phone"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Phone value (country code followed by phone number, split by '-')",
                                      "type": "string",
                                      "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                      "example": "351-300404336"
                                    },
                                    "status": {
                                      "description": "Extra field status",
                                      "type": "string",
                                      "enum": [
                                        "active",
                                        "inactive"
                                      ]
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldNumber",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "number"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field value",
                                      "type": "string",
                                      "example": "100"
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldEmail",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "email"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field value",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Extra field status",
                                      "type": "string",
                                      "enum": [
                                        "active",
                                        "inactive"
                                      ]
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldOptions",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "options"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                      "type": "array",
                                      "items": {
                                        "type": "integer"
                                      },
                                      "example": [
                                        1,
                                        2
                                      ]
                                    }
                                  },
                                  "type": "object"
                                }
                              ]
                            }
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "properties": {
                      "tags": {
                        "description": "Array of tags for this contact",
                        "type": "array",
                        "items": {
                          "type": "integer"
                        },
                        "readOnly": true,
                        "example": [
                          1,
                          2
                        ]
                      }
                    },
                    "type": "object"
                  }
                ],
                "x-sort-index": 1
              }
            ]
          },
          "products": {
            "description": "List of products",
            "type": "array",
            "items": {
              "title": "Product",
              "description": "Product schema",
              "type": "object",
              "allOf": [
                {
                  "properties": {
                    "categories": {
                      "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                                syntax",
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "Clothing>Women>Blue Jeans"
                      }
                    },
                    "related_products": {
                      "description": "Related products, array of 'product_identifier'",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "custom_attributes": {
                      "description": "Custom attributes",
                      "type": "array",
                      "items": {
                        "title": "Product Custom Attributes",
                        "description": "Product Custom Attributes",
                        "properties": {
                          "alias": {
                            "description": "Custom attribute key (lower case without spaces)",
                            "type": "string",
                            "example": "sale_price_5"
                          },
                          "value": {
                            "description": "Custom attribute value",
                            "type": "string",
                            "example": "15.45"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "BasicProduct",
                  "description": "Basic Product schema",
                  "properties": {
                    "product_identifier": {
                      "description": "The ID of the product in your store",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9\\_\\-.]"
                    },
                    "catalog_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "name": {
                      "description": "Name of the product",
                      "type": "string",
                      "example": "Product name"
                    },
                    "description": {
                      "description": "Description of the product",
                      "type": "string",
                      "example": "Product description"
                    },
                    "sku": {
                      "description": "Stock Keeping Unit",
                      "type": "string"
                    },
                    "upc": {
                      "description": "Universal Product Code",
                      "type": "string"
                    },
                    "ean": {
                      "description": "European Article Numbering",
                      "type": "string"
                    },
                    "gtin": {
                      "description": "Global Trade Item Number",
                      "type": "string"
                    },
                    "mpn": {
                      "description": "Manufacturer Part Number",
                      "type": "string"
                    },
                    "link": {
                      "description": "Link for the product",
                      "type": "string"
                    },
                    "image_link": {
                      "description": "Link for the product image",
                      "type": "string"
                    },
                    "price": {
                      "description": "Price of the product",
                      "type": "number",
                      "format": "double",
                      "default": 0,
                      "example": 10
                    },
                    "sale_price": {
                      "description": "Sale price of the product",
                      "type": "number",
                      "format": "double",
                      "default": 0,
                      "example": 10
                    },
                    "brand": {
                      "description": "Brand of the product",
                      "type": "string"
                    },
                    "in_stock": {
                      "description": "Stock of the product",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              ]
            }
          }
        },
        "type": "object"
      },
      "OrderPatchRequest": {
        "title": "OrderPatchRequest",
        "description": "Order patch request schema",
        "properties": {
          "cart_total": {
            "description": "Ecommerce cart total",
            "type": "number",
            "format": "double",
            "example": 1
          },
          "cart_id": {
            "description": "Cart ID is any non-empty unique string",
            "type": "string",
            "example": "100"
          },
          "contact": {
            "title": "Contact",
            "description": "Contact",
            "type": "object",
            "allOf": [
              {
                "title": "Contact",
                "description": "Contact schema",
                "type": "object",
                "allOf": [
                  {
                    "title": "Contact",
                    "description": "Contact Base and Extra schema",
                    "type": "object",
                    "allOf": [
                      {
                        "title": "Contact",
                        "description": "Contact base",
                        "properties": {
                          "base": {
                            "description": "Contact base fields",
                            "type": "object",
                            "allOf": [
                              {
                                "properties": {
                                  "contact_id": {
                                    "title": "Contact ID",
                                    "type": "string",
                                    "pattern": "[a-fA-F\\d]{10}",
                                    "readOnly": true,
                                    "example": "8f3a27ef26"
                                  },
                                  "status": {
                                    "description": "Status of the contact",
                                    "type": "string",
                                    "default": "active",
                                    "enum": [
                                      "active",
                                      "inactive",
                                      "removed",
                                      "unconfirmed"
                                    ]
                                  },
                                  "consent": {
                                    "description": "Contact consent",
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "example": [
                                      "none",
                                      "any",
                                      "consent",
                                      "contract",
                                      "legitimate_interest",
                                      "required_by_law",
                                      "protect_vital_interests",
                                      "public_interests",
                                      "withdrawn"
                                    ]
                                  },
                                  "consent_date": {
                                    "description": "Date and hour of the contact consent",
                                    "type": "string",
                                    "format": "date-time",
                                    "readOnly": true,
                                    "example": "2019-01-01 00:00:00"
                                  },
                                  "subscription_method": {
                                    "description": "Contact subscription method",
                                    "type": "string",
                                    "enum": [
                                      "manual",
                                      "form",
                                      "imported",
                                      "referral",
                                      "api"
                                    ],
                                    "readOnly": true
                                  },
                                  "subscription_date": {
                                    "description": "Date and hour of the contact subscription",
                                    "type": "string",
                                    "format": "date-time",
                                    "readOnly": true,
                                    "example": "2019-01-01 00:00:00"
                                  },
                                  "subscription_form": {
                                    "description": "Contact subscription form",
                                    "type": "integer",
                                    "minimum": 0,
                                    "readOnly": true
                                  },
                                  "unsubscription_method": {
                                    "description": "Contact unsubscription method",
                                    "type": "string",
                                    "enum": [
                                      "manual",
                                      "form",
                                      "unsubscribe_link",
                                      "bounce",
                                      "api",
                                      ""
                                    ],
                                    "readOnly": true
                                  },
                                  "unsubscription_reason": {
                                    "description": "Contact unsubscription reason",
                                    "type": "string",
                                    "enum": [
                                      "not_interested",
                                      "lack_of_time",
                                      "email_address_change",
                                      "spam",
                                      "other",
                                      ""
                                    ],
                                    "readOnly": true
                                  },
                                  "unsubscription_observation": {
                                    "description": "Contact unsubscription observation",
                                    "type": "string",
                                    "readOnly": true,
                                    "example": ""
                                  },
                                  "unsubscription_date": {
                                    "description": "Contact unsubscription date",
                                    "type": "string",
                                    "format": "date-time",
                                    "readOnly": true,
                                    "example": "0000-00-00 00:00:00"
                                  },
                                  "change_date": {
                                    "description": "Last modification date of the contact",
                                    "type": "string",
                                    "format": "date",
                                    "readOnly": true,
                                    "example": "0000-00-00 00:00:00"
                                  },
                                  "first_name": {
                                    "description": "First name of the contact",
                                    "type": "string",
                                    "example": "John"
                                  },
                                  "last_name": {
                                    "description": "Last name of the contact",
                                    "type": "string",
                                    "example": "Doe"
                                  },
                                  "birth_date": {
                                    "description": "Birth date of the contact",
                                    "type": "string",
                                    "format": "date",
                                    "example": "1975-01-10"
                                  },
                                  "language": {
                                    "title": "language",
                                    "description": "Current language",
                                    "type": "string",
                                    "default": "en",
                                    "enum": [
                                      "en",
                                      "pt",
                                      "br",
                                      "es",
                                      "de",
                                      "hu",
                                      "fr"
                                    ]
                                  },
                                  "email": {
                                    "description": "Email of the contact",
                                    "type": "string",
                                    "example": "example@e-goi.com"
                                  },
                                  "email_status": {
                                    "description": "Email channel status",
                                    "type": "string",
                                    "default": "active",
                                    "enum": [
                                      "active",
                                      "inactive"
                                    ],
                                    "readOnly": true
                                  },
                                  "cellphone": {
                                    "description": "Cellphone of the contact",
                                    "type": "string",
                                    "example": "351-300404336"
                                  },
                                  "cellphone_status": {
                                    "description": "Cellphone channel status",
                                    "type": "string",
                                    "default": "active",
                                    "enum": [
                                      "active",
                                      "inactive"
                                    ],
                                    "readOnly": true
                                  },
                                  "phone": {
                                    "description": "Phone of the contact",
                                    "type": "string",
                                    "example": "351-300404336"
                                  },
                                  "phone_status": {
                                    "description": "Phone channel status",
                                    "type": "string",
                                    "default": "active",
                                    "enum": [
                                      "active",
                                      "inactive"
                                    ],
                                    "readOnly": true
                                  },
                                  "push_token_android": {
                                    "description": "Android push token of the contact",
                                    "type": "array",
                                    "items": {
                                      "properties": {
                                        "app_id": {
                                          "title": "Push App Id",
                                          "type": "string",
                                          "pattern": "[a-zA-Z0-9_-]*"
                                        },
                                        "token": {
                                          "description": "Android push app ID",
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  },
                                  "push_token_ios": {
                                    "description": "IOS push token of the contact",
                                    "type": "array",
                                    "items": {
                                      "properties": {
                                        "app_id": {
                                          "title": "Push App Id",
                                          "type": "string",
                                          "pattern": "[a-zA-Z0-9_-]*"
                                        },
                                        "token": {
                                          "description": "Ios push app ID",
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    }
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "Contact",
                        "description": "Contact Extra schema",
                        "properties": {
                          "extra": {
                            "description": "Array of the contact's extra fields",
                            "type": "array",
                            "items": {
                              "type": "object",
                              "oneOf": [
                                {
                                  "title": "ContactExtraFieldDate",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "date"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field value",
                                      "type": "string",
                                      "format": "date",
                                      "example": "2019-01-01"
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldText",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "text"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field value",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldCellphone",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "cellphone"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Cellphone  value (country code followed by phone number, split by '-')",
                                      "type": "string",
                                      "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                      "example": "351-300404336"
                                    },
                                    "status": {
                                      "description": "Extra field status",
                                      "type": "string",
                                      "enum": [
                                        "active",
                                        "inactive"
                                      ]
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldPhone",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "phone"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Phone value (country code followed by phone number, split by '-')",
                                      "type": "string",
                                      "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                                      "example": "351-300404336"
                                    },
                                    "status": {
                                      "description": "Extra field status",
                                      "type": "string",
                                      "enum": [
                                        "active",
                                        "inactive"
                                      ]
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldNumber",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "number"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field value",
                                      "type": "string",
                                      "example": "100"
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldEmail",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "email"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field value",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Extra field status",
                                      "type": "string",
                                      "enum": [
                                        "active",
                                        "inactive"
                                      ]
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "title": "ContactExtraFieldOptions",
                                  "properties": {
                                    "field_id": {
                                      "title": "ID",
                                      "type": "integer",
                                      "minimum": 1,
                                      "example": 1
                                    },
                                    "format": {
                                      "description": "Extra field format",
                                      "type": "string",
                                      "enum": [
                                        "options"
                                      ],
                                      "readOnly": true
                                    },
                                    "value": {
                                      "description": "Extra field options Id's <a href='/api/v3/#tag/Fields/operation/getAllFieldOptions' target='_blank'>[Go to getAllFieldOptions documentation]</a>",
                                      "type": "array",
                                      "items": {
                                        "type": "integer"
                                      },
                                      "example": [
                                        1,
                                        2
                                      ]
                                    }
                                  },
                                  "type": "object"
                                }
                              ]
                            }
                          }
                        },
                        "type": "object"
                      }
                    ]
                  },
                  {
                    "properties": {
                      "tags": {
                        "description": "Array of tags for this contact",
                        "type": "array",
                        "items": {
                          "type": "integer"
                        },
                        "readOnly": true,
                        "example": [
                          1,
                          2
                        ]
                      }
                    },
                    "type": "object"
                  }
                ],
                "x-sort-index": 1
              }
            ]
          },
          "products": {
            "description": "List of products",
            "type": "array",
            "items": {
              "title": "Product",
              "description": "Product schema",
              "type": "object",
              "allOf": [
                {
                  "properties": {
                    "categories": {
                      "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                                syntax",
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "Clothing>Women>Blue Jeans"
                      }
                    },
                    "related_products": {
                      "description": "Related products, array of 'product_identifier'",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "custom_attributes": {
                      "description": "Custom attributes",
                      "type": "array",
                      "items": {
                        "title": "Product Custom Attributes",
                        "description": "Product Custom Attributes",
                        "properties": {
                          "alias": {
                            "description": "Custom attribute key (lower case without spaces)",
                            "type": "string",
                            "example": "sale_price_5"
                          },
                          "value": {
                            "description": "Custom attribute value",
                            "type": "string",
                            "example": "15.45"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "BasicProduct",
                  "description": "Basic Product schema",
                  "properties": {
                    "product_identifier": {
                      "description": "The ID of the product in your store",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9\\_\\-.]"
                    },
                    "catalog_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "name": {
                      "description": "Name of the product",
                      "type": "string",
                      "example": "Product name"
                    },
                    "description": {
                      "description": "Description of the product",
                      "type": "string",
                      "example": "Product description"
                    },
                    "sku": {
                      "description": "Stock Keeping Unit",
                      "type": "string"
                    },
                    "upc": {
                      "description": "Universal Product Code",
                      "type": "string"
                    },
                    "ean": {
                      "description": "European Article Numbering",
                      "type": "string"
                    },
                    "gtin": {
                      "description": "Global Trade Item Number",
                      "type": "string"
                    },
                    "mpn": {
                      "description": "Manufacturer Part Number",
                      "type": "string"
                    },
                    "link": {
                      "description": "Link for the product",
                      "type": "string"
                    },
                    "image_link": {
                      "description": "Link for the product image",
                      "type": "string"
                    },
                    "price": {
                      "description": "Price of the product",
                      "type": "number",
                      "format": "double",
                      "default": 0,
                      "example": 10
                    },
                    "sale_price": {
                      "description": "Sale price of the product",
                      "type": "number",
                      "format": "double",
                      "default": 0,
                      "example": 10
                    },
                    "brand": {
                      "description": "Brand of the product",
                      "type": "string"
                    },
                    "in_stock": {
                      "description": "Stock of the product",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              ]
            }
          }
        },
        "type": "object"
      },
      "ImportOrdersBulk": {
        "title": "ImportOrdersBulk",
        "description": "Orders import bulk request schema",
        "type": "array",
        "items": {
          "title": "ImportOrdersBulkBulkRequest",
          "description": "Order data",
          "required": [
            "order_id",
            "contact_id",
            "revenue",
            "store_url",
            "date",
            "items"
          ],
          "properties": {
            "order_id": {
              "description": "Ecommerce order id",
              "type": "string",
              "example": "100"
            },
            "order_status": {
              "description": "Status of the order",
              "type": "string",
              "default": "unknown",
              "enum": [
                "created",
                "pending",
                "canceled",
                "completed",
                "unknown",
                "shipped",
                "payment_pending",
                "payment_failed",
                "paid"
              ]
            },
            "contact_id": {
              "description": "Contact ID is any non-empty unique string identifying the user (such as an email address or e-goi uid)",
              "type": "string",
              "example": "customer@e-goi.com"
            },
            "revenue": {
              "description": "Ecommerce order revenue.",
              "type": "number",
              "example": 100
            },
            "store_url": {
              "description": "Ecommerce store url",
              "type": "string",
              "example": "https://www.e-goi.com"
            },
            "date": {
              "description": "Ecommerce order date (For technical reasons, all orders synchronized will have the date of synchronization.)",
              "allOf": [
                {
                  "title": "date_time",
                  "description": "The date and time",
                  "type": "string",
                  "format": "date-time",
                  "example": "YYYY-MM-DD hh:mm:ss"
                }
              ]
            },
            "items": {
              "description": "Array of ordered products",
              "type": "array",
              "items": {
                "title": "Contact",
                "description": "Ecommerce Order Items",
                "required": [
                  "id",
                  "name"
                ],
                "properties": {
                  "id": {
                    "description": "Ecommerce order item id",
                    "type": "string",
                    "example": "100"
                  },
                  "name": {
                    "description": "Ecommerce order item name",
                    "type": "string",
                    "example": "Product 1"
                  },
                  "category": {
                    "description": "Ecommerce order item category id (comma separated if more than one)",
                    "type": "string",
                    "example": "10"
                  },
                  "price": {
                    "description": "Ecommerce order item price",
                    "type": "number",
                    "minimum": 0,
                    "example": 100
                  },
                  "quantity": {
                    "description": "Ecommerce order item quantity",
                    "type": "integer",
                    "minimum": 0,
                    "example": 2
                  }
                },
                "type": "object"
              }
            }
          },
          "type": "object"
        }
      },
      "ImportOrdersBulkBulkRequest": {
        "title": "ImportOrdersBulkBulkRequest",
        "description": "Order data",
        "required": [
          "order_id",
          "contact_id",
          "revenue",
          "store_url",
          "date",
          "items"
        ],
        "properties": {
          "order_id": {
            "description": "Ecommerce order id",
            "type": "string",
            "example": "100"
          },
          "order_status": {
            "description": "Status of the order",
            "type": "string",
            "default": "unknown",
            "enum": [
              "created",
              "pending",
              "canceled",
              "completed",
              "unknown",
              "shipped",
              "payment_pending",
              "payment_failed",
              "paid"
            ]
          },
          "contact_id": {
            "description": "Contact ID is any non-empty unique string identifying the user (such as an email address or e-goi uid)",
            "type": "string",
            "example": "customer@e-goi.com"
          },
          "revenue": {
            "description": "Ecommerce order revenue.",
            "type": "number",
            "example": 100
          },
          "store_url": {
            "description": "Ecommerce store url",
            "type": "string",
            "example": "https://www.e-goi.com"
          },
          "date": {
            "description": "Ecommerce order date (For technical reasons, all orders synchronized will have the date of synchronization.)",
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          },
          "items": {
            "description": "Array of ordered products",
            "type": "array",
            "items": {
              "title": "Contact",
              "description": "Ecommerce Order Items",
              "required": [
                "id",
                "name"
              ],
              "properties": {
                "id": {
                  "description": "Ecommerce order item id",
                  "type": "string",
                  "example": "100"
                },
                "name": {
                  "description": "Ecommerce order item name",
                  "type": "string",
                  "example": "Product 1"
                },
                "category": {
                  "description": "Ecommerce order item category id (comma separated if more than one)",
                  "type": "string",
                  "example": "10"
                },
                "price": {
                  "description": "Ecommerce order item price",
                  "type": "number",
                  "minimum": 0,
                  "example": 100
                },
                "quantity": {
                  "description": "Ecommerce order item quantity",
                  "type": "integer",
                  "minimum": 0,
                  "example": 2
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "SingleOrderObject": {
        "title": "SingleOrderObject",
        "description": "Single Order data",
        "required": [
          "order_id",
          "revenue",
          "store_url",
          "date",
          "items"
        ],
        "properties": {
          "order_id": {
            "description": "Ecommerce order id",
            "type": "string",
            "example": "100"
          },
          "revenue": {
            "description": "Ecommerce order revenue",
            "type": "number",
            "minimum": 0,
            "example": 100
          },
          "store_url": {
            "description": "Ecommerce store url or phisical store alias are accepted",
            "type": "string",
            "example": "https://www.e-goi.com"
          },
          "items": {
            "description": "Array of ordered products",
            "type": "array",
            "items": {
              "title": "Contact",
              "description": "Ecommerce Order Items",
              "required": [
                "id",
                "name"
              ],
              "properties": {
                "id": {
                  "description": "Ecommerce order item id",
                  "type": "string",
                  "example": "100"
                },
                "name": {
                  "description": "Ecommerce order item name",
                  "type": "string",
                  "example": "Product 1"
                },
                "category": {
                  "description": "Ecommerce order item category id (comma separated if more than one)",
                  "type": "string",
                  "example": "10"
                },
                "price": {
                  "description": "Ecommerce order item price",
                  "type": "number",
                  "minimum": 0,
                  "example": 100
                },
                "quantity": {
                  "description": "Ecommerce order item quantity",
                  "type": "integer",
                  "minimum": 0,
                  "example": 2
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "SingleCartObject": {
        "title": "SingleCartObject",
        "description": "Single Cart data",
        "required": [
          "revenue",
          "store_url",
          "date",
          "items"
        ],
        "properties": {
          "revenue": {
            "description": "Ecommerce cart revenue",
            "type": "number",
            "minimum": 0,
            "example": 100
          },
          "store_url": {
            "description": "Ecommerce store url",
            "type": "string",
            "example": "https://www.e-goi.com"
          },
          "items": {
            "description": "Array of cart's products",
            "type": "array",
            "items": {
              "title": "Contact",
              "description": "Ecommerce Order Items",
              "required": [
                "id",
                "name"
              ],
              "properties": {
                "id": {
                  "description": "Ecommerce order item id",
                  "type": "string",
                  "example": "100"
                },
                "name": {
                  "description": "Ecommerce order item name",
                  "type": "string",
                  "example": "Product 1"
                },
                "category": {
                  "description": "Ecommerce order item category id (comma separated if more than one)",
                  "type": "string",
                  "example": "10"
                },
                "price": {
                  "description": "Ecommerce order item price",
                  "type": "number",
                  "minimum": 0,
                  "example": 100
                },
                "quantity": {
                  "description": "Ecommerce order item quantity",
                  "type": "integer",
                  "minimum": 0,
                  "example": 2
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "ImportOrdersBulkBulkRequestItems": {
        "title": "Contact",
        "description": "Ecommerce Order Items",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "description": "Ecommerce order item id",
            "type": "string",
            "example": "100"
          },
          "name": {
            "description": "Ecommerce order item name",
            "type": "string",
            "example": "Product 1"
          },
          "category": {
            "description": "Ecommerce order item category id (comma separated if more than one)",
            "type": "string",
            "example": "10"
          },
          "price": {
            "description": "Ecommerce order item price",
            "type": "number",
            "minimum": 0,
            "example": 100
          },
          "quantity": {
            "description": "Ecommerce order item quantity",
            "type": "integer",
            "minimum": 0,
            "example": 2
          }
        },
        "type": "object"
      },
      "CreateOrderResponse": {
        "title": "CreateOrderResponse",
        "description": "Create Order Response",
        "properties": {
          "order_id": {
            "description": "Ecommerce order id",
            "type": "string",
            "example": "100"
          }
        },
        "type": "object"
      },
      "BasicProduct": {
        "title": "BasicProduct",
        "description": "Basic Product schema",
        "properties": {
          "product_identifier": {
            "description": "The ID of the product in your store",
            "type": "string",
            "pattern": "[a-zA-Z0-9\\_\\-.]"
          },
          "catalog_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "name": {
            "description": "Name of the product",
            "type": "string",
            "example": "Product name"
          },
          "description": {
            "description": "Description of the product",
            "type": "string",
            "example": "Product description"
          },
          "sku": {
            "description": "Stock Keeping Unit",
            "type": "string"
          },
          "upc": {
            "description": "Universal Product Code",
            "type": "string"
          },
          "ean": {
            "description": "European Article Numbering",
            "type": "string"
          },
          "gtin": {
            "description": "Global Trade Item Number",
            "type": "string"
          },
          "mpn": {
            "description": "Manufacturer Part Number",
            "type": "string"
          },
          "link": {
            "description": "Link for the product",
            "type": "string"
          },
          "image_link": {
            "description": "Link for the product image",
            "type": "string"
          },
          "price": {
            "description": "Price of the product",
            "type": "number",
            "format": "double",
            "default": 0,
            "example": 10
          },
          "sale_price": {
            "description": "Sale price of the product",
            "type": "number",
            "format": "double",
            "default": 0,
            "example": 10
          },
          "brand": {
            "description": "Brand of the product",
            "type": "string"
          },
          "in_stock": {
            "description": "Stock of the product",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "OrderProduct": {
        "title": "OrderProduct",
        "description": "Order Product schema",
        "properties": {
          "product_identifier": {
            "description": "The ID of the product in your store",
            "type": "string",
            "pattern": "[a-zA-Z0-9\\_\\-.]"
          },
          "catalog_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "name": {
            "description": "Name of the product",
            "type": "string",
            "example": "Product name"
          },
          "description": {
            "description": "Description of the product",
            "type": "string",
            "example": "Product description"
          },
          "sku": {
            "description": "Stock Keeping Unit",
            "type": "string"
          },
          "upc": {
            "description": "Universal Product Code",
            "type": "string"
          },
          "ean": {
            "description": "European Article Numbering",
            "type": "string"
          },
          "gtin": {
            "description": "Global Trade Item Number",
            "type": "string"
          },
          "mpn": {
            "description": "Manufacturer Part Number",
            "type": "string"
          },
          "link": {
            "description": "Link for the product",
            "type": "string"
          },
          "image_link": {
            "description": "Link for the product image",
            "type": "string"
          },
          "price": {
            "description": "Price of the product",
            "type": "number",
            "format": "double",
            "default": 0,
            "example": 10
          },
          "sale_price": {
            "description": "Sale price of the product",
            "type": "number",
            "format": "double",
            "default": 0,
            "example": 10
          },
          "brand": {
            "description": "Brand of the product",
            "type": "string"
          },
          "quantity": {
            "description": "Quantity of the product",
            "type": "number",
            "format": "double",
            "default": 0
          },
          "categories": {
            "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb syntax",
            "type": "array",
            "items": {
              "type": "string",
              "example": "Clothing>Women>Blue Jeans"
            }
          },
          "related_products": {
            "description": "Related products, array of 'product_identifier'",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "custom_attributes": {
            "description": "Custom attributes",
            "type": "array",
            "items": {
              "title": "Product Custom Attributes",
              "description": "Product Custom Attributes",
              "properties": {
                "alias": {
                  "description": "Custom attribute key (lower case without spaces)",
                  "type": "string",
                  "example": "sale_price_5"
                },
                "value": {
                  "description": "Custom attribute value",
                  "type": "string",
                  "example": "15.45"
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "Product": {
        "title": "Product",
        "description": "Product schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "categories": {
                "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                                syntax",
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "Clothing>Women>Blue Jeans"
                }
              },
              "related_products": {
                "description": "Related products, array of 'product_identifier'",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "custom_attributes": {
                "description": "Custom attributes",
                "type": "array",
                "items": {
                  "title": "Product Custom Attributes",
                  "description": "Product Custom Attributes",
                  "properties": {
                    "alias": {
                      "description": "Custom attribute key (lower case without spaces)",
                      "type": "string",
                      "example": "sale_price_5"
                    },
                    "value": {
                      "description": "Custom attribute value",
                      "type": "string",
                      "example": "15.45"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          },
          {
            "title": "BasicProduct",
            "description": "Basic Product schema",
            "properties": {
              "product_identifier": {
                "description": "The ID of the product in your store",
                "type": "string",
                "pattern": "[a-zA-Z0-9\\_\\-.]"
              },
              "catalog_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "readOnly": true,
                "example": 1
              },
              "name": {
                "description": "Name of the product",
                "type": "string",
                "example": "Product name"
              },
              "description": {
                "description": "Description of the product",
                "type": "string",
                "example": "Product description"
              },
              "sku": {
                "description": "Stock Keeping Unit",
                "type": "string"
              },
              "upc": {
                "description": "Universal Product Code",
                "type": "string"
              },
              "ean": {
                "description": "European Article Numbering",
                "type": "string"
              },
              "gtin": {
                "description": "Global Trade Item Number",
                "type": "string"
              },
              "mpn": {
                "description": "Manufacturer Part Number",
                "type": "string"
              },
              "link": {
                "description": "Link for the product",
                "type": "string"
              },
              "image_link": {
                "description": "Link for the product image",
                "type": "string"
              },
              "price": {
                "description": "Price of the product",
                "type": "number",
                "format": "double",
                "default": 0,
                "example": 10
              },
              "sale_price": {
                "description": "Sale price of the product",
                "type": "number",
                "format": "double",
                "default": 0,
                "example": 10
              },
              "brand": {
                "description": "Brand of the product",
                "type": "string"
              },
              "in_stock": {
                "description": "Stock of the product",
                "type": "boolean"
              }
            },
            "type": "object"
          }
        ]
      },
      "ProductPostRequest": {
        "title": "ProductPostRequest",
        "description": "Product post request schema",
        "required": [
          "product_identifier",
          "name"
        ],
        "type": "object",
        "allOf": [
          {
            "title": "Product",
            "description": "Product schema",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "categories": {
                    "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                                syntax",
                    "type": "array",
                    "items": {
                      "type": "string",
                      "example": "Clothing>Women>Blue Jeans"
                    }
                  },
                  "related_products": {
                    "description": "Related products, array of 'product_identifier'",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "custom_attributes": {
                    "description": "Custom attributes",
                    "type": "array",
                    "items": {
                      "title": "Product Custom Attributes",
                      "description": "Product Custom Attributes",
                      "properties": {
                        "alias": {
                          "description": "Custom attribute key (lower case without spaces)",
                          "type": "string",
                          "example": "sale_price_5"
                        },
                        "value": {
                          "description": "Custom attribute value",
                          "type": "string",
                          "example": "15.45"
                        }
                      },
                      "type": "object"
                    }
                  }
                },
                "type": "object"
              },
              {
                "title": "BasicProduct",
                "description": "Basic Product schema",
                "properties": {
                  "product_identifier": {
                    "description": "The ID of the product in your store",
                    "type": "string",
                    "pattern": "[a-zA-Z0-9\\_\\-.]"
                  },
                  "catalog_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "readOnly": true,
                    "example": 1
                  },
                  "name": {
                    "description": "Name of the product",
                    "type": "string",
                    "example": "Product name"
                  },
                  "description": {
                    "description": "Description of the product",
                    "type": "string",
                    "example": "Product description"
                  },
                  "sku": {
                    "description": "Stock Keeping Unit",
                    "type": "string"
                  },
                  "upc": {
                    "description": "Universal Product Code",
                    "type": "string"
                  },
                  "ean": {
                    "description": "European Article Numbering",
                    "type": "string"
                  },
                  "gtin": {
                    "description": "Global Trade Item Number",
                    "type": "string"
                  },
                  "mpn": {
                    "description": "Manufacturer Part Number",
                    "type": "string"
                  },
                  "link": {
                    "description": "Link for the product",
                    "type": "string"
                  },
                  "image_link": {
                    "description": "Link for the product image",
                    "type": "string"
                  },
                  "price": {
                    "description": "Price of the product",
                    "type": "number",
                    "format": "double",
                    "default": 0,
                    "example": 10
                  },
                  "sale_price": {
                    "description": "Sale price of the product",
                    "type": "number",
                    "format": "double",
                    "default": 0,
                    "example": 10
                  },
                  "brand": {
                    "description": "Brand of the product",
                    "type": "string"
                  },
                  "in_stock": {
                    "description": "Stock of the product",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "ProductPatchRequest": {
        "title": "ProductPatchRequest",
        "description": "Product patch request schema",
        "properties": {
          "name": {
            "description": "Name of the product",
            "type": "string",
            "example": "Product name"
          },
          "description": {
            "description": "Description of the product",
            "type": "string",
            "example": "Product description"
          },
          "sku": {
            "description": "Stock Keeping Unit",
            "type": "string"
          },
          "upc": {
            "description": "Universal Product Code",
            "type": "string"
          },
          "ean": {
            "description": "European Article Numbering",
            "type": "string"
          },
          "gtin": {
            "description": "Global Trade Item Number",
            "type": "string"
          },
          "mpn": {
            "description": "Manufacturer Part Number",
            "type": "string"
          },
          "link": {
            "description": "Link for the product",
            "type": "string"
          },
          "image_link": {
            "description": "Link for the product image",
            "type": "string"
          },
          "price": {
            "description": "Price of the product",
            "type": "number",
            "format": "double",
            "default": 0,
            "example": 10
          },
          "sale_price": {
            "description": "Sale price of the product",
            "type": "number",
            "format": "double",
            "default": 0,
            "example": 10
          },
          "brand": {
            "description": "Brand of the product",
            "type": "string"
          },
          "categories": {
            "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                        syntax",
            "type": "array",
            "items": {
              "type": "string",
              "example": "Clothing>Women>Blue Jeans"
            }
          },
          "related_products": {
            "description": "Related products, array of 'product_identifier'",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "custom_attributes": {
            "description": "Custom attributes",
            "type": "array",
            "items": {
              "title": "Product Custom Attributes",
              "description": "Product Custom Attributes",
              "properties": {
                "alias": {
                  "description": "Custom attribute key (lower case without spaces)",
                  "type": "string",
                  "example": "sale_price_5"
                },
                "value": {
                  "description": "Custom attribute value",
                  "type": "string",
                  "example": "15.45"
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "ProductBulkRequest": {
        "title": "ProductBulkRequest",
        "description": "Product bulk request schema",
        "required": [
          "products"
        ],
        "properties": {
          "products": {
            "description": "Collection of products to import. Products having an incorrect format will be ignored",
            "type": "array",
            "items": {
              "title": "Product",
              "description": "Product schema",
              "type": "object",
              "allOf": [
                {
                  "properties": {
                    "categories": {
                      "description": "Array of product categories, using the character '>' as delimiter for the breadcrumb\n                                syntax",
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "Clothing>Women>Blue Jeans"
                      }
                    },
                    "related_products": {
                      "description": "Related products, array of 'product_identifier'",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "custom_attributes": {
                      "description": "Custom attributes",
                      "type": "array",
                      "items": {
                        "title": "Product Custom Attributes",
                        "description": "Product Custom Attributes",
                        "properties": {
                          "alias": {
                            "description": "Custom attribute key (lower case without spaces)",
                            "type": "string",
                            "example": "sale_price_5"
                          },
                          "value": {
                            "description": "Custom attribute value",
                            "type": "string",
                            "example": "15.45"
                          }
                        },
                        "type": "object"
                      }
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "BasicProduct",
                  "description": "Basic Product schema",
                  "properties": {
                    "product_identifier": {
                      "description": "The ID of the product in your store",
                      "type": "string",
                      "pattern": "[a-zA-Z0-9\\_\\-.]"
                    },
                    "catalog_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "name": {
                      "description": "Name of the product",
                      "type": "string",
                      "example": "Product name"
                    },
                    "description": {
                      "description": "Description of the product",
                      "type": "string",
                      "example": "Product description"
                    },
                    "sku": {
                      "description": "Stock Keeping Unit",
                      "type": "string"
                    },
                    "upc": {
                      "description": "Universal Product Code",
                      "type": "string"
                    },
                    "ean": {
                      "description": "European Article Numbering",
                      "type": "string"
                    },
                    "gtin": {
                      "description": "Global Trade Item Number",
                      "type": "string"
                    },
                    "mpn": {
                      "description": "Manufacturer Part Number",
                      "type": "string"
                    },
                    "link": {
                      "description": "Link for the product",
                      "type": "string"
                    },
                    "image_link": {
                      "description": "Link for the product image",
                      "type": "string"
                    },
                    "price": {
                      "description": "Price of the product",
                      "type": "number",
                      "format": "double",
                      "default": 0,
                      "example": 10
                    },
                    "sale_price": {
                      "description": "Sale price of the product",
                      "type": "number",
                      "format": "double",
                      "default": 0,
                      "example": 10
                    },
                    "brand": {
                      "description": "Brand of the product",
                      "type": "string"
                    },
                    "in_stock": {
                      "description": "Stock of the product",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              ]
            }
          },
          "mode": {
            "description": "How the import will be processed:\n *                      'rewrite' - catalog content will be erased and then the imported products will be added\n *                      'add' - adds imported products to the catalog without replacing any content. Duplicates will\n                        not be added\n *                      'update' - adds imported products to the catalog and updates any duplicates found",
            "type": "string",
            "default": "update",
            "enum": [
              "rewrite",
              "add",
              "update"
            ]
          }
        },
        "type": "object"
      },
      "ProductCustomAttributes": {
        "title": "Product Custom Attributes",
        "description": "Product Custom Attributes",
        "properties": {
          "alias": {
            "description": "Custom attribute key (lower case without spaces)",
            "type": "string",
            "example": "sale_price_5"
          },
          "value": {
            "description": "Custom attribute value",
            "type": "string",
            "example": "15.45"
          }
        },
        "type": "object"
      },
      "PostProductsConflict": {
        "title": "PostProductsConflict",
        "description": "Error schema for post products conflicts",
        "type": "object",
        "allOf": [
          {
            "title": "product_already_exists",
            "description": "Error schema for conflict when the provided product already exists in the catalog",
            "properties": {
              "errors": {
                "properties": {
                  "product_already_exists": {
                    "description": "Occurs when the provided product already exists in the catalog",
                    "type": "string",
                    "enum": [
                      "The provided product already exists in the catalog"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "BaseConflict",
            "properties": {
              "type": {
                "description": "RFC for status code definitions",
                "type": "string",
                "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
              },
              "title": {
                "description": "Error title",
                "type": "string",
                "enum": [
                  "Conflict"
                ]
              },
              "status": {
                "description": "Status code",
                "type": "integer",
                "example": 409
              },
              "detail": {
                "description": "Error detail",
                "type": "string",
                "example": "The request could not be completed due to a conflict with the current state of the target resource"
              }
            },
            "type": "object"
          }
        ]
      },
      "product_already_exists": {
        "title": "product_already_exists",
        "description": "Error schema for conflict when the provided product already exists in the catalog",
        "properties": {
          "errors": {
            "properties": {
              "product_already_exists": {
                "description": "Occurs when the provided product already exists in the catalog",
                "type": "string",
                "enum": [
                  "The provided product already exists in the catalog"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "Field": {
        "title": "Field",
        "description": "Field schema",
        "required": [
          "name",
          "format"
        ],
        "properties": {
          "field_id": {
            "description": "Field ID",
            "type": "string",
            "readOnly": true
          },
          "name": {
            "description": "Name of the field",
            "type": "string"
          },
          "format": {
            "description": "Field format",
            "type": "string",
            "enum": [
              "date",
              "text",
              "cellphone",
              "phone",
              "number",
              "email",
              "options"
            ]
          },
          "unique": {
            "description": "True if the field is unique, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object",
        "readOnly": true
      },
      "ComplexField": {
        "title": "ComplexField",
        "description": "Complex field schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "description": "Field type",
                "type": "string",
                "enum": [
                  "base",
                  "extra"
                ],
                "readOnly": true
              },
              "options": {
                "description": "Lists of options (only for fields of type 'options')",
                "type": "array",
                "items": {
                  "title": "FieldOption",
                  "description": "Field option schema",
                  "properties": {
                    "option_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "readOnly": true,
                      "example": 1
                    },
                    "en": {
                      "description": "English option value",
                      "type": "string",
                      "example": "English example"
                    },
                    "pt": {
                      "description": "Portuguese option value",
                      "type": "string",
                      "example": "Portuguese example"
                    },
                    "br": {
                      "description": "Brazilian portuguese option value",
                      "type": "string",
                      "example": "Brazilian portuguese example"
                    },
                    "es": {
                      "description": "Spanish option value",
                      "type": "string",
                      "example": "Spanish example"
                    },
                    "de": {
                      "description": "German option value",
                      "type": "string",
                      "example": "German example"
                    },
                    "hu": {
                      "description": "Hungarian option value",
                      "type": "string",
                      "example": "Hungarian example"
                    },
                    "fr": {
                      "description": "French option value",
                      "type": "string",
                      "example": "French example"
                    }
                  },
                  "type": "object"
                },
                "readOnly": true
              }
            },
            "type": "object"
          },
          {
            "title": "Field",
            "description": "Field schema",
            "required": [
              "name",
              "format"
            ],
            "properties": {
              "field_id": {
                "description": "Field ID",
                "type": "string",
                "readOnly": true
              },
              "name": {
                "description": "Name of the field",
                "type": "string"
              },
              "format": {
                "description": "Field format",
                "type": "string",
                "enum": [
                  "date",
                  "text",
                  "cellphone",
                  "phone",
                  "number",
                  "email",
                  "options"
                ]
              },
              "unique": {
                "description": "True if the field is unique, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object",
            "readOnly": true
          }
        ]
      },
      "PatchRequestField": {
        "title": "PatchRequestField",
        "description": "Patch request field schema",
        "properties": {
          "name": {
            "description": "Name of the field",
            "type": "string",
            "example": "Field name"
          },
          "unique": {
            "description": "True if the field is unique, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object",
        "readOnly": true
      },
      "PatchRequestBaseField": {
        "title": "PatchRequestBaseField",
        "description": "Patch request base field schema",
        "properties": {
          "unique": {
            "description": "True if the field is unique, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object",
        "readOnly": true
      },
      "DeleteFieldsConflict": {
        "title": "DeleteFieldsConflict",
        "description": "Error schema for delete fields conflicts",
        "type": "object",
        "allOf": [
          {
            "title": "field_in_use",
            "description": "Error schema for conflict when a field is in use",
            "properties": {
              "errors": {
                "properties": {
                  "field_in_use": {
                    "description": "Occurs when a field is in use",
                    "type": "string",
                    "enum": [
                      "The provided extra field is being used in segments or forms"
                    ]
                  },
                  "field_in_use_data": {
                    "description": "Extra information of the conflict",
                    "properties": {
                      "segments": {
                        "description": "Array of segments where the field is in use",
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      },
                      "forms": {
                        "description": "Array of forms where the field is in use",
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "BaseConflict",
            "properties": {
              "type": {
                "description": "RFC for status code definitions",
                "type": "string",
                "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
              },
              "title": {
                "description": "Error title",
                "type": "string",
                "enum": [
                  "Conflict"
                ]
              },
              "status": {
                "description": "Status code",
                "type": "integer",
                "example": 409
              },
              "detail": {
                "description": "Error detail",
                "type": "string",
                "example": "The request could not be completed due to a conflict with the current state of the target resource"
              }
            },
            "type": "object"
          }
        ]
      },
      "field_in_use": {
        "title": "field_in_use",
        "description": "Error schema for conflict when a field is in use",
        "properties": {
          "errors": {
            "properties": {
              "field_in_use": {
                "description": "Occurs when a field is in use",
                "type": "string",
                "enum": [
                  "The provided extra field is being used in segments or forms"
                ]
              },
              "field_in_use_data": {
                "description": "Extra information of the conflict",
                "properties": {
                  "segments": {
                    "description": "Array of segments where the field is in use",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "forms": {
                    "description": "Array of forms where the field is in use",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "FieldOption": {
        "title": "FieldOption",
        "description": "Field option schema",
        "properties": {
          "option_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "en": {
            "description": "English option value",
            "type": "string",
            "example": "English example"
          },
          "pt": {
            "description": "Portuguese option value",
            "type": "string",
            "example": "Portuguese example"
          },
          "br": {
            "description": "Brazilian portuguese option value",
            "type": "string",
            "example": "Brazilian portuguese example"
          },
          "es": {
            "description": "Spanish option value",
            "type": "string",
            "example": "Spanish example"
          },
          "de": {
            "description": "German option value",
            "type": "string",
            "example": "German example"
          },
          "hu": {
            "description": "Hungarian option value",
            "type": "string",
            "example": "Hungarian example"
          },
          "fr": {
            "description": "French option value",
            "type": "string",
            "example": "French example"
          }
        },
        "type": "object"
      },
      "FieldOptionPost": {
        "title": "FieldOption",
        "description": "Field option schema",
        "properties": {
          "en": {
            "description": "English option value",
            "type": "string",
            "example": "English example"
          },
          "pt": {
            "description": "Portuguese option value",
            "type": "string",
            "example": "Portuguese example"
          },
          "br": {
            "description": "Brazilian portuguese option value",
            "type": "string",
            "example": "Brazilian portuguese example"
          },
          "es": {
            "description": "Spanish option value",
            "type": "string",
            "example": "Spanish example"
          },
          "de": {
            "description": "German option value",
            "type": "string",
            "example": "German example"
          },
          "hu": {
            "description": "Hungarian option value",
            "type": "string",
            "example": "Hungarian example"
          },
          "fr": {
            "description": "French option value",
            "type": "string",
            "example": "French example"
          }
        },
        "type": "object"
      },
      "Form": {
        "title": "Form",
        "description": "Form schema",
        "required": [
          "title"
        ],
        "properties": {
          "form_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "internal_title": {
            "description": "Internal title of the form",
            "type": "string",
            "default": "$request.body#/title",
            "example": "Form title"
          },
          "title": {
            "description": "Title of the form",
            "type": "string",
            "example": "Form title"
          },
          "language": {
            "title": "language",
            "description": "Current language",
            "type": "string",
            "default": "en",
            "enum": [
              "en",
              "pt",
              "br",
              "es",
              "de",
              "hu",
              "fr"
            ]
          },
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "default": {
            "description": "True if this is the default form in the list, false otherwise",
            "type": "boolean",
            "example": false
          },
          "owner": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "status": {
            "description": "Status of the form",
            "type": "string",
            "enum": [
              "active",
              "unpublished",
              "cloned",
              "deleted"
            ],
            "readOnly": true,
            "example": "active"
          },
          "created": {
            "title": "date_time",
            "description": "The date and time",
            "type": "string",
            "format": "date-time",
            "example": "YYYY-MM-DD hh:mm:ss"
          },
          "updated": {
            "title": "date_time",
            "description": "The date and time",
            "type": "string",
            "format": "date-time",
            "example": "YYYY-MM-DD hh:mm:ss"
          }
        },
        "type": "object"
      },
      "List": {
        "title": "List",
        "description": "List schema",
        "required": [
          "public_name",
          "language"
        ],
        "properties": {
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "internal_name": {
            "description": "Internal name of the list",
            "type": "string",
            "example": "Internal name"
          },
          "public_name": {
            "description": "Public name of the list",
            "type": "string",
            "example": "Public name"
          },
          "status": {
            "description": "Status of the list",
            "type": "string",
            "enum": [
              "active",
              "blocked"
            ],
            "readOnly": true,
            "example": "active"
          },
          "group_id": {
            "description": "ID of the list group",
            "type": "integer",
            "readOnly": true
          },
          "created": {
            "readOnly": true,
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          },
          "updated": {
            "readOnly": true,
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          }
        },
        "type": "object"
      },
      "ComplexList": {
        "title": "ComplexList",
        "description": "Complex list schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "default_language": {
                "title": "language",
                "description": "Current language",
                "type": "string",
                "default": "en",
                "enum": [
                  "en",
                  "pt",
                  "br",
                  "es",
                  "de",
                  "hu",
                  "fr"
                ]
              },
              "available_languages": {
                "description": "Array of available languages",
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "en"
                }
              },
              "stats": {
                "description": "Contact stats of the list",
                "properties": {
                  "total_contacts": {
                    "description": "Number of total contacts in the list",
                    "type": "integer",
                    "example": 1000
                  },
                  "total_active": {
                    "description": "Number of total active contacts in the list",
                    "type": "integer",
                    "example": 900
                  },
                  "total_inactive": {
                    "description": "Number of total inactive contacts in the list",
                    "type": "integer",
                    "example": 30
                  },
                  "total_removed": {
                    "description": "Number of total removed contacts in the list",
                    "type": "integer",
                    "example": 50
                  },
                  "total_unconfirmed": {
                    "description": "Number of total unconfirmed contacts in the list",
                    "type": "integer",
                    "example": 15
                  },
                  "total_waiting_new_confirmation": {
                    "description": "Number of total contacts waiting for new confirmation in the list",
                    "type": "integer",
                    "example": 5
                  }
                },
                "type": "object",
                "readOnly": true
              }
            },
            "type": "object"
          },
          {
            "title": "List",
            "description": "List schema",
            "required": [
              "public_name",
              "language"
            ],
            "properties": {
              "list_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "readOnly": true,
                "example": 1
              },
              "internal_name": {
                "description": "Internal name of the list",
                "type": "string",
                "example": "Internal name"
              },
              "public_name": {
                "description": "Public name of the list",
                "type": "string",
                "example": "Public name"
              },
              "status": {
                "description": "Status of the list",
                "type": "string",
                "enum": [
                  "active",
                  "blocked"
                ],
                "readOnly": true,
                "example": "active"
              },
              "group_id": {
                "description": "ID of the list group",
                "type": "integer",
                "readOnly": true
              },
              "created": {
                "readOnly": true,
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "updated": {
                "readOnly": true,
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "PostRequestList": {
        "title": "PostRequestList",
        "description": "Post request lists schema",
        "required": [
          "internal_name"
        ],
        "properties": {
          "internal_name": {
            "description": "Internal name of the list",
            "type": "string",
            "example": "Internal name"
          },
          "public_name": {
            "description": "Public name of the list. Defaults to internal name if not set",
            "type": "string",
            "example": "Public name"
          }
        },
        "type": "object"
      },
      "PatchRequestList": {
        "title": "PatchRequestList",
        "description": "Patch request lists schema",
        "properties": {
          "internal_name": {
            "description": "Internal name of the list",
            "type": "string",
            "example": "Internal name"
          },
          "public_name": {
            "description": "Public name of the list",
            "type": "string",
            "example": "Public name"
          },
          "group_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          }
        },
        "type": "object"
      },
      "PostListsConflict": {
        "title": "PostListsConflict",
        "description": "Error schema for post lists conflicts",
        "type": "object",
        "allOf": [
          {
            "title": "list_limit_reached",
            "description": "Error schema for conflict when the account reaches the maximum number of lists allowed in its plan",
            "properties": {
              "errors": {
                "properties": {
                  "list_limit_reached": {
                    "description": "Occurs when an account reaches the maximum number of lists allowed in its plan",
                    "type": "string",
                    "enum": [
                      "The maximum number of allowed lists was reached"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "BaseConflict",
            "properties": {
              "type": {
                "description": "RFC for status code definitions",
                "type": "string",
                "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
              },
              "title": {
                "description": "Error title",
                "type": "string",
                "enum": [
                  "Conflict"
                ]
              },
              "status": {
                "description": "Status code",
                "type": "integer",
                "example": 409
              },
              "detail": {
                "description": "Error detail",
                "type": "string",
                "example": "The request could not be completed due to a conflict with the current state of the target resource"
              }
            },
            "type": "object"
          }
        ]
      },
      "DeleteListsConflict": {
        "title": "DeleteListsConflict",
        "description": "Error schema for delete lists conflicts",
        "type": "object",
        "allOf": [
          {
            "title": "BaseConflict",
            "properties": {
              "type": {
                "description": "RFC for status code definitions",
                "type": "string",
                "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
              },
              "title": {
                "description": "Error title",
                "type": "string",
                "enum": [
                  "Conflict"
                ]
              },
              "status": {
                "description": "Status code",
                "type": "integer",
                "example": 409
              },
              "detail": {
                "description": "Error detail",
                "type": "string",
                "example": "The request could not be completed due to a conflict with the current state of the target resource"
              }
            },
            "type": "object"
          }
        ],
        "oneOf": [
          {
            "title": "has_queued_operations",
            "description": "Error schema for conflict when a list has queued operations",
            "properties": {
              "errors": {
                "properties": {
                  "has_queued_operations": {
                    "description": "Occurs when a list has operations in queue",
                    "type": "string",
                    "enum": [
                      "The list has operations in queue"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "has_automations",
            "description": "Error schema for conflict when a list has automations",
            "properties": {
              "errors": {
                "properties": {
                  "has_automations": {
                    "description": "Occurs when a list has automations",
                    "type": "string",
                    "enum": [
                      "The list has automations"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "has_push_app",
            "description": "Error schema for conflict when a list has push apps",
            "properties": {
              "errors": {
                "properties": {
                  "has_push_app": {
                    "description": "Occurs when a list has push apps",
                    "type": "string",
                    "enum": [
                      "The list has push apps"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "has_web_push_site",
            "description": "Error schema for conflict when a list has webpush sites",
            "properties": {
              "errors": {
                "properties": {
                  "has_web_push_site": {
                    "description": "Occurs when a list has webpush sites",
                    "type": "string",
                    "enum": [
                      "The list has webpush sites"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "has_campaigns_last_thirty_days",
            "description": "Error schema for conflict when a list has campaigns sent in the last thirty days",
            "properties": {
              "errors": {
                "properties": {
                  "has_campaigns_last_thirty_days": {
                    "description": "Occurs when a list has campaigns sent in the last thirty days",
                    "type": "string",
                    "enum": [
                      "The list has sent campaigns in the last thirty days"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        ]
      },
      "DeleteListsConflictsErrors": {
        "title": "DeleteListsConflictsErrors",
        "type": "object",
        "oneOf": [
          {
            "title": "has_queued_operations",
            "description": "Error schema for conflict when a list has queued operations",
            "properties": {
              "errors": {
                "properties": {
                  "has_queued_operations": {
                    "description": "Occurs when a list has operations in queue",
                    "type": "string",
                    "enum": [
                      "The list has operations in queue"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "has_automations",
            "description": "Error schema for conflict when a list has automations",
            "properties": {
              "errors": {
                "properties": {
                  "has_automations": {
                    "description": "Occurs when a list has automations",
                    "type": "string",
                    "enum": [
                      "The list has automations"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "has_push_app",
            "description": "Error schema for conflict when a list has push apps",
            "properties": {
              "errors": {
                "properties": {
                  "has_push_app": {
                    "description": "Occurs when a list has push apps",
                    "type": "string",
                    "enum": [
                      "The list has push apps"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "has_web_push_site",
            "description": "Error schema for conflict when a list has webpush sites",
            "properties": {
              "errors": {
                "properties": {
                  "has_web_push_site": {
                    "description": "Occurs when a list has webpush sites",
                    "type": "string",
                    "enum": [
                      "The list has webpush sites"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "has_campaigns_last_thirty_days",
            "description": "Error schema for conflict when a list has campaigns sent in the last thirty days",
            "properties": {
              "errors": {
                "properties": {
                  "has_campaigns_last_thirty_days": {
                    "description": "Occurs when a list has campaigns sent in the last thirty days",
                    "type": "string",
                    "enum": [
                      "The list has sent campaigns in the last thirty days"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        ]
      },
      "list_limit_reached": {
        "title": "list_limit_reached",
        "description": "Error schema for conflict when the account reaches the maximum number of lists allowed in its plan",
        "properties": {
          "errors": {
            "properties": {
              "list_limit_reached": {
                "description": "Occurs when an account reaches the maximum number of lists allowed in its plan",
                "type": "string",
                "enum": [
                  "The maximum number of allowed lists was reached"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "has_queued_operations": {
        "title": "has_queued_operations",
        "description": "Error schema for conflict when a list has queued operations",
        "properties": {
          "errors": {
            "properties": {
              "has_queued_operations": {
                "description": "Occurs when a list has operations in queue",
                "type": "string",
                "enum": [
                  "The list has operations in queue"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "has_automations": {
        "title": "has_automations",
        "description": "Error schema for conflict when a list has automations",
        "properties": {
          "errors": {
            "properties": {
              "has_automations": {
                "description": "Occurs when a list has automations",
                "type": "string",
                "enum": [
                  "The list has automations"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "has_push_app": {
        "title": "has_push_app",
        "description": "Error schema for conflict when a list has push apps",
        "properties": {
          "errors": {
            "properties": {
              "has_push_app": {
                "description": "Occurs when a list has push apps",
                "type": "string",
                "enum": [
                  "The list has push apps"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "has_web_push_site": {
        "title": "has_web_push_site",
        "description": "Error schema for conflict when a list has webpush sites",
        "properties": {
          "errors": {
            "properties": {
              "has_web_push_site": {
                "description": "Occurs when a list has webpush sites",
                "type": "string",
                "enum": [
                  "The list has webpush sites"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "has_campaigns_last_thirty_days": {
        "title": "has_campaigns_last_thirty_days",
        "description": "Error schema for conflict when a list has campaigns sent in the last thirty days",
        "properties": {
          "errors": {
            "properties": {
              "has_campaigns_last_thirty_days": {
                "description": "Occurs when a list has campaigns sent in the last thirty days",
                "type": "string",
                "enum": [
                  "The list has sent campaigns in the last thirty days"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "EnableTeConflict": {
        "title": "EnableTeConflict",
        "description": "Error schema for lists conflicts",
        "type": "object",
        "allOf": [
          {
            "title": "EnableTeConflictsErrors",
            "allOf": [
              {
                "title": "domain_already_defined",
                "description": "Error schema for conflict when a domain was already active",
                "properties": {
                  "errors": {
                    "properties": {
                      "domain_already_defined": {
                        "description": "Occurs when a domain was already active",
                        "type": "string",
                        "enum": [
                          "Domain already activated"
                        ]
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              {
                "title": "domain_list_required",
                "description": "Error schema for conflict when a domain needs a list",
                "properties": {
                  "errors": {
                    "properties": {
                      "domain_list_required": {
                        "description": "Occurs when a domain requires a list",
                        "type": "string",
                        "enum": [
                          "List is mandatory for your version"
                        ]
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "BaseConflict",
            "properties": {
              "type": {
                "description": "RFC for status code definitions",
                "type": "string",
                "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
              },
              "title": {
                "description": "Error title",
                "type": "string",
                "enum": [
                  "Conflict"
                ]
              },
              "status": {
                "description": "Status code",
                "type": "integer",
                "example": 409
              },
              "detail": {
                "description": "Error detail",
                "type": "string",
                "example": "The request could not be completed due to a conflict with the current state of the target resource"
              }
            },
            "type": "object"
          }
        ]
      },
      "EnableTeConflictsErrors": {
        "title": "EnableTeConflictsErrors",
        "allOf": [
          {
            "title": "domain_already_defined",
            "description": "Error schema for conflict when a domain was already active",
            "properties": {
              "errors": {
                "properties": {
                  "domain_already_defined": {
                    "description": "Occurs when a domain was already active",
                    "type": "string",
                    "enum": [
                      "Domain already activated"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "domain_list_required",
            "description": "Error schema for conflict when a domain needs a list",
            "properties": {
              "errors": {
                "properties": {
                  "domain_list_required": {
                    "description": "Occurs when a domain requires a list",
                    "type": "string",
                    "enum": [
                      "List is mandatory for your version"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        ]
      },
      "domain_already_defined": {
        "title": "domain_already_defined",
        "description": "Error schema for conflict when a domain was already active",
        "properties": {
          "errors": {
            "properties": {
              "domain_already_defined": {
                "description": "Occurs when a domain was already active",
                "type": "string",
                "enum": [
                  "Domain already activated"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "domain_list_required": {
        "title": "domain_list_required",
        "description": "Error schema for conflict when a domain needs a list",
        "properties": {
          "errors": {
            "properties": {
              "domain_list_required": {
                "description": "Occurs when a domain requires a list",
                "type": "string",
                "enum": [
                  "List is mandatory for your version"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "EnableTransactionalConflict": {
        "title": "EnableTransactionalConflict",
        "description": "Error schema for lists of transactional conflicts",
        "type": "object",
        "allOf": [
          {
            "title": "EnableTransactionalConflictsErrors",
            "oneOf": [
              {
                "title": "client_already_enabled",
                "description": "Error schema for conflict when a client is already enabled",
                "properties": {
                  "errors": {
                    "properties": {
                      "client_already_enabled": {
                        "description": "Occurs when a client is already enabled",
                        "type": "string",
                        "enum": [
                          "Client already enabled"
                        ]
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              {
                "title": "client_is_being_enabled",
                "description": "Error schema for conflict when a when a client is in the process of being enabled",
                "properties": {
                  "errors": {
                    "properties": {
                      "client_is_being_enabled": {
                        "description": "Occurs when a client is in the process of  being enabled",
                        "type": "string",
                        "enum": [
                          "Client is being enabled"
                        ]
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "BaseConflict",
            "properties": {
              "type": {
                "description": "RFC for status code definitions",
                "type": "string",
                "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
              },
              "title": {
                "description": "Error title",
                "type": "string",
                "enum": [
                  "Conflict"
                ]
              },
              "status": {
                "description": "Status code",
                "type": "integer",
                "example": 409
              },
              "detail": {
                "description": "Error detail",
                "type": "string",
                "example": "The request could not be completed due to a conflict with the current state of the target resource"
              }
            },
            "type": "object"
          }
        ]
      },
      "EnableTransactionalConflictsErrors": {
        "title": "EnableTransactionalConflictsErrors",
        "oneOf": [
          {
            "title": "client_already_enabled",
            "description": "Error schema for conflict when a client is already enabled",
            "properties": {
              "errors": {
                "properties": {
                  "client_already_enabled": {
                    "description": "Occurs when a client is already enabled",
                    "type": "string",
                    "enum": [
                      "Client already enabled"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "client_is_being_enabled",
            "description": "Error schema for conflict when a when a client is in the process of being enabled",
            "properties": {
              "errors": {
                "properties": {
                  "client_is_being_enabled": {
                    "description": "Occurs when a client is in the process of  being enabled",
                    "type": "string",
                    "enum": [
                      "Client is being enabled"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        ]
      },
      "client_already_enabled": {
        "title": "client_already_enabled",
        "description": "Error schema for conflict when a client is already enabled",
        "properties": {
          "errors": {
            "properties": {
              "client_already_enabled": {
                "description": "Occurs when a client is already enabled",
                "type": "string",
                "enum": [
                  "Client already enabled"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "client_is_being_enabled": {
        "title": "client_is_being_enabled",
        "description": "Error schema for conflict when a when a client is in the process of being enabled",
        "properties": {
          "errors": {
            "properties": {
              "client_is_being_enabled": {
                "description": "Occurs when a client is in the process of  being enabled",
                "type": "string",
                "enum": [
                  "Client is being enabled"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "GeneralInfo": {
        "title": "General Info",
        "description": "General info schema",
        "type": "object",
        "example": {
          "general_info": {
            "name": "Name Test",
            "website": "www.yoursite.com",
            "cellphone": "351-910000000",
            "client_id": "123456",
            "company_size": 2,
            "business_sector": {
              "business_sector_id": 123,
              "name": "Name of the business sector"
            }
          }
        },
        "allOf": [
          {
            "properties": {
              "general_info": {
                "description": "General Info",
                "properties": {
                  "name": {
                    "description": "Name",
                    "type": "string"
                  },
                  "website": {
                    "description": "Website",
                    "type": "string"
                  },
                  "cellphone": {
                    "description": "Cellphone",
                    "type": "string"
                  },
                  "client_id": {
                    "description": "Client id",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        ]
      },
      "BillingInfo": {
        "title": "Billing Info",
        "description": "Billing Info schema",
        "type": "object",
        "example": {
          "billing_info": {
            "type": "company",
            "company_legal_name": "your company legal name",
            "vat_number": 1234546,
            "country": {
              "country_code": "PT"
            },
            "city": "Porto",
            "state": "SP",
            "address1": "Porto",
            "address2": "Matosinhos",
            "zip_code": "1234-123",
            "invoice_comments": "your invoice comments"
          }
        },
        "allOf": [
          {
            "properties": {
              "billing_info": {
                "description": "Billing Info",
                "properties": {
                  "type": {
                    "description": "Type billing",
                    "type": "string",
                    "enum": [
                      "single_person",
                      "company"
                    ]
                  },
                  "company_legal_name": {
                    "description": "Company legal name",
                    "type": "string"
                  },
                  "vat_number": {
                    "description": "Vat number",
                    "type": "string"
                  },
                  "country": {
                    "description": "Country",
                    "properties": {
                      "country_code": {
                        "description": "Country Code",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "city": {
                    "description": "City",
                    "type": "string"
                  },
                  "state": {
                    "description": "State",
                    "type": "string"
                  },
                  "address1": {
                    "description": "Address 1",
                    "type": "string"
                  },
                  "address2": {
                    "description": "Address 2",
                    "type": "string"
                  },
                  "zip_code": {
                    "description": "Zip Code",
                    "type": "string"
                  },
                  "invoice_comments": {
                    "description": "Invoice Comments",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        ]
      },
      "PlanInfo": {
        "title": "Plan Info",
        "description": "Plan Info schema",
        "properties": {
          "plan_info": {
            "description": "Plan Info",
            "properties": {
              "type": {
                "description": "Return free if the plan in use is free and paid otherwise.",
                "type": "string",
                "enum": [
                  "enterprise",
                  "free",
                  "pro",
                  "starter",
                  "trial",
                  "base"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object",
        "example": {
          "plan_info": {
            "type": "starter"
          }
        }
      },
      "BalanceInfo": {
        "title": "Balance Info",
        "description": "Balance Info schema",
        "properties": {
          "balance_info": {
            "description": "Balance Info",
            "properties": {
              "balance": {
                "description": "Account's credits",
                "type": "string"
              },
              "currency": {
                "description": "Credit's currency",
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "type": "object",
        "example": {
          "balance_info": {
            "balance": "123.45",
            "currency": "EUR"
          }
        }
      },
      "ModuleInfo": {
        "title": "Module Info",
        "description": "Module Info schema",
        "properties": {
          "module_info": {
            "description": "Module Info",
            "properties": {
              "te": {
                "description": "Account's credits",
                "properties": {
                  "enabled": {
                    "description": "Track&Engage is Enabled",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        },
        "type": "object",
        "example": {
          "module_info": {
            "te": {
              "enabled": true
            }
          }
        }
      },
      "MyAccount": {
        "title": "My Account",
        "description": "My Account schema",
        "type": "object",
        "allOf": [
          {
            "title": "General Info",
            "description": "General info schema",
            "type": "object",
            "example": {
              "general_info": {
                "name": "Name Test",
                "website": "www.yoursite.com",
                "cellphone": "351-910000000",
                "client_id": "123456",
                "company_size": 2,
                "business_sector": {
                  "business_sector_id": 123,
                  "name": "Name of the business sector"
                }
              }
            },
            "allOf": [
              {
                "properties": {
                  "general_info": {
                    "description": "General Info",
                    "properties": {
                      "name": {
                        "description": "Name",
                        "type": "string"
                      },
                      "website": {
                        "description": "Website",
                        "type": "string"
                      },
                      "cellphone": {
                        "description": "Cellphone",
                        "type": "string"
                      },
                      "client_id": {
                        "description": "Client id",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Billing Info",
            "description": "Billing Info schema",
            "type": "object",
            "example": {
              "billing_info": {
                "type": "company",
                "company_legal_name": "your company legal name",
                "vat_number": 1234546,
                "country": {
                  "country_code": "PT"
                },
                "city": "Porto",
                "state": "SP",
                "address1": "Porto",
                "address2": "Matosinhos",
                "zip_code": "1234-123",
                "invoice_comments": "your invoice comments"
              }
            },
            "allOf": [
              {
                "properties": {
                  "billing_info": {
                    "description": "Billing Info",
                    "properties": {
                      "type": {
                        "description": "Type billing",
                        "type": "string",
                        "enum": [
                          "single_person",
                          "company"
                        ]
                      },
                      "company_legal_name": {
                        "description": "Company legal name",
                        "type": "string"
                      },
                      "vat_number": {
                        "description": "Vat number",
                        "type": "string"
                      },
                      "country": {
                        "description": "Country",
                        "properties": {
                          "country_code": {
                            "description": "Country Code",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "city": {
                        "description": "City",
                        "type": "string"
                      },
                      "state": {
                        "description": "State",
                        "type": "string"
                      },
                      "address1": {
                        "description": "Address 1",
                        "type": "string"
                      },
                      "address2": {
                        "description": "Address 2",
                        "type": "string"
                      },
                      "zip_code": {
                        "description": "Zip Code",
                        "type": "string"
                      },
                      "invoice_comments": {
                        "description": "Invoice Comments",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Plan Info",
            "description": "Plan Info schema",
            "properties": {
              "plan_info": {
                "description": "Plan Info",
                "properties": {
                  "type": {
                    "description": "Return free if the plan in use is free and paid otherwise.",
                    "type": "string",
                    "enum": [
                      "enterprise",
                      "free",
                      "pro",
                      "starter",
                      "trial",
                      "base"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object",
            "example": {
              "plan_info": {
                "type": "starter"
              }
            }
          },
          {
            "title": "Balance Info",
            "description": "Balance Info schema",
            "properties": {
              "balance_info": {
                "description": "Balance Info",
                "properties": {
                  "balance": {
                    "description": "Account's credits",
                    "type": "string"
                  },
                  "currency": {
                    "description": "Credit's currency",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "type": "object",
            "example": {
              "balance_info": {
                "balance": "123.45",
                "currency": "EUR"
              }
            }
          },
          {
            "title": "Module Info",
            "description": "Module Info schema",
            "properties": {
              "module_info": {
                "description": "Module Info",
                "properties": {
                  "te": {
                    "description": "Account's credits",
                    "properties": {
                      "enabled": {
                        "description": "Track&Engage is Enabled",
                        "type": "boolean"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            },
            "type": "object",
            "example": {
              "module_info": {
                "te": {
                  "enabled": true
                }
              }
            }
          }
        ]
      },
      "TeResponse": {
        "title": "TeResponse",
        "description": "TeResponse schema",
        "type": "object",
        "example": {
          "result": true,
          "response": "success"
        },
        "allOf": [
          {
            "properties": {
              "result": {
                "description": "result",
                "type": "boolean"
              },
              "response": {
                "description": "response",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "Operation": {
        "title": "Operation",
        "description": "Operation schema",
        "properties": {
          "operation_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "operation_data": {
            "description": "Data of the operation",
            "properties": {
              "internal_name": {
                "description": "Internal name of the campaign (returns an empty string when not applicable)",
                "type": "string"
              },
              "campaign_hash": {
                "description": "Hash of the campaign (returns an empty string when not applicable)",
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": {
            "description": "Type of operation",
            "type": "string",
            "enum": [
              "import_contacts",
              "update_contacts",
              "export_contacts",
              "export_reports",
              "advanced_report",
              "email",
              "sms",
              "smart_sms",
              "voice",
              "push",
              "webpush",
              "ads",
              "social",
              "segment_generation",
              "mass_operation",
              "unify"
            ]
          },
          "status": {
            "description": "State of the operation",
            "type": "string",
            "enum": [
              "queued",
              "processing",
              "executing",
              "paused"
            ]
          },
          "created_by": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "created": {
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          },
          "start_date": {
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          }
        },
        "type": "object"
      },
      "OperationActionRequest": {
        "title": "OperationActionRequest",
        "description": "Operation action request schema",
        "required": [
          "operations"
        ],
        "properties": {
          "operations": {
            "description": "Array of operation IDs",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        },
        "type": "object"
      },
      "OperationActionResponse": {
        "title": "OperationActionResponse",
        "description": "Operation action response schema",
        "properties": {
          "success": {
            "description": "Array of operation IDs referencing successful operations",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "readOnly": true,
              "example": 1
            }
          },
          "error": {
            "description": "Operation error object",
            "properties": {
              "invalid_operation_action": {
                "description": "Array of operation IDs referencing operations where this action is invalid",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "readOnly": true,
                  "example": 1
                }
              },
              "operation_not_found": {
                "description": "Array of invalid operation IDs",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "readOnly": true,
                  "example": 1
                }
              }
            },
            "type": "object"
          }
        },
        "type": "object",
        "example": {
          "success": [
            1,
            2
          ],
          "error": {
            "invalid_operation_action": [],
            "operation_not_found": []
          }
        }
      },
      "Ping": {
        "title": "Ping",
        "description": "Ping schema",
        "properties": {
          "result": {
            "type": "string",
            "example": "pong"
          }
        },
        "type": "object"
      },
      "AppStructure": {
        "title": "App Structure",
        "description": "Structure of an E-goi app.",
        "properties": {
          "app_id": {
            "description": "The ID of the app.",
            "type": "string"
          },
          "list": {
            "description": "The list of the app.",
            "properties": {
              "id": {
                "description": "The ID of the list.",
                "type": "integer"
              },
              "internal_name": {
                "description": "The internal name of the list.",
                "type": "string"
              }
            },
            "type": "object"
          },
          "name": {
            "description": "The name of the app.",
            "type": "string"
          },
          "description": {
            "description": "The description of the app.",
            "type": "string"
          },
          "two_steps_config": {
            "description": "The column of the list used to map the token.",
            "type": "string"
          },
          "development": {
            "description": "Is app a development app.",
            "type": "boolean"
          },
          "created": {
            "description": "When the app was created.",
            "type": "string"
          },
          "updated": {
            "description": "The last time the app was updated.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "PushEvent": {
        "title": "Push Event",
        "description": "Push event schema",
        "required": [
          "os",
          "contact",
          "message_hash",
          "event",
          "device_id"
        ],
        "properties": {
          "os": {
            "description": "The OS of the device.",
            "type": "string"
          },
          "contact": {
            "description": "The UID of the contact.",
            "type": "string"
          },
          "message_hash": {
            "description": "The hash of the campaign related to the notification.",
            "type": "string"
          },
          "mailing_id": {
            "description": "The id of the campaign operation related to the notification.",
            "type": "integer"
          },
          "event": {
            "description": "The event to register (open, canceled).",
            "type": "string"
          },
          "device_id": {
            "description": "The E-goi's ID of the device.",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "PushResponse": {
        "title": "Push Response",
        "description": "The stucture of the responses.",
        "properties": {
          "success": {
            "description": "The success status of the request.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "PushToken": {
        "title": "Push Token",
        "description": "Push token schema",
        "required": [
          "os",
          "token"
        ],
        "properties": {
          "os": {
            "description": "The OS of the device.",
            "type": "string"
          },
          "token": {
            "description": "The Firebase token.",
            "type": "string"
          },
          "two_steps_data": {
            "description": "The data to register the token with.",
            "properties": {
              "field": {
                "description": "The field on your E-goi list to insert the data in.",
                "type": "string"
              },
              "value": {
                "description": "The data to insert in the field defined.",
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "EmailReport": {
        "title": "Email Report",
        "description": "Email report schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "campaign_hash": {
                "title": "Hash",
                "type": "string",
                "pattern": "[a-zA-Z0-9_-]*",
                "readOnly": true
              }
            },
            "type": "object"
          },
          {
            "title": "Overall",
            "description": "Overall stats schema",
            "properties": {
              "overall": {
                "description": "Overall message information",
                "properties": {
                  "sends": {
                    "description": "Total number of sent messages",
                    "type": "integer",
                    "minimum": 0,
                    "example": 3
                  },
                  "opens": {
                    "description": "Total number of open messages",
                    "type": "integer",
                    "minimum": 0,
                    "example": 3
                  },
                  "unique_opens": {
                    "description": "Total number of unique open messages",
                    "type": "integer",
                    "minimum": 0,
                    "example": 3
                  },
                  "clicks": {
                    "description": "Total number of clicks in message",
                    "type": "integer",
                    "minimum": 0,
                    "example": 3
                  },
                  "unique_clicks": {
                    "description": "Total number of unique clicks in message",
                    "type": "integer",
                    "minimum": 0,
                    "example": 3
                  },
                  "hard_bounces": {
                    "description": "Total number of hard bounces",
                    "type": "integer",
                    "minimum": 0,
                    "example": 3
                  },
                  "soft_bounces": {
                    "description": "Total number of soft bounces",
                    "type": "integer",
                    "minimum": 0,
                    "example": 3
                  },
                  "complaints": {
                    "description": "Total number of complaints",
                    "type": "integer",
                    "minimum": 0,
                    "example": 3
                  },
                  "unsubscriptions": {
                    "description": "Total number of unsubscriptions",
                    "type": "integer",
                    "minimum": 0,
                    "example": 3
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "By Date",
            "description": "Email stats grouped by date",
            "properties": {
              "date": {
                "description": "Email stats grouped by date",
                "type": "array",
                "items": {
                  "properties": {
                    "date": {
                      "description": "Date",
                      "type": "date",
                      "example": "01-01-1970"
                    },
                    "sends": {
                      "description": "Total number of sent messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "opens": {
                      "description": "Total number of open messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "clicks": {
                      "description": "Total number of clicks in message",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "hard_bounces": {
                      "description": "Total number of hard bounces",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "soft_bounces": {
                      "description": "Total number of soft bounces",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "complaints": {
                      "description": "Total number of complaints",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "unsubscriptions": {
                      "description": "Total number of unsubscriptions",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          },
          {
            "title": "By Weekday",
            "description": "Email stats grouped by Weekday",
            "properties": {
              "weekday": {
                "description": "Email stats grouped by date",
                "type": "array",
                "items": {
                  "properties": {
                    "weekday": {
                      "description": "Numeric representation of the day of the week (0 for sunday)",
                      "type": "string",
                      "example": "3"
                    },
                    "sends": {
                      "description": "Total number of sent messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "opens": {
                      "description": "Total number of open messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "clicks": {
                      "description": "Total number of clicks in message",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "hard_bounces": {
                      "description": "Total number of hard bounces",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "soft_bounces": {
                      "description": "Total number of soft bounces",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "complaints": {
                      "description": "Total number of complaints",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "unsubscriptions": {
                      "description": "Total number of unsubscriptions",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          },
          {
            "title": "By Hour",
            "description": "Email stats grouped by Hour",
            "properties": {
              "hour": {
                "description": "Email stats grouped by hour",
                "type": "array",
                "items": {
                  "properties": {
                    "hour": {
                      "description": "24-hour format of an hour with leading zeros",
                      "type": "string",
                      "example": "03"
                    },
                    "sends": {
                      "description": "Total number of sent messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "opens": {
                      "description": "Total number of open messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "clicks": {
                      "description": "Total number of clicks in message",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "hard_bounces": {
                      "description": "Total number of hard bounces",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "soft_bounces": {
                      "description": "Total number of soft bounces",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "complaints": {
                      "description": "Total number of complaints",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "unsubscriptions": {
                      "description": "Total number of unsubscriptions",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          },
          {
            "title": "By Location",
            "description": "Email stats grouped by Location",
            "properties": {
              "location": {
                "description": "Email stats grouped by Location",
                "type": "array",
                "items": {
                  "properties": {
                    "location": {
                      "description": "Location",
                      "type": "string",
                      "example": "Matosinhos"
                    },
                    "region": {
                      "description": "Region",
                      "type": "string",
                      "example": "Porto"
                    },
                    "country": {
                      "description": "Country",
                      "type": "string",
                      "example": "Portugal"
                    },
                    "opens": {
                      "description": "Total number of open messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "clicks": {
                      "description": "Total number of clicks in message",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "hard_bounces": {
                      "description": "Total number of hard bounces",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "soft_bounces": {
                      "description": "Total number of soft bounces",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "complaints": {
                      "description": "Total number of complaints",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "unsubscriptions": {
                      "description": "Total number of unsubscriptions",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          },
          {
            "title": "By Domain",
            "description": "Email stats grouped by Domain",
            "properties": {
              "domain": {
                "description": "Email stats grouped by Domain",
                "type": "array",
                "items": {
                  "properties": {
                    "domain": {
                      "description": "Domain",
                      "type": "string",
                      "example": "e-goi.com"
                    },
                    "sends": {
                      "description": "Total number of sent messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "opens": {
                      "description": "Total number of open messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "clicks": {
                      "description": "Total number of clicks in message",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "hard_bounces": {
                      "description": "Total number of hard bounces",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "soft_bounces": {
                      "description": "Total number of soft bounces",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "complaints": {
                      "description": "Total number of complaints",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    },
                    "unsubscriptions": {
                      "description": "Total number of unsubscriptions",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          },
          {
            "title": "By Url",
            "description": "Email stats grouped by Url",
            "properties": {
              "url": {
                "description": "Email stats grouped by Domain",
                "type": "array",
                "items": {
                  "properties": {
                    "url": {
                      "description": "Url",
                      "type": "string",
                      "example": "https://www.e-goi.com"
                    },
                    "clicks": {
                      "description": "Total number of clicks in the url",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          },
          {
            "title": "By Reader",
            "description": "Email stats grouped by Reader",
            "properties": {
              "reader": {
                "description": "Email stats grouped by Reader",
                "type": "array",
                "items": {
                  "properties": {
                    "reader": {
                      "description": "Reader",
                      "type": "string",
                      "example": "E-goi"
                    },
                    "type": {
                      "description": "Type",
                      "type": "string",
                      "example": "webmail"
                    },
                    "opens": {
                      "description": "Total number of open messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 3
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          }
        ]
      },
      "EmailReportByReader": {
        "title": "By Reader",
        "description": "Email stats grouped by Reader",
        "properties": {
          "reader": {
            "description": "Email stats grouped by Reader",
            "type": "array",
            "items": {
              "properties": {
                "reader": {
                  "description": "Reader",
                  "type": "string",
                  "example": "E-goi"
                },
                "type": {
                  "description": "Type",
                  "type": "string",
                  "example": "webmail"
                },
                "opens": {
                  "description": "Total number of open messages",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "EmailReportByUrl": {
        "title": "By Url",
        "description": "Email stats grouped by Url",
        "properties": {
          "url": {
            "description": "Email stats grouped by Domain",
            "type": "array",
            "items": {
              "properties": {
                "url": {
                  "description": "Url",
                  "type": "string",
                  "example": "https://www.e-goi.com"
                },
                "clicks": {
                  "description": "Total number of clicks in the url",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "EmailReportByEcommerce": {
        "title": "By Ecommerce",
        "description": "Email stats grouped by Ecommerce",
        "properties": {
          "ecommerce": {
            "description": "Email stats grouped by Ecommerce",
            "properties": {
              "orders": {
                "description": "Total number of orders",
                "type": "integer",
                "minimum": 0,
                "example": 3
              },
              "invoice": {
                "description": "Total value for invoices",
                "type": "double",
                "minimum": 0,
                "example": 1.1
              },
              "visits": {
                "description": "Total number of visits",
                "type": "integer",
                "minimum": 0,
                "example": 3
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "EmailReportByDomain": {
        "title": "By Domain",
        "description": "Email stats grouped by Domain",
        "properties": {
          "domain": {
            "description": "Email stats grouped by Domain",
            "type": "array",
            "items": {
              "properties": {
                "domain": {
                  "description": "Domain",
                  "type": "string",
                  "example": "e-goi.com"
                },
                "sends": {
                  "description": "Total number of sent messages",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "opens": {
                  "description": "Total number of open messages",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "clicks": {
                  "description": "Total number of clicks in message",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "hard_bounces": {
                  "description": "Total number of hard bounces",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "soft_bounces": {
                  "description": "Total number of soft bounces",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "complaints": {
                  "description": "Total number of complaints",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "unsubscriptions": {
                  "description": "Total number of unsubscriptions",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "EmailReportByLocation": {
        "title": "By Location",
        "description": "Email stats grouped by Location",
        "properties": {
          "location": {
            "description": "Email stats grouped by Location",
            "type": "array",
            "items": {
              "properties": {
                "location": {
                  "description": "Location",
                  "type": "string",
                  "example": "Matosinhos"
                },
                "region": {
                  "description": "Region",
                  "type": "string",
                  "example": "Porto"
                },
                "country": {
                  "description": "Country",
                  "type": "string",
                  "example": "Portugal"
                },
                "opens": {
                  "description": "Total number of open messages",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "clicks": {
                  "description": "Total number of clicks in message",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "hard_bounces": {
                  "description": "Total number of hard bounces",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "soft_bounces": {
                  "description": "Total number of soft bounces",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "complaints": {
                  "description": "Total number of complaints",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "unsubscriptions": {
                  "description": "Total number of unsubscriptions",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "EmailReportByHour": {
        "title": "By Hour",
        "description": "Email stats grouped by Hour",
        "properties": {
          "hour": {
            "description": "Email stats grouped by hour",
            "type": "array",
            "items": {
              "properties": {
                "hour": {
                  "description": "24-hour format of an hour with leading zeros",
                  "type": "string",
                  "example": "03"
                },
                "sends": {
                  "description": "Total number of sent messages",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "opens": {
                  "description": "Total number of open messages",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "clicks": {
                  "description": "Total number of clicks in message",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "hard_bounces": {
                  "description": "Total number of hard bounces",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "soft_bounces": {
                  "description": "Total number of soft bounces",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "complaints": {
                  "description": "Total number of complaints",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "unsubscriptions": {
                  "description": "Total number of unsubscriptions",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "EmailReportByWeekday": {
        "title": "By Weekday",
        "description": "Email stats grouped by Weekday",
        "properties": {
          "weekday": {
            "description": "Email stats grouped by date",
            "type": "array",
            "items": {
              "properties": {
                "weekday": {
                  "description": "Numeric representation of the day of the week (0 for sunday)",
                  "type": "string",
                  "example": "3"
                },
                "sends": {
                  "description": "Total number of sent messages",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "opens": {
                  "description": "Total number of open messages",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "clicks": {
                  "description": "Total number of clicks in message",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "hard_bounces": {
                  "description": "Total number of hard bounces",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "soft_bounces": {
                  "description": "Total number of soft bounces",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "complaints": {
                  "description": "Total number of complaints",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "unsubscriptions": {
                  "description": "Total number of unsubscriptions",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "EmailReportByDate": {
        "title": "By Date",
        "description": "Email stats grouped by date",
        "properties": {
          "date": {
            "description": "Email stats grouped by date",
            "type": "array",
            "items": {
              "properties": {
                "date": {
                  "description": "Date",
                  "type": "date",
                  "example": "01-01-1970"
                },
                "sends": {
                  "description": "Total number of sent messages",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "opens": {
                  "description": "Total number of open messages",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "clicks": {
                  "description": "Total number of clicks in message",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "hard_bounces": {
                  "description": "Total number of hard bounces",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "soft_bounces": {
                  "description": "Total number of soft bounces",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "complaints": {
                  "description": "Total number of complaints",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                },
                "unsubscriptions": {
                  "description": "Total number of unsubscriptions",
                  "type": "integer",
                  "minimum": 0,
                  "example": 3
                }
              },
              "type": "object"
            }
          }
        },
        "type": "object"
      },
      "EmailReportOverall": {
        "title": "Overall",
        "description": "Overall stats schema",
        "properties": {
          "overall": {
            "description": "Overall message information",
            "properties": {
              "sends": {
                "description": "Total number of sent messages",
                "type": "integer",
                "minimum": 0,
                "example": 3
              },
              "opens": {
                "description": "Total number of open messages",
                "type": "integer",
                "minimum": 0,
                "example": 3
              },
              "unique_opens": {
                "description": "Total number of unique open messages",
                "type": "integer",
                "minimum": 0,
                "example": 3
              },
              "clicks": {
                "description": "Total number of clicks in message",
                "type": "integer",
                "minimum": 0,
                "example": 3
              },
              "unique_clicks": {
                "description": "Total number of unique clicks in message",
                "type": "integer",
                "minimum": 0,
                "example": 3
              },
              "hard_bounces": {
                "description": "Total number of hard bounces",
                "type": "integer",
                "minimum": 0,
                "example": 3
              },
              "soft_bounces": {
                "description": "Total number of soft bounces",
                "type": "integer",
                "minimum": 0,
                "example": 3
              },
              "complaints": {
                "description": "Total number of complaints",
                "type": "integer",
                "minimum": 0,
                "example": 3
              },
              "unsubscriptions": {
                "description": "Total number of unsubscriptions",
                "type": "integer",
                "minimum": 0,
                "example": 3
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "PhoneReport": {
        "title": "PhoneReport",
        "description": "Phone report schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "campaign_hash": {
                "title": "Hash",
                "type": "string",
                "pattern": "[a-zA-Z0-9_-]*",
                "readOnly": true
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "networks": {
                "description": "Stats of the campaign for each network",
                "type": "array",
                "items": {
                  "properties": {
                    "network": {
                      "description": "Network name",
                      "type": "string",
                      "example": "Vodafone"
                    },
                    "sends": {
                      "description": "Total number of sent messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "delivered": {
                      "description": "Total number of delivered messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "error": {
                      "description": "Total number of failed messages",
                      "type": "integer",
                      "minimum": 0
                    },
                    "invalid": {
                      "description": "Total number of invalid messages",
                      "type": "integer",
                      "minimum": 0
                    },
                    "pending": {
                      "description": "Total number of pending messages",
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          },
          {
            "title": "Overall",
            "description": "Overall stats schema",
            "properties": {
              "overall": {
                "description": "Overall message information",
                "properties": {
                  "destinations": {
                    "description": "Total number of destinations",
                    "type": "integer",
                    "minimum": 1,
                    "example": 3
                  },
                  "sends": {
                    "description": "Total number of sent messages",
                    "type": "integer",
                    "minimum": 1,
                    "example": 3
                  },
                  "delivered": {
                    "description": "Total number of delivered messages",
                    "type": "integer",
                    "minimum": 0,
                    "example": 3
                  },
                  "error": {
                    "description": "Total number of failed messages",
                    "type": "integer",
                    "minimum": 0
                  },
                  "invalid": {
                    "description": "Total number of invalid messages",
                    "type": "integer",
                    "minimum": 0
                  },
                  "pending": {
                    "description": "Total number of pending messages",
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        ]
      },
      "PushStats": {
        "title": "PushStats",
        "description": "Push report stats schema",
        "properties": {
          "sends": {
            "description": "Total number of sent messages",
            "type": "integer",
            "minimum": 0,
            "example": 1
          },
          "opens": {
            "description": "Total number of opened messages",
            "type": "integer",
            "minimum": 0,
            "example": 1
          },
          "delivered": {
            "description": "Total number of delivered messages",
            "type": "integer",
            "minimum": 0,
            "example": 1
          },
          "received": {
            "description": "Total number of received messages",
            "type": "integer",
            "minimum": 0,
            "example": 1
          },
          "bounces": {
            "description": "Total number of bounces",
            "type": "integer",
            "minimum": 0,
            "example": 0
          },
          "error": {
            "description": "Total number of error messages",
            "type": "integer",
            "minimum": 0,
            "example": 0
          }
        },
        "type": "object"
      },
      "PushReport": {
        "title": "Push Report",
        "description": "Push report schema",
        "properties": {
          "campaign_hash": {
            "title": "Hash",
            "type": "string",
            "pattern": "[a-zA-Z0-9_-]*",
            "readOnly": true
          },
          "overall": {
            "title": "PushStats",
            "description": "Push report stats schema",
            "properties": {
              "sends": {
                "description": "Total number of sent messages",
                "type": "integer",
                "minimum": 0,
                "example": 1
              },
              "opens": {
                "description": "Total number of opened messages",
                "type": "integer",
                "minimum": 0,
                "example": 1
              },
              "delivered": {
                "description": "Total number of delivered messages",
                "type": "integer",
                "minimum": 0,
                "example": 1
              },
              "received": {
                "description": "Total number of received messages",
                "type": "integer",
                "minimum": 0,
                "example": 1
              },
              "bounces": {
                "description": "Total number of bounces",
                "type": "integer",
                "minimum": 0,
                "example": 0
              },
              "error": {
                "description": "Total number of error messages",
                "type": "integer",
                "minimum": 0,
                "example": 0
              }
            },
            "type": "object"
          },
          "operating_systems": {
            "description": "Stats of the campaign for each operating system",
            "type": "array",
            "items": {
              "allOf": [
                {
                  "properties": {
                    "operating_systems": {
                      "description": "Device type",
                      "type": "string",
                      "example": "desktop"
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "PushStats",
                  "description": "Push report stats schema",
                  "properties": {
                    "sends": {
                      "description": "Total number of sent messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "opens": {
                      "description": "Total number of opened messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "delivered": {
                      "description": "Total number of delivered messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "received": {
                      "description": "Total number of received messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "bounces": {
                      "description": "Total number of bounces",
                      "type": "integer",
                      "minimum": 0,
                      "example": 0
                    },
                    "error": {
                      "description": "Total number of error messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 0
                    }
                  },
                  "type": "object"
                }
              ]
            }
          }
        },
        "type": "object"
      },
      "Overall": {
        "title": "Overall",
        "description": "Overall stats schema",
        "properties": {
          "overall": {
            "description": "Overall message information",
            "properties": {
              "destinations": {
                "description": "Total number of destinations",
                "type": "integer",
                "minimum": 1,
                "example": 3
              },
              "sends": {
                "description": "Total number of sent messages",
                "type": "integer",
                "minimum": 1,
                "example": 3
              },
              "delivered": {
                "description": "Total number of delivered messages",
                "type": "integer",
                "minimum": 0,
                "example": 3
              },
              "error": {
                "description": "Total number of failed messages",
                "type": "integer",
                "minimum": 0
              },
              "invalid": {
                "description": "Total number of invalid messages",
                "type": "integer",
                "minimum": 0
              },
              "pending": {
                "description": "Total number of pending messages",
                "type": "integer",
                "minimum": 0
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "AdvancedReportModels": {
        "title": "AdvancedReportModels",
        "description": "Advanced report schema",
        "properties": {
          "model_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "title": {
            "description": "Advanced report model title",
            "type": "string",
            "example": "Report title"
          },
          "created": {
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          }
        },
        "type": "object"
      },
      "AdvancedReport": {
        "title": "AdvancedReport",
        "description": "Advanced report schema",
        "properties": {
          "advanced_report_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "title": {
            "description": "Advanced report title",
            "type": "string",
            "example": "Report title"
          },
          "hash": {
            "description": "Advanced report hash",
            "type": "string"
          },
          "file": {
            "description": "Advanced report file",
            "type": "string"
          },
          "status": {
            "description": "Advanced report status",
            "type": "string",
            "enum": [
              "queued",
              "running",
              "finished",
              "stopped",
              "canceled",
              "paused",
              "error"
            ]
          },
          "created": {
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          }
        },
        "type": "object"
      },
      "AdvancedReportRange": {
        "title": "AdvancedReportRange",
        "description": "Time range of the report",
        "required": [
          "start",
          "end"
        ],
        "properties": {
          "start": {
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          },
          "end": {
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          }
        },
        "type": "object"
      },
      "GenerateByModelReport": {
        "title": "GenerateByModelReport",
        "description": "Generate report by model schema",
        "required": [
          "model_id"
        ],
        "properties": {
          "model_id": {
            "description": "Model Id",
            "type": "integer",
            "example": 20
          }
        },
        "type": "object"
      },
      "AdvancedReportCampaigns": {
        "title": "AdvancedReportCampaigns",
        "description": "Campaigns of the report",
        "type": "array",
        "items": {
          "title": "AdvancedReportCampaignsObject",
          "type": "object",
          "discriminator": {
            "propertyName": "type",
            "mapping": {
              "all": "#/components/schemas/ReportCampaignsAll",
              "last": "#/components/schemas/ReportCampaignsLast",
              "specific": "#/components/schemas/ReportCampaignsSpecific",
              "group": "#/components/schemas/ReportCampaignsGroup"
            }
          },
          "oneOf": [
            {
              "title": "ReportCampaignsAll",
              "required": [
                "list_id",
                "type"
              ],
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "all"
                  ]
                }
              },
              "type": "object"
            },
            {
              "title": "ReportCampaignsLast",
              "required": [
                "list_id",
                "type"
              ],
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "last"
                  ]
                }
              },
              "type": "object"
            },
            {
              "title": "ReportCampaignsSpecific",
              "required": [
                "list_id",
                "type",
                "data"
              ],
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "specific"
                  ]
                },
                "data": {
                  "description": "Array of campaign hashes",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "type": "object"
            },
            {
              "title": "ReportCampaignsGroup",
              "required": [
                "list_id",
                "type",
                "data"
              ],
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "group"
                  ]
                },
                "data": {
                  "description": "Array of campaign groups",
                  "type": "array",
                  "items": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  }
                }
              },
              "type": "object"
            }
          ]
        }
      },
      "AdvancedReportCampaignsObject": {
        "title": "AdvancedReportCampaignsObject",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "all": "#/components/schemas/ReportCampaignsAll",
            "last": "#/components/schemas/ReportCampaignsLast",
            "specific": "#/components/schemas/ReportCampaignsSpecific",
            "group": "#/components/schemas/ReportCampaignsGroup"
          }
        },
        "oneOf": [
          {
            "title": "ReportCampaignsAll",
            "required": [
              "list_id",
              "type"
            ],
            "properties": {
              "list_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "type": {
                "type": "string",
                "enum": [
                  "all"
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "ReportCampaignsLast",
            "required": [
              "list_id",
              "type"
            ],
            "properties": {
              "list_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "type": {
                "type": "string",
                "enum": [
                  "last"
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "ReportCampaignsSpecific",
            "required": [
              "list_id",
              "type",
              "data"
            ],
            "properties": {
              "list_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "type": {
                "type": "string",
                "enum": [
                  "specific"
                ]
              },
              "data": {
                "description": "Array of campaign hashes",
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "type": "object"
          },
          {
            "title": "ReportCampaignsGroup",
            "required": [
              "list_id",
              "type",
              "data"
            ],
            "properties": {
              "list_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              },
              "type": {
                "type": "string",
                "enum": [
                  "group"
                ]
              },
              "data": {
                "description": "Array of campaign groups",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                }
              }
            },
            "type": "object"
          }
        ]
      },
      "ReportCampaignsAll": {
        "title": "ReportCampaignsAll",
        "required": [
          "list_id",
          "type"
        ],
        "properties": {
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "type": {
            "type": "string",
            "enum": [
              "all"
            ]
          }
        },
        "type": "object"
      },
      "ReportCampaignsLast": {
        "title": "ReportCampaignsLast",
        "required": [
          "list_id",
          "type"
        ],
        "properties": {
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "type": {
            "type": "string",
            "enum": [
              "last"
            ]
          }
        },
        "type": "object"
      },
      "ReportCampaignsSpecific": {
        "title": "ReportCampaignsSpecific",
        "required": [
          "list_id",
          "type",
          "data"
        ],
        "properties": {
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "type": {
            "type": "string",
            "enum": [
              "specific"
            ]
          },
          "data": {
            "description": "Array of campaign hashes",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "type": "object"
      },
      "ReportCampaignsGroup": {
        "title": "ReportCampaignsGroup",
        "required": [
          "list_id",
          "type",
          "data"
        ],
        "properties": {
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "type": {
            "type": "string",
            "enum": [
              "group"
            ]
          },
          "data": {
            "description": "Array of campaign groups",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        },
        "type": "object"
      },
      "GenerateContactActivityReport": {
        "title": "GenerateContactActivityReport",
        "description": "Generate contact activity report schema",
        "required": [
          "title",
          "range",
          "lists",
          "columns",
          "options"
        ],
        "properties": {
          "title": {
            "description": "Advanced report title",
            "type": "string",
            "example": "Report title"
          },
          "range": {
            "title": "AdvancedReportRange",
            "description": "Time range of the report",
            "required": [
              "start",
              "end"
            ],
            "properties": {
              "start": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "end": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          },
          "lists": {
            "description": "Array of List Id's (3 items max)",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "readOnly": true,
              "example": 1
            }
          },
          "columns": {
            "title": "AdvancedReportContactActivityColumns",
            "description": "Columns of the report",
            "required": [
              "list_base_fields",
              "list_extra_fields",
              "contact_activities"
            ],
            "properties": {
              "list_base_fields": {
                "description": "Array of base fields",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "list_extra_fields": {
                "title": "AdvancedReportListExtraFields",
                "required": [
                  "list_id",
                  "fields"
                ],
                "type": "array",
                "items": {
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "fields": {
                      "description": "Array of extra field IDs",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                }
              },
              "contact_activities": {
                "title": "ContactActivityActivitiesFields",
                "description": "List of contacts activities to include in the report",
                "required": [
                  "opens",
                  "clicks",
                  "recommends",
                  "conversion",
                  "email_send",
                  "sms_send",
                  "sms_report",
                  "voice_send",
                  "voice_report",
                  "invitation_send",
                  "invitation_open",
                  "unsubscribe",
                  "email_soft_bounce",
                  "email_hard_bounce",
                  "subscription",
                  "resubscription",
                  "unsubscribe_reason",
                  "facebook_like",
                  "social_share",
                  "unsubscribe_manual",
                  "double_optin",
                  "email_spam_complaint",
                  "email_field_disable",
                  "cellphone_field_disable",
                  "phone_field_disable",
                  "unsubscribe_api",
                  "email_field_enable",
                  "cellphone_field_enable",
                  "phone_field_enable",
                  "edit_subscription",
                  "automation_event",
                  "push_send",
                  "push_delivered",
                  "push_error",
                  "push_received",
                  "push_open",
                  "push_canceled",
                  "push_unsubscription",
                  "reply_to_email",
                  "web_push_send",
                  "web_push_delivered",
                  "web_push_open",
                  "web_push_bounce",
                  "web_push_click",
                  "web_push_subscription",
                  "web_push_unsubscription",
                  "forget_subscription",
                  "change_consent",
                  "double_optin_resend",
                  "double_optedit"
                ],
                "properties": {
                  "opens": {
                    "description": "True to include opens, false otherwise",
                    "type": "boolean"
                  },
                  "clicks": {
                    "description": "True to include clicks, false otherwise",
                    "type": "boolean"
                  },
                  "recommends": {
                    "description": "True to include recommends, false otherwise",
                    "type": "boolean"
                  },
                  "conversion": {
                    "description": "True to include convertions, false otherwise",
                    "type": "boolean"
                  },
                  "email_send": {
                    "description": "True to include email sends, false otherwise",
                    "type": "boolean"
                  },
                  "sms_send": {
                    "description": "True to include sms sends, false otherwise",
                    "type": "boolean"
                  },
                  "sms_report": {
                    "description": "True to include sms report, false otherwise",
                    "type": "boolean"
                  },
                  "voice_send": {
                    "description": "True to include voice sends, false otherwise",
                    "type": "boolean"
                  },
                  "voice_report": {
                    "description": "True to include voice report, false otherwise",
                    "type": "boolean"
                  },
                  "invitation_send": {
                    "description": "True to include invitation sends, false otherwise",
                    "type": "boolean"
                  },
                  "invitation_open": {
                    "description": "True to include invitation opens, false otherwise",
                    "type": "boolean"
                  },
                  "unsubscribe": {
                    "description": "True to include unsubscriptions, false otherwise",
                    "type": "boolean"
                  },
                  "email_soft_bounce": {
                    "description": "True to include email soft bounces, false otherwise",
                    "type": "boolean"
                  },
                  "email_hard_bounce": {
                    "description": "True to include email hard bounces, false otherwise",
                    "type": "boolean"
                  },
                  "subscription": {
                    "description": "True to include subscriptions, false otherwise",
                    "type": "boolean"
                  },
                  "resubscription": {
                    "description": "True to include re-subscriptions, false otherwise",
                    "type": "boolean"
                  },
                  "unsubscribe_reason": {
                    "description": "True to include unsubscription reason, false otherwise",
                    "type": "boolean"
                  },
                  "facebook_like": {
                    "description": "True to include facebook likes, false otherwise",
                    "type": "boolean"
                  },
                  "social_share": {
                    "description": "True to include social shares, false otherwise",
                    "type": "boolean"
                  },
                  "unsubscribe_manual": {
                    "description": "True to include manual unsubscriptions, false otherwise",
                    "type": "boolean"
                  },
                  "double_optin": {
                    "description": "True to include double optins, false otherwise",
                    "type": "boolean"
                  },
                  "email_spam_complaint": {
                    "description": "True to include spam complaints, false otherwise",
                    "type": "boolean"
                  },
                  "email_field_disable": {
                    "description": "True to include email field disable, false otherwise",
                    "type": "boolean"
                  },
                  "cellphone_field_disable": {
                    "description": "True to include cellphone field disable, false otherwise",
                    "type": "boolean"
                  },
                  "phone_field_disable": {
                    "description": "True to include phone field disable, false otherwise",
                    "type": "boolean"
                  },
                  "unsubscribe_api": {
                    "description": "True to include api unsubscriptions, false otherwise",
                    "type": "boolean"
                  },
                  "email_field_enable": {
                    "description": "True to include email field enable, false otherwise",
                    "type": "boolean"
                  },
                  "cellphone_field_enable": {
                    "description": "True to include cellphone field enable, false otherwise",
                    "type": "boolean"
                  },
                  "phone_field_enable": {
                    "description": "True to include phone field enable, false otherwise",
                    "type": "boolean"
                  },
                  "edit_subscription": {
                    "description": "True to include edit subscriptions, false otherwise",
                    "type": "boolean"
                  },
                  "automation_event": {
                    "description": "True to include automation events, false otherwise",
                    "type": "boolean"
                  },
                  "push_send": {
                    "description": "True to include push events, false otherwise",
                    "type": "boolean"
                  },
                  "push_delivered": {
                    "description": "True to include push delivered, false otherwise",
                    "type": "boolean"
                  },
                  "push_error": {
                    "description": "True to include push error, false otherwise",
                    "type": "boolean"
                  },
                  "push_received": {
                    "description": "True to include push received, false otherwise",
                    "type": "boolean"
                  },
                  "push_open": {
                    "description": "True to include push open, false otherwise",
                    "type": "boolean"
                  },
                  "push_canceled": {
                    "description": "True to include push canceled, false otherwise",
                    "type": "boolean"
                  },
                  "push_unsubscription": {
                    "description": "True to include push unsubscriptions, false otherwise",
                    "type": "boolean"
                  },
                  "reply_to_email": {
                    "description": "True to include reply to email, false otherwise",
                    "type": "boolean"
                  },
                  "web_push_send": {
                    "description": "True to include web push send, false otherwise",
                    "type": "boolean"
                  },
                  "web_push_delivered": {
                    "description": "True to include web push delivered, false otherwise",
                    "type": "boolean"
                  },
                  "web_push_open": {
                    "description": "True to include web push open, false otherwise",
                    "type": "boolean"
                  },
                  "web_push_bounce": {
                    "description": "True to include web push bounces, false otherwise",
                    "type": "boolean"
                  },
                  "web_push_click": {
                    "description": "True to include web push clicks, false otherwise",
                    "type": "boolean"
                  },
                  "web_push_subscription": {
                    "description": "True to include web push subscriptions, false otherwise",
                    "type": "boolean"
                  },
                  "web_push_unsubscription": {
                    "description": "True to include web push unsubscriptions, false otherwise",
                    "type": "boolean"
                  },
                  "forget_subscription": {
                    "description": "True to include forget subscriptions, false otherwise",
                    "type": "boolean"
                  },
                  "change_consent": {
                    "description": "True to include consent change, false otherwise",
                    "type": "boolean"
                  },
                  "double_optin_resend": {
                    "description": "True to include optin resends, false otherwise",
                    "type": "boolean"
                  },
                  "double_optedit": {
                    "description": "True to include double optedit, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "options": {
            "title": "AdvancedReportContactActivityOptions",
            "description": "Columns of the report",
            "properties": {
              "notify": {
                "description": "Array of user IDs to notify",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                }
              }
            },
            "type": "object"
          },
          "callback_url": {
            "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AdvancedReportContactActivityColumns": {
        "title": "AdvancedReportContactActivityColumns",
        "description": "Columns of the report",
        "required": [
          "list_base_fields",
          "list_extra_fields",
          "contact_activities"
        ],
        "properties": {
          "list_base_fields": {
            "description": "Array of base fields",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "list_extra_fields": {
            "title": "AdvancedReportListExtraFields",
            "required": [
              "list_id",
              "fields"
            ],
            "type": "array",
            "items": {
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "fields": {
                  "description": "Array of extra field IDs",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "type": "object"
            }
          },
          "contact_activities": {
            "title": "ContactActivityActivitiesFields",
            "description": "List of contacts activities to include in the report",
            "required": [
              "opens",
              "clicks",
              "recommends",
              "conversion",
              "email_send",
              "sms_send",
              "sms_report",
              "voice_send",
              "voice_report",
              "invitation_send",
              "invitation_open",
              "unsubscribe",
              "email_soft_bounce",
              "email_hard_bounce",
              "subscription",
              "resubscription",
              "unsubscribe_reason",
              "facebook_like",
              "social_share",
              "unsubscribe_manual",
              "double_optin",
              "email_spam_complaint",
              "email_field_disable",
              "cellphone_field_disable",
              "phone_field_disable",
              "unsubscribe_api",
              "email_field_enable",
              "cellphone_field_enable",
              "phone_field_enable",
              "edit_subscription",
              "automation_event",
              "push_send",
              "push_delivered",
              "push_error",
              "push_received",
              "push_open",
              "push_canceled",
              "push_unsubscription",
              "reply_to_email",
              "web_push_send",
              "web_push_delivered",
              "web_push_open",
              "web_push_bounce",
              "web_push_click",
              "web_push_subscription",
              "web_push_unsubscription",
              "forget_subscription",
              "change_consent",
              "double_optin_resend",
              "double_optedit"
            ],
            "properties": {
              "opens": {
                "description": "True to include opens, false otherwise",
                "type": "boolean"
              },
              "clicks": {
                "description": "True to include clicks, false otherwise",
                "type": "boolean"
              },
              "recommends": {
                "description": "True to include recommends, false otherwise",
                "type": "boolean"
              },
              "conversion": {
                "description": "True to include convertions, false otherwise",
                "type": "boolean"
              },
              "email_send": {
                "description": "True to include email sends, false otherwise",
                "type": "boolean"
              },
              "sms_send": {
                "description": "True to include sms sends, false otherwise",
                "type": "boolean"
              },
              "sms_report": {
                "description": "True to include sms report, false otherwise",
                "type": "boolean"
              },
              "voice_send": {
                "description": "True to include voice sends, false otherwise",
                "type": "boolean"
              },
              "voice_report": {
                "description": "True to include voice report, false otherwise",
                "type": "boolean"
              },
              "invitation_send": {
                "description": "True to include invitation sends, false otherwise",
                "type": "boolean"
              },
              "invitation_open": {
                "description": "True to include invitation opens, false otherwise",
                "type": "boolean"
              },
              "unsubscribe": {
                "description": "True to include unsubscriptions, false otherwise",
                "type": "boolean"
              },
              "email_soft_bounce": {
                "description": "True to include email soft bounces, false otherwise",
                "type": "boolean"
              },
              "email_hard_bounce": {
                "description": "True to include email hard bounces, false otherwise",
                "type": "boolean"
              },
              "subscription": {
                "description": "True to include subscriptions, false otherwise",
                "type": "boolean"
              },
              "resubscription": {
                "description": "True to include re-subscriptions, false otherwise",
                "type": "boolean"
              },
              "unsubscribe_reason": {
                "description": "True to include unsubscription reason, false otherwise",
                "type": "boolean"
              },
              "facebook_like": {
                "description": "True to include facebook likes, false otherwise",
                "type": "boolean"
              },
              "social_share": {
                "description": "True to include social shares, false otherwise",
                "type": "boolean"
              },
              "unsubscribe_manual": {
                "description": "True to include manual unsubscriptions, false otherwise",
                "type": "boolean"
              },
              "double_optin": {
                "description": "True to include double optins, false otherwise",
                "type": "boolean"
              },
              "email_spam_complaint": {
                "description": "True to include spam complaints, false otherwise",
                "type": "boolean"
              },
              "email_field_disable": {
                "description": "True to include email field disable, false otherwise",
                "type": "boolean"
              },
              "cellphone_field_disable": {
                "description": "True to include cellphone field disable, false otherwise",
                "type": "boolean"
              },
              "phone_field_disable": {
                "description": "True to include phone field disable, false otherwise",
                "type": "boolean"
              },
              "unsubscribe_api": {
                "description": "True to include api unsubscriptions, false otherwise",
                "type": "boolean"
              },
              "email_field_enable": {
                "description": "True to include email field enable, false otherwise",
                "type": "boolean"
              },
              "cellphone_field_enable": {
                "description": "True to include cellphone field enable, false otherwise",
                "type": "boolean"
              },
              "phone_field_enable": {
                "description": "True to include phone field enable, false otherwise",
                "type": "boolean"
              },
              "edit_subscription": {
                "description": "True to include edit subscriptions, false otherwise",
                "type": "boolean"
              },
              "automation_event": {
                "description": "True to include automation events, false otherwise",
                "type": "boolean"
              },
              "push_send": {
                "description": "True to include push events, false otherwise",
                "type": "boolean"
              },
              "push_delivered": {
                "description": "True to include push delivered, false otherwise",
                "type": "boolean"
              },
              "push_error": {
                "description": "True to include push error, false otherwise",
                "type": "boolean"
              },
              "push_received": {
                "description": "True to include push received, false otherwise",
                "type": "boolean"
              },
              "push_open": {
                "description": "True to include push open, false otherwise",
                "type": "boolean"
              },
              "push_canceled": {
                "description": "True to include push canceled, false otherwise",
                "type": "boolean"
              },
              "push_unsubscription": {
                "description": "True to include push unsubscriptions, false otherwise",
                "type": "boolean"
              },
              "reply_to_email": {
                "description": "True to include reply to email, false otherwise",
                "type": "boolean"
              },
              "web_push_send": {
                "description": "True to include web push send, false otherwise",
                "type": "boolean"
              },
              "web_push_delivered": {
                "description": "True to include web push delivered, false otherwise",
                "type": "boolean"
              },
              "web_push_open": {
                "description": "True to include web push open, false otherwise",
                "type": "boolean"
              },
              "web_push_bounce": {
                "description": "True to include web push bounces, false otherwise",
                "type": "boolean"
              },
              "web_push_click": {
                "description": "True to include web push clicks, false otherwise",
                "type": "boolean"
              },
              "web_push_subscription": {
                "description": "True to include web push subscriptions, false otherwise",
                "type": "boolean"
              },
              "web_push_unsubscription": {
                "description": "True to include web push unsubscriptions, false otherwise",
                "type": "boolean"
              },
              "forget_subscription": {
                "description": "True to include forget subscriptions, false otherwise",
                "type": "boolean"
              },
              "change_consent": {
                "description": "True to include consent change, false otherwise",
                "type": "boolean"
              },
              "double_optin_resend": {
                "description": "True to include optin resends, false otherwise",
                "type": "boolean"
              },
              "double_optedit": {
                "description": "True to include double optedit, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "AdvancedReportContactActivityOptions": {
        "title": "AdvancedReportContactActivityOptions",
        "description": "Columns of the report",
        "properties": {
          "notify": {
            "description": "Array of user IDs to notify",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        },
        "type": "object"
      },
      "ContactActivityActivitiesFields": {
        "title": "ContactActivityActivitiesFields",
        "description": "List of contacts activities to include in the report",
        "required": [
          "opens",
          "clicks",
          "recommends",
          "conversion",
          "email_send",
          "sms_send",
          "sms_report",
          "voice_send",
          "voice_report",
          "invitation_send",
          "invitation_open",
          "unsubscribe",
          "email_soft_bounce",
          "email_hard_bounce",
          "subscription",
          "resubscription",
          "unsubscribe_reason",
          "facebook_like",
          "social_share",
          "unsubscribe_manual",
          "double_optin",
          "email_spam_complaint",
          "email_field_disable",
          "cellphone_field_disable",
          "phone_field_disable",
          "unsubscribe_api",
          "email_field_enable",
          "cellphone_field_enable",
          "phone_field_enable",
          "edit_subscription",
          "automation_event",
          "push_send",
          "push_delivered",
          "push_error",
          "push_received",
          "push_open",
          "push_canceled",
          "push_unsubscription",
          "reply_to_email",
          "web_push_send",
          "web_push_delivered",
          "web_push_open",
          "web_push_bounce",
          "web_push_click",
          "web_push_subscription",
          "web_push_unsubscription",
          "forget_subscription",
          "change_consent",
          "double_optin_resend",
          "double_optedit"
        ],
        "properties": {
          "opens": {
            "description": "True to include opens, false otherwise",
            "type": "boolean"
          },
          "clicks": {
            "description": "True to include clicks, false otherwise",
            "type": "boolean"
          },
          "recommends": {
            "description": "True to include recommends, false otherwise",
            "type": "boolean"
          },
          "conversion": {
            "description": "True to include convertions, false otherwise",
            "type": "boolean"
          },
          "email_send": {
            "description": "True to include email sends, false otherwise",
            "type": "boolean"
          },
          "sms_send": {
            "description": "True to include sms sends, false otherwise",
            "type": "boolean"
          },
          "sms_report": {
            "description": "True to include sms report, false otherwise",
            "type": "boolean"
          },
          "voice_send": {
            "description": "True to include voice sends, false otherwise",
            "type": "boolean"
          },
          "voice_report": {
            "description": "True to include voice report, false otherwise",
            "type": "boolean"
          },
          "invitation_send": {
            "description": "True to include invitation sends, false otherwise",
            "type": "boolean"
          },
          "invitation_open": {
            "description": "True to include invitation opens, false otherwise",
            "type": "boolean"
          },
          "unsubscribe": {
            "description": "True to include unsubscriptions, false otherwise",
            "type": "boolean"
          },
          "email_soft_bounce": {
            "description": "True to include email soft bounces, false otherwise",
            "type": "boolean"
          },
          "email_hard_bounce": {
            "description": "True to include email hard bounces, false otherwise",
            "type": "boolean"
          },
          "subscription": {
            "description": "True to include subscriptions, false otherwise",
            "type": "boolean"
          },
          "resubscription": {
            "description": "True to include re-subscriptions, false otherwise",
            "type": "boolean"
          },
          "unsubscribe_reason": {
            "description": "True to include unsubscription reason, false otherwise",
            "type": "boolean"
          },
          "facebook_like": {
            "description": "True to include facebook likes, false otherwise",
            "type": "boolean"
          },
          "social_share": {
            "description": "True to include social shares, false otherwise",
            "type": "boolean"
          },
          "unsubscribe_manual": {
            "description": "True to include manual unsubscriptions, false otherwise",
            "type": "boolean"
          },
          "double_optin": {
            "description": "True to include double optins, false otherwise",
            "type": "boolean"
          },
          "email_spam_complaint": {
            "description": "True to include spam complaints, false otherwise",
            "type": "boolean"
          },
          "email_field_disable": {
            "description": "True to include email field disable, false otherwise",
            "type": "boolean"
          },
          "cellphone_field_disable": {
            "description": "True to include cellphone field disable, false otherwise",
            "type": "boolean"
          },
          "phone_field_disable": {
            "description": "True to include phone field disable, false otherwise",
            "type": "boolean"
          },
          "unsubscribe_api": {
            "description": "True to include api unsubscriptions, false otherwise",
            "type": "boolean"
          },
          "email_field_enable": {
            "description": "True to include email field enable, false otherwise",
            "type": "boolean"
          },
          "cellphone_field_enable": {
            "description": "True to include cellphone field enable, false otherwise",
            "type": "boolean"
          },
          "phone_field_enable": {
            "description": "True to include phone field enable, false otherwise",
            "type": "boolean"
          },
          "edit_subscription": {
            "description": "True to include edit subscriptions, false otherwise",
            "type": "boolean"
          },
          "automation_event": {
            "description": "True to include automation events, false otherwise",
            "type": "boolean"
          },
          "push_send": {
            "description": "True to include push events, false otherwise",
            "type": "boolean"
          },
          "push_delivered": {
            "description": "True to include push delivered, false otherwise",
            "type": "boolean"
          },
          "push_error": {
            "description": "True to include push error, false otherwise",
            "type": "boolean"
          },
          "push_received": {
            "description": "True to include push received, false otherwise",
            "type": "boolean"
          },
          "push_open": {
            "description": "True to include push open, false otherwise",
            "type": "boolean"
          },
          "push_canceled": {
            "description": "True to include push canceled, false otherwise",
            "type": "boolean"
          },
          "push_unsubscription": {
            "description": "True to include push unsubscriptions, false otherwise",
            "type": "boolean"
          },
          "reply_to_email": {
            "description": "True to include reply to email, false otherwise",
            "type": "boolean"
          },
          "web_push_send": {
            "description": "True to include web push send, false otherwise",
            "type": "boolean"
          },
          "web_push_delivered": {
            "description": "True to include web push delivered, false otherwise",
            "type": "boolean"
          },
          "web_push_open": {
            "description": "True to include web push open, false otherwise",
            "type": "boolean"
          },
          "web_push_bounce": {
            "description": "True to include web push bounces, false otherwise",
            "type": "boolean"
          },
          "web_push_click": {
            "description": "True to include web push clicks, false otherwise",
            "type": "boolean"
          },
          "web_push_subscription": {
            "description": "True to include web push subscriptions, false otherwise",
            "type": "boolean"
          },
          "web_push_unsubscription": {
            "description": "True to include web push unsubscriptions, false otherwise",
            "type": "boolean"
          },
          "forget_subscription": {
            "description": "True to include forget subscriptions, false otherwise",
            "type": "boolean"
          },
          "change_consent": {
            "description": "True to include consent change, false otherwise",
            "type": "boolean"
          },
          "double_optin_resend": {
            "description": "True to include optin resends, false otherwise",
            "type": "boolean"
          },
          "double_optedit": {
            "description": "True to include double optedit, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "GenerateEmailBouncesReport": {
        "title": "GenerateEmailBouncesReport",
        "description": "Generate email bounces report schema",
        "required": [
          "title",
          "range",
          "campaigns",
          "columns",
          "options"
        ],
        "properties": {
          "title": {
            "description": "Advanced report title",
            "type": "string",
            "example": "Report title"
          },
          "range": {
            "title": "AdvancedReportRange",
            "description": "Time range of the report",
            "required": [
              "start",
              "end"
            ],
            "properties": {
              "start": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "end": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          },
          "campaigns": {
            "title": "AdvancedReportCampaigns",
            "description": "Campaigns of the report",
            "type": "array",
            "items": {
              "title": "AdvancedReportCampaignsObject",
              "type": "object",
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "all": "#/components/schemas/ReportCampaignsAll",
                  "last": "#/components/schemas/ReportCampaignsLast",
                  "specific": "#/components/schemas/ReportCampaignsSpecific",
                  "group": "#/components/schemas/ReportCampaignsGroup"
                }
              },
              "oneOf": [
                {
                  "title": "ReportCampaignsAll",
                  "required": [
                    "list_id",
                    "type"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "all"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsLast",
                  "required": [
                    "list_id",
                    "type"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "last"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsSpecific",
                  "required": [
                    "list_id",
                    "type",
                    "data"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "specific"
                      ]
                    },
                    "data": {
                      "description": "Array of campaign hashes",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsGroup",
                  "required": [
                    "list_id",
                    "type",
                    "data"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "group"
                      ]
                    },
                    "data": {
                      "description": "Array of campaign groups",
                      "type": "array",
                      "items": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      }
                    }
                  },
                  "type": "object"
                }
              ]
            }
          },
          "columns": {
            "title": "AdvancedReportEmailBouncesColumns",
            "description": "Columns of the report",
            "required": [
              "list_base_fields",
              "list_extra_fields",
              "list_stats_fields",
              "campaign_fields"
            ],
            "properties": {
              "list_base_fields": {
                "description": "Array of base fields",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "list_extra_fields": {
                "title": "AdvancedReportListExtraFields",
                "required": [
                  "list_id",
                  "fields"
                ],
                "type": "array",
                "items": {
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "fields": {
                      "description": "Array of extra field IDs",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                }
              },
              "list_stats_fields": {
                "title": "EmailBouncesListStatsFields",
                "description": "List stats fields to include in the report",
                "required": [
                  "bounce_date",
                  "bounce_type",
                  "bounce_detail"
                ],
                "properties": {
                  "bounce_date": {
                    "description": "True to include bounce date, false otherwise",
                    "type": "boolean"
                  },
                  "bounce_type": {
                    "description": "True to include bounce type, false otherwise",
                    "type": "boolean"
                  },
                  "bounce_detail": {
                    "description": "True to include bounce detail, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "campaign_fields": {
                "title": "EmailBouncesCampaignFields",
                "description": "Campaign fields to include in the report",
                "required": [
                  "internal_name",
                  "campaign_hash"
                ],
                "properties": {
                  "internal_name": {
                    "description": "True to include the internal name of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "campaign_hash": {
                    "description": "True to include the hash of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "send_date": {
                    "description": "True to include the send date of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "group": {
                    "description": "True to include the group of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "channel": {
                    "description": "True to include the channel of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "sender": {
                    "description": "True to include the sender of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "type": {
                    "description": "True to include the type of the campaign, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "options": {
            "title": "AdvancedReportEmailBouncesOptions",
            "description": "Columns of the report",
            "required": [
              "include_unopens"
            ],
            "properties": {
              "include_unopens": {
                "description": "True to include info for not opened campaigns, false otherwise",
                "type": "boolean"
              },
              "notify": {
                "description": "Array of user IDs to notify",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                }
              },
              "grouping": {
                "description": "Field to group data",
                "type": "string",
                "default": "by_campaign",
                "enum": [
                  "by_contact",
                  "by_campaign"
                ]
              }
            },
            "type": "object"
          },
          "callback_url": {
            "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AdvancedReportEmailBouncesColumns": {
        "title": "AdvancedReportEmailBouncesColumns",
        "description": "Columns of the report",
        "required": [
          "list_base_fields",
          "list_extra_fields",
          "list_stats_fields",
          "campaign_fields"
        ],
        "properties": {
          "list_base_fields": {
            "description": "Array of base fields",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "list_extra_fields": {
            "title": "AdvancedReportListExtraFields",
            "required": [
              "list_id",
              "fields"
            ],
            "type": "array",
            "items": {
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "fields": {
                  "description": "Array of extra field IDs",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "type": "object"
            }
          },
          "list_stats_fields": {
            "title": "EmailBouncesListStatsFields",
            "description": "List stats fields to include in the report",
            "required": [
              "bounce_date",
              "bounce_type",
              "bounce_detail"
            ],
            "properties": {
              "bounce_date": {
                "description": "True to include bounce date, false otherwise",
                "type": "boolean"
              },
              "bounce_type": {
                "description": "True to include bounce type, false otherwise",
                "type": "boolean"
              },
              "bounce_detail": {
                "description": "True to include bounce detail, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "campaign_fields": {
            "title": "EmailBouncesCampaignFields",
            "description": "Campaign fields to include in the report",
            "required": [
              "internal_name",
              "campaign_hash"
            ],
            "properties": {
              "internal_name": {
                "description": "True to include the internal name of the campaign, false otherwise",
                "type": "boolean"
              },
              "campaign_hash": {
                "description": "True to include the hash of the campaign, false otherwise",
                "type": "boolean"
              },
              "send_date": {
                "description": "True to include the send date of the campaign, false otherwise",
                "type": "boolean"
              },
              "group": {
                "description": "True to include the group of the campaign, false otherwise",
                "type": "boolean"
              },
              "channel": {
                "description": "True to include the channel of the campaign, false otherwise",
                "type": "boolean"
              },
              "sender": {
                "description": "True to include the sender of the campaign, false otherwise",
                "type": "boolean"
              },
              "type": {
                "description": "True to include the type of the campaign, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "EmailBouncesListStatsFields": {
        "title": "EmailBouncesListStatsFields",
        "description": "List stats fields to include in the report",
        "required": [
          "bounce_date",
          "bounce_type",
          "bounce_detail"
        ],
        "properties": {
          "bounce_date": {
            "description": "True to include bounce date, false otherwise",
            "type": "boolean"
          },
          "bounce_type": {
            "description": "True to include bounce type, false otherwise",
            "type": "boolean"
          },
          "bounce_detail": {
            "description": "True to include bounce detail, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "EmailBouncesCampaignFields": {
        "title": "EmailBouncesCampaignFields",
        "description": "Campaign fields to include in the report",
        "required": [
          "internal_name",
          "campaign_hash"
        ],
        "properties": {
          "internal_name": {
            "description": "True to include the internal name of the campaign, false otherwise",
            "type": "boolean"
          },
          "campaign_hash": {
            "description": "True to include the hash of the campaign, false otherwise",
            "type": "boolean"
          },
          "send_date": {
            "description": "True to include the send date of the campaign, false otherwise",
            "type": "boolean"
          },
          "group": {
            "description": "True to include the group of the campaign, false otherwise",
            "type": "boolean"
          },
          "channel": {
            "description": "True to include the channel of the campaign, false otherwise",
            "type": "boolean"
          },
          "sender": {
            "description": "True to include the sender of the campaign, false otherwise",
            "type": "boolean"
          },
          "type": {
            "description": "True to include the type of the campaign, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "AdvancedReportEmailBouncesOptions": {
        "title": "AdvancedReportEmailBouncesOptions",
        "description": "Columns of the report",
        "required": [
          "include_unopens"
        ],
        "properties": {
          "include_unopens": {
            "description": "True to include info for not opened campaigns, false otherwise",
            "type": "boolean"
          },
          "notify": {
            "description": "Array of user IDs to notify",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          "grouping": {
            "description": "Field to group data",
            "type": "string",
            "default": "by_campaign",
            "enum": [
              "by_contact",
              "by_campaign"
            ]
          }
        },
        "type": "object"
      },
      "GenerateEmailClicksByContactReport": {
        "title": "GenerateEmailClicksByContactReport",
        "description": "Generate email clicks by contact report schema",
        "required": [
          "title",
          "range",
          "campaigns",
          "columns",
          "options"
        ],
        "properties": {
          "title": {
            "description": "Advanced report title",
            "type": "string",
            "example": "Report title"
          },
          "range": {
            "title": "AdvancedReportRange",
            "description": "Time range of the report",
            "required": [
              "start",
              "end"
            ],
            "properties": {
              "start": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "end": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          },
          "campaigns": {
            "title": "AdvancedReportCampaigns",
            "description": "Campaigns of the report",
            "type": "array",
            "items": {
              "title": "AdvancedReportCampaignsObject",
              "type": "object",
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "all": "#/components/schemas/ReportCampaignsAll",
                  "last": "#/components/schemas/ReportCampaignsLast",
                  "specific": "#/components/schemas/ReportCampaignsSpecific",
                  "group": "#/components/schemas/ReportCampaignsGroup"
                }
              },
              "oneOf": [
                {
                  "title": "ReportCampaignsAll",
                  "required": [
                    "list_id",
                    "type"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "all"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsLast",
                  "required": [
                    "list_id",
                    "type"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "last"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsSpecific",
                  "required": [
                    "list_id",
                    "type",
                    "data"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "specific"
                      ]
                    },
                    "data": {
                      "description": "Array of campaign hashes",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsGroup",
                  "required": [
                    "list_id",
                    "type",
                    "data"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "group"
                      ]
                    },
                    "data": {
                      "description": "Array of campaign groups",
                      "type": "array",
                      "items": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      }
                    }
                  },
                  "type": "object"
                }
              ]
            }
          },
          "columns": {
            "title": "AdvancedReportEmailClicksByContactColumns",
            "description": "Columns of the report",
            "required": [
              "list_base_fields",
              "list_extra_fields",
              "list_stats_fields",
              "campaign_fields"
            ],
            "properties": {
              "list_base_fields": {
                "description": "Array of base fields",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "list_extra_fields": {
                "title": "AdvancedReportListExtraFields",
                "required": [
                  "list_id",
                  "fields"
                ],
                "type": "array",
                "items": {
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "fields": {
                      "description": "Array of extra field IDs",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                }
              },
              "list_stats_fields": {
                "title": "EmailClicksByContactListStatsFields",
                "description": "List stats fields to include in the report",
                "required": [
                  "clicks"
                ],
                "properties": {
                  "clicks": {
                    "description": "True to include clicks, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "campaign_fields": {
                "title": "EmailClicksByContactCampaignFields",
                "description": "Campaign fields to include in the report",
                "required": [
                  "internal_name",
                  "campaign_hash",
                  "url"
                ],
                "properties": {
                  "internal_name": {
                    "description": "True to include the internal name of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "campaign_hash": {
                    "description": "True to include the hash of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "url": {
                    "description": "True to include the URL of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "send_date": {
                    "description": "True to include the send date of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "group": {
                    "description": "True to include the group of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "channel": {
                    "description": "True to include the channel of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "type": {
                    "description": "True to include the type of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "sender": {
                    "description": "True to include the sender of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "city": {
                    "description": "True to include city information, false otherwise (deprecated)",
                    "type": "boolean"
                  },
                  "country": {
                    "description": "True to include country information, false otherwise (deprecated)",
                    "type": "boolean"
                  },
                  "region": {
                    "description": "True to include region information, false otherwise (deprecated)",
                    "type": "boolean"
                  },
                  "program": {
                    "description": "True to include device program information, false otherwise (deprecated)",
                    "type": "boolean"
                  },
                  "os": {
                    "description": "True to include operating system information, false otherwise (deprecated)",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "options": {
            "title": "AdvancedReportEmailClicksByContactOptions",
            "description": "Columns of the report",
            "properties": {
              "notify": {
                "description": "Array of user IDs to notify",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                }
              }
            },
            "type": "object"
          },
          "callback_url": {
            "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AdvancedReportEmailClicksByContactColumns": {
        "title": "AdvancedReportEmailClicksByContactColumns",
        "description": "Columns of the report",
        "required": [
          "list_base_fields",
          "list_extra_fields",
          "list_stats_fields",
          "campaign_fields"
        ],
        "properties": {
          "list_base_fields": {
            "description": "Array of base fields",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "list_extra_fields": {
            "title": "AdvancedReportListExtraFields",
            "required": [
              "list_id",
              "fields"
            ],
            "type": "array",
            "items": {
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "fields": {
                  "description": "Array of extra field IDs",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "type": "object"
            }
          },
          "list_stats_fields": {
            "title": "EmailClicksByContactListStatsFields",
            "description": "List stats fields to include in the report",
            "required": [
              "clicks"
            ],
            "properties": {
              "clicks": {
                "description": "True to include clicks, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "campaign_fields": {
            "title": "EmailClicksByContactCampaignFields",
            "description": "Campaign fields to include in the report",
            "required": [
              "internal_name",
              "campaign_hash",
              "url"
            ],
            "properties": {
              "internal_name": {
                "description": "True to include the internal name of the campaign, false otherwise",
                "type": "boolean"
              },
              "campaign_hash": {
                "description": "True to include the hash of the campaign, false otherwise",
                "type": "boolean"
              },
              "url": {
                "description": "True to include the URL of the campaign, false otherwise",
                "type": "boolean"
              },
              "send_date": {
                "description": "True to include the send date of the campaign, false otherwise",
                "type": "boolean"
              },
              "group": {
                "description": "True to include the group of the campaign, false otherwise",
                "type": "boolean"
              },
              "channel": {
                "description": "True to include the channel of the campaign, false otherwise",
                "type": "boolean"
              },
              "type": {
                "description": "True to include the type of the campaign, false otherwise",
                "type": "boolean"
              },
              "sender": {
                "description": "True to include the sender of the campaign, false otherwise",
                "type": "boolean"
              },
              "city": {
                "description": "True to include city information, false otherwise (deprecated)",
                "type": "boolean"
              },
              "country": {
                "description": "True to include country information, false otherwise (deprecated)",
                "type": "boolean"
              },
              "region": {
                "description": "True to include region information, false otherwise (deprecated)",
                "type": "boolean"
              },
              "program": {
                "description": "True to include device program information, false otherwise (deprecated)",
                "type": "boolean"
              },
              "os": {
                "description": "True to include operating system information, false otherwise (deprecated)",
                "type": "boolean"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "EmailClicksByContactListStatsFields": {
        "title": "EmailClicksByContactListStatsFields",
        "description": "List stats fields to include in the report",
        "required": [
          "clicks"
        ],
        "properties": {
          "clicks": {
            "description": "True to include clicks, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "EmailClicksByContactCampaignFields": {
        "title": "EmailClicksByContactCampaignFields",
        "description": "Campaign fields to include in the report",
        "required": [
          "internal_name",
          "campaign_hash",
          "url"
        ],
        "properties": {
          "internal_name": {
            "description": "True to include the internal name of the campaign, false otherwise",
            "type": "boolean"
          },
          "campaign_hash": {
            "description": "True to include the hash of the campaign, false otherwise",
            "type": "boolean"
          },
          "url": {
            "description": "True to include the URL of the campaign, false otherwise",
            "type": "boolean"
          },
          "send_date": {
            "description": "True to include the send date of the campaign, false otherwise",
            "type": "boolean"
          },
          "group": {
            "description": "True to include the group of the campaign, false otherwise",
            "type": "boolean"
          },
          "channel": {
            "description": "True to include the channel of the campaign, false otherwise",
            "type": "boolean"
          },
          "type": {
            "description": "True to include the type of the campaign, false otherwise",
            "type": "boolean"
          },
          "sender": {
            "description": "True to include the sender of the campaign, false otherwise",
            "type": "boolean"
          },
          "city": {
            "description": "True to include city information, false otherwise (deprecated)",
            "type": "boolean"
          },
          "country": {
            "description": "True to include country information, false otherwise (deprecated)",
            "type": "boolean"
          },
          "region": {
            "description": "True to include region information, false otherwise (deprecated)",
            "type": "boolean"
          },
          "program": {
            "description": "True to include device program information, false otherwise (deprecated)",
            "type": "boolean"
          },
          "os": {
            "description": "True to include operating system information, false otherwise (deprecated)",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "AdvancedReportEmailClicksByContactOptions": {
        "title": "AdvancedReportEmailClicksByContactOptions",
        "description": "Columns of the report",
        "properties": {
          "notify": {
            "description": "Array of user IDs to notify",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        },
        "type": "object"
      },
      "GenerateEmailClicksByUrlReport": {
        "title": "GenerateEmailClicksByUrlReport",
        "description": "Generate email clicks by URL report schema",
        "required": [
          "title",
          "range",
          "campaigns",
          "columns",
          "options"
        ],
        "properties": {
          "title": {
            "description": "Advanced report title",
            "type": "string",
            "example": "Report title"
          },
          "range": {
            "title": "AdvancedReportRange",
            "description": "Time range of the report",
            "required": [
              "start",
              "end"
            ],
            "properties": {
              "start": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "end": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          },
          "campaigns": {
            "title": "AdvancedReportCampaigns",
            "description": "Campaigns of the report",
            "type": "array",
            "items": {
              "title": "AdvancedReportCampaignsObject",
              "type": "object",
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "all": "#/components/schemas/ReportCampaignsAll",
                  "last": "#/components/schemas/ReportCampaignsLast",
                  "specific": "#/components/schemas/ReportCampaignsSpecific",
                  "group": "#/components/schemas/ReportCampaignsGroup"
                }
              },
              "oneOf": [
                {
                  "title": "ReportCampaignsAll",
                  "required": [
                    "list_id",
                    "type"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "all"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsLast",
                  "required": [
                    "list_id",
                    "type"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "last"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsSpecific",
                  "required": [
                    "list_id",
                    "type",
                    "data"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "specific"
                      ]
                    },
                    "data": {
                      "description": "Array of campaign hashes",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsGroup",
                  "required": [
                    "list_id",
                    "type",
                    "data"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "group"
                      ]
                    },
                    "data": {
                      "description": "Array of campaign groups",
                      "type": "array",
                      "items": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      }
                    }
                  },
                  "type": "object"
                }
              ]
            }
          },
          "columns": {
            "title": "AdvancedReportEmailClicksByUrlColumns",
            "description": "Columns of the report",
            "required": [
              "list_base_fields",
              "list_extra_fields",
              "list_stats_fields",
              "campaign_fields"
            ],
            "properties": {
              "list_base_fields": {
                "description": "Array of base fields",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "list_extra_fields": {
                "title": "AdvancedReportListExtraFields",
                "required": [
                  "list_id",
                  "fields"
                ],
                "type": "array",
                "items": {
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "fields": {
                      "description": "Array of extra field IDs",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                }
              },
              "list_stats_fields": {
                "title": "EmailClicksByUrlListStatsFields",
                "description": "List stats fields to include in the report",
                "required": [
                  "clicks",
                  "unique_clicks",
                  "click_rate_per_url"
                ],
                "properties": {
                  "clicks": {
                    "description": "True to include clicks, false otherwise",
                    "type": "boolean"
                  },
                  "unique_clicks": {
                    "description": "True to include unique clicks, false otherwise",
                    "type": "boolean"
                  },
                  "click_rate_per_url": {
                    "description": "True to include click rate per URL, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "campaign_fields": {
                "title": "EmailClicksByUrlCampaignFields",
                "description": "Campaign fields to include in the report",
                "required": [
                  "internal_name",
                  "campaign_hash",
                  "url"
                ],
                "properties": {
                  "internal_name": {
                    "description": "True to include the internal name of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "campaign_hash": {
                    "description": "True to include the hash of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "url": {
                    "description": "True to include the URL of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "send_date": {
                    "description": "True to include the send date of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "group": {
                    "description": "True to include the group of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "channel": {
                    "description": "True to include the channel of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "type": {
                    "description": "True to include the type of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "city": {
                    "description": "True to include city information, false otherwise (deprecated)",
                    "type": "boolean"
                  },
                  "country": {
                    "description": "True to include country information, false otherwise (deprecated)",
                    "type": "boolean"
                  },
                  "region": {
                    "description": "True to include region information, false otherwise (deprecated)",
                    "type": "boolean"
                  },
                  "program": {
                    "description": "True to include device program information, false otherwise (deprecated)",
                    "type": "boolean"
                  },
                  "os": {
                    "description": "True to include operating system information, false otherwise (deprecated)",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "options": {
            "title": "AdvancedReportEmailClicksByUrlOptions",
            "description": "Columns of the report",
            "properties": {
              "notify": {
                "description": "Array of user IDs to notify",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                }
              }
            },
            "type": "object"
          },
          "callback_url": {
            "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AdvancedReportEmailClicksByUrlColumns": {
        "title": "AdvancedReportEmailClicksByUrlColumns",
        "description": "Columns of the report",
        "required": [
          "list_base_fields",
          "list_extra_fields",
          "list_stats_fields",
          "campaign_fields"
        ],
        "properties": {
          "list_base_fields": {
            "description": "Array of base fields",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "list_extra_fields": {
            "title": "AdvancedReportListExtraFields",
            "required": [
              "list_id",
              "fields"
            ],
            "type": "array",
            "items": {
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "fields": {
                  "description": "Array of extra field IDs",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "type": "object"
            }
          },
          "list_stats_fields": {
            "title": "EmailClicksByUrlListStatsFields",
            "description": "List stats fields to include in the report",
            "required": [
              "clicks",
              "unique_clicks",
              "click_rate_per_url"
            ],
            "properties": {
              "clicks": {
                "description": "True to include clicks, false otherwise",
                "type": "boolean"
              },
              "unique_clicks": {
                "description": "True to include unique clicks, false otherwise",
                "type": "boolean"
              },
              "click_rate_per_url": {
                "description": "True to include click rate per URL, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "campaign_fields": {
            "title": "EmailClicksByUrlCampaignFields",
            "description": "Campaign fields to include in the report",
            "required": [
              "internal_name",
              "campaign_hash",
              "url"
            ],
            "properties": {
              "internal_name": {
                "description": "True to include the internal name of the campaign, false otherwise",
                "type": "boolean"
              },
              "campaign_hash": {
                "description": "True to include the hash of the campaign, false otherwise",
                "type": "boolean"
              },
              "url": {
                "description": "True to include the URL of the campaign, false otherwise",
                "type": "boolean"
              },
              "send_date": {
                "description": "True to include the send date of the campaign, false otherwise",
                "type": "boolean"
              },
              "group": {
                "description": "True to include the group of the campaign, false otherwise",
                "type": "boolean"
              },
              "channel": {
                "description": "True to include the channel of the campaign, false otherwise",
                "type": "boolean"
              },
              "type": {
                "description": "True to include the type of the campaign, false otherwise",
                "type": "boolean"
              },
              "city": {
                "description": "True to include city information, false otherwise (deprecated)",
                "type": "boolean"
              },
              "country": {
                "description": "True to include country information, false otherwise (deprecated)",
                "type": "boolean"
              },
              "region": {
                "description": "True to include region information, false otherwise (deprecated)",
                "type": "boolean"
              },
              "program": {
                "description": "True to include device program information, false otherwise (deprecated)",
                "type": "boolean"
              },
              "os": {
                "description": "True to include operating system information, false otherwise (deprecated)",
                "type": "boolean"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "EmailClicksByUrlListStatsFields": {
        "title": "EmailClicksByUrlListStatsFields",
        "description": "List stats fields to include in the report",
        "required": [
          "clicks",
          "unique_clicks",
          "click_rate_per_url"
        ],
        "properties": {
          "clicks": {
            "description": "True to include clicks, false otherwise",
            "type": "boolean"
          },
          "unique_clicks": {
            "description": "True to include unique clicks, false otherwise",
            "type": "boolean"
          },
          "click_rate_per_url": {
            "description": "True to include click rate per URL, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "EmailClicksByUrlCampaignFields": {
        "title": "EmailClicksByUrlCampaignFields",
        "description": "Campaign fields to include in the report",
        "required": [
          "internal_name",
          "campaign_hash",
          "url"
        ],
        "properties": {
          "internal_name": {
            "description": "True to include the internal name of the campaign, false otherwise",
            "type": "boolean"
          },
          "campaign_hash": {
            "description": "True to include the hash of the campaign, false otherwise",
            "type": "boolean"
          },
          "url": {
            "description": "True to include the URL of the campaign, false otherwise",
            "type": "boolean"
          },
          "send_date": {
            "description": "True to include the send date of the campaign, false otherwise",
            "type": "boolean"
          },
          "group": {
            "description": "True to include the group of the campaign, false otherwise",
            "type": "boolean"
          },
          "channel": {
            "description": "True to include the channel of the campaign, false otherwise",
            "type": "boolean"
          },
          "type": {
            "description": "True to include the type of the campaign, false otherwise",
            "type": "boolean"
          },
          "city": {
            "description": "True to include city information, false otherwise (deprecated)",
            "type": "boolean"
          },
          "country": {
            "description": "True to include country information, false otherwise (deprecated)",
            "type": "boolean"
          },
          "region": {
            "description": "True to include region information, false otherwise (deprecated)",
            "type": "boolean"
          },
          "program": {
            "description": "True to include device program information, false otherwise (deprecated)",
            "type": "boolean"
          },
          "os": {
            "description": "True to include operating system information, false otherwise (deprecated)",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "AdvancedReportEmailClicksByUrlOptions": {
        "title": "AdvancedReportEmailClicksByUrlOptions",
        "description": "Columns of the report",
        "properties": {
          "notify": {
            "description": "Array of user IDs to notify",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        },
        "type": "object"
      },
      "GenerateEmailEventsReport": {
        "title": "GenerateEmailEventsReport",
        "description": "Generate email events report schema",
        "required": [
          "title",
          "range",
          "campaigns",
          "columns",
          "options"
        ],
        "properties": {
          "title": {
            "description": "Advanced report title",
            "type": "string",
            "example": "Report title"
          },
          "range": {
            "title": "AdvancedReportRange",
            "description": "Time range of the report",
            "required": [
              "start",
              "end"
            ],
            "properties": {
              "start": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "end": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          },
          "campaigns": {
            "title": "AdvancedReportCampaigns",
            "description": "Campaigns of the report",
            "type": "array",
            "items": {
              "title": "AdvancedReportCampaignsObject",
              "type": "object",
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "all": "#/components/schemas/ReportCampaignsAll",
                  "last": "#/components/schemas/ReportCampaignsLast",
                  "specific": "#/components/schemas/ReportCampaignsSpecific",
                  "group": "#/components/schemas/ReportCampaignsGroup"
                }
              },
              "oneOf": [
                {
                  "title": "ReportCampaignsAll",
                  "required": [
                    "list_id",
                    "type"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "all"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsLast",
                  "required": [
                    "list_id",
                    "type"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "last"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsSpecific",
                  "required": [
                    "list_id",
                    "type",
                    "data"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "specific"
                      ]
                    },
                    "data": {
                      "description": "Array of campaign hashes",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsGroup",
                  "required": [
                    "list_id",
                    "type",
                    "data"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "group"
                      ]
                    },
                    "data": {
                      "description": "Array of campaign groups",
                      "type": "array",
                      "items": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      }
                    }
                  },
                  "type": "object"
                }
              ]
            }
          },
          "columns": {
            "title": "AdvancedReportEmailEventsColumns",
            "description": "Columns of the report",
            "required": [
              "list_base_fields",
              "list_extra_fields",
              "list_stats_fields",
              "campaign_fields"
            ],
            "properties": {
              "list_base_fields": {
                "description": "Array of base fields",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "list_extra_fields": {
                "title": "AdvancedReportListExtraFields",
                "required": [
                  "list_id",
                  "fields"
                ],
                "type": "array",
                "items": {
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "fields": {
                      "description": "Array of extra field IDs",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                }
              },
              "list_stats_fields": {
                "title": "EmailEventsListStatsFields",
                "description": "List stats fields to include in the report",
                "required": [
                  "opens",
                  "clicks",
                  "complaints",
                  "unsubscribes",
                  "bounces",
                  "forwards",
                  "forwards_conversion",
                  "fb_likes",
                  "fb_shares",
                  "tw_shares",
                  "social_shares"
                ],
                "properties": {
                  "opens": {
                    "description": "True to include opens, false otherwise",
                    "type": "boolean"
                  },
                  "clicks": {
                    "description": "True to include clicks, false otherwise",
                    "type": "boolean"
                  },
                  "complaints": {
                    "description": "True to include complaints, false otherwise",
                    "type": "boolean"
                  },
                  "unsubscribes": {
                    "description": "True to include unsubscriptions, false otherwise",
                    "type": "boolean"
                  },
                  "bounces": {
                    "description": "True to include bounces, false otherwise",
                    "type": "boolean"
                  },
                  "forwards": {
                    "description": "True to include forwards, false otherwise",
                    "type": "boolean"
                  },
                  "forwards_conversion": {
                    "description": "True to include converted forwards, false otherwise",
                    "type": "boolean"
                  },
                  "fb_likes": {
                    "description": "True to include facebook likes, false otherwise",
                    "type": "boolean"
                  },
                  "fb_shares": {
                    "description": "True to include facebook shares, false otherwise",
                    "type": "boolean"
                  },
                  "tw_shares": {
                    "description": "True to include twitter shares, false otherwise",
                    "type": "boolean"
                  },
                  "social_shares": {
                    "description": "True to include social shares, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "campaign_fields": {
                "title": "EmailEventsCampaignFields",
                "description": "Campaign fields to include in the report",
                "required": [
                  "internal_name",
                  "campaign_hash",
                  "send_date",
                  "group"
                ],
                "properties": {
                  "internal_name": {
                    "description": "True to include the internal name of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "campaign_hash": {
                    "description": "True to include the hash of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "send_date": {
                    "description": "True to include the send date of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "group": {
                    "description": "True to include the group of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "channel": {
                    "description": "True to include the channel of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "type": {
                    "description": "True to include the type of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "url": {
                    "description": "True to include the URL of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "sender": {
                    "description": "True to include the sender of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "city": {
                    "description": "True to include city information, false otherwise (deprecated)",
                    "type": "boolean"
                  },
                  "country": {
                    "description": "True to include country information, false otherwise (deprecated)",
                    "type": "boolean"
                  },
                  "region": {
                    "description": "True to include region information, false otherwise (deprecated)",
                    "type": "boolean"
                  },
                  "program": {
                    "description": "True to include device program information, false otherwise (deprecated)",
                    "type": "boolean"
                  },
                  "os": {
                    "description": "True to include operating system information, false otherwise (deprecated)",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "options": {
            "title": "AdvancedReportEmailEventsOptions",
            "description": "Columns of the report",
            "required": [
              "include_unopens"
            ],
            "properties": {
              "include_unopens": {
                "description": "True to include info for not opened campaigns, false otherwise",
                "type": "boolean"
              },
              "notify": {
                "description": "Array of user IDs to notify",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                }
              }
            },
            "type": "object"
          },
          "callback_url": {
            "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AdvancedReportEmailEventsColumns": {
        "title": "AdvancedReportEmailEventsColumns",
        "description": "Columns of the report",
        "required": [
          "list_base_fields",
          "list_extra_fields",
          "list_stats_fields",
          "campaign_fields"
        ],
        "properties": {
          "list_base_fields": {
            "description": "Array of base fields",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "list_extra_fields": {
            "title": "AdvancedReportListExtraFields",
            "required": [
              "list_id",
              "fields"
            ],
            "type": "array",
            "items": {
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "fields": {
                  "description": "Array of extra field IDs",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "type": "object"
            }
          },
          "list_stats_fields": {
            "title": "EmailEventsListStatsFields",
            "description": "List stats fields to include in the report",
            "required": [
              "opens",
              "clicks",
              "complaints",
              "unsubscribes",
              "bounces",
              "forwards",
              "forwards_conversion",
              "fb_likes",
              "fb_shares",
              "tw_shares",
              "social_shares"
            ],
            "properties": {
              "opens": {
                "description": "True to include opens, false otherwise",
                "type": "boolean"
              },
              "clicks": {
                "description": "True to include clicks, false otherwise",
                "type": "boolean"
              },
              "complaints": {
                "description": "True to include complaints, false otherwise",
                "type": "boolean"
              },
              "unsubscribes": {
                "description": "True to include unsubscriptions, false otherwise",
                "type": "boolean"
              },
              "bounces": {
                "description": "True to include bounces, false otherwise",
                "type": "boolean"
              },
              "forwards": {
                "description": "True to include forwards, false otherwise",
                "type": "boolean"
              },
              "forwards_conversion": {
                "description": "True to include converted forwards, false otherwise",
                "type": "boolean"
              },
              "fb_likes": {
                "description": "True to include facebook likes, false otherwise",
                "type": "boolean"
              },
              "fb_shares": {
                "description": "True to include facebook shares, false otherwise",
                "type": "boolean"
              },
              "tw_shares": {
                "description": "True to include twitter shares, false otherwise",
                "type": "boolean"
              },
              "social_shares": {
                "description": "True to include social shares, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "campaign_fields": {
            "title": "EmailEventsCampaignFields",
            "description": "Campaign fields to include in the report",
            "required": [
              "internal_name",
              "campaign_hash",
              "send_date",
              "group"
            ],
            "properties": {
              "internal_name": {
                "description": "True to include the internal name of the campaign, false otherwise",
                "type": "boolean"
              },
              "campaign_hash": {
                "description": "True to include the hash of the campaign, false otherwise",
                "type": "boolean"
              },
              "send_date": {
                "description": "True to include the send date of the campaign, false otherwise",
                "type": "boolean"
              },
              "group": {
                "description": "True to include the group of the campaign, false otherwise",
                "type": "boolean"
              },
              "channel": {
                "description": "True to include the channel of the campaign, false otherwise",
                "type": "boolean"
              },
              "type": {
                "description": "True to include the type of the campaign, false otherwise",
                "type": "boolean"
              },
              "url": {
                "description": "True to include the URL of the campaign, false otherwise",
                "type": "boolean"
              },
              "sender": {
                "description": "True to include the sender of the campaign, false otherwise",
                "type": "boolean"
              },
              "city": {
                "description": "True to include city information, false otherwise (deprecated)",
                "type": "boolean"
              },
              "country": {
                "description": "True to include country information, false otherwise (deprecated)",
                "type": "boolean"
              },
              "region": {
                "description": "True to include region information, false otherwise (deprecated)",
                "type": "boolean"
              },
              "program": {
                "description": "True to include device program information, false otherwise (deprecated)",
                "type": "boolean"
              },
              "os": {
                "description": "True to include operating system information, false otherwise (deprecated)",
                "type": "boolean"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "AdvancedReportListExtraFields": {
        "title": "AdvancedReportListExtraFields",
        "required": [
          "list_id",
          "fields"
        ],
        "type": "array",
        "items": {
          "properties": {
            "list_id": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            },
            "fields": {
              "description": "Array of extra field IDs",
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "type": "object"
        }
      },
      "EmailEventsListStatsFields": {
        "title": "EmailEventsListStatsFields",
        "description": "List stats fields to include in the report",
        "required": [
          "opens",
          "clicks",
          "complaints",
          "unsubscribes",
          "bounces",
          "forwards",
          "forwards_conversion",
          "fb_likes",
          "fb_shares",
          "tw_shares",
          "social_shares"
        ],
        "properties": {
          "opens": {
            "description": "True to include opens, false otherwise",
            "type": "boolean"
          },
          "clicks": {
            "description": "True to include clicks, false otherwise",
            "type": "boolean"
          },
          "complaints": {
            "description": "True to include complaints, false otherwise",
            "type": "boolean"
          },
          "unsubscribes": {
            "description": "True to include unsubscriptions, false otherwise",
            "type": "boolean"
          },
          "bounces": {
            "description": "True to include bounces, false otherwise",
            "type": "boolean"
          },
          "forwards": {
            "description": "True to include forwards, false otherwise",
            "type": "boolean"
          },
          "forwards_conversion": {
            "description": "True to include converted forwards, false otherwise",
            "type": "boolean"
          },
          "fb_likes": {
            "description": "True to include facebook likes, false otherwise",
            "type": "boolean"
          },
          "fb_shares": {
            "description": "True to include facebook shares, false otherwise",
            "type": "boolean"
          },
          "tw_shares": {
            "description": "True to include twitter shares, false otherwise",
            "type": "boolean"
          },
          "social_shares": {
            "description": "True to include social shares, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "EmailEventsCampaignFields": {
        "title": "EmailEventsCampaignFields",
        "description": "Campaign fields to include in the report",
        "required": [
          "internal_name",
          "campaign_hash",
          "send_date",
          "group"
        ],
        "properties": {
          "internal_name": {
            "description": "True to include the internal name of the campaign, false otherwise",
            "type": "boolean"
          },
          "campaign_hash": {
            "description": "True to include the hash of the campaign, false otherwise",
            "type": "boolean"
          },
          "send_date": {
            "description": "True to include the send date of the campaign, false otherwise",
            "type": "boolean"
          },
          "group": {
            "description": "True to include the group of the campaign, false otherwise",
            "type": "boolean"
          },
          "channel": {
            "description": "True to include the channel of the campaign, false otherwise",
            "type": "boolean"
          },
          "type": {
            "description": "True to include the type of the campaign, false otherwise",
            "type": "boolean"
          },
          "url": {
            "description": "True to include the URL of the campaign, false otherwise",
            "type": "boolean"
          },
          "sender": {
            "description": "True to include the sender of the campaign, false otherwise",
            "type": "boolean"
          },
          "city": {
            "description": "True to include city information, false otherwise (deprecated)",
            "type": "boolean"
          },
          "country": {
            "description": "True to include country information, false otherwise (deprecated)",
            "type": "boolean"
          },
          "region": {
            "description": "True to include region information, false otherwise (deprecated)",
            "type": "boolean"
          },
          "program": {
            "description": "True to include device program information, false otherwise (deprecated)",
            "type": "boolean"
          },
          "os": {
            "description": "True to include operating system information, false otherwise (deprecated)",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "AdvancedReportEmailEventsOptions": {
        "title": "AdvancedReportEmailEventsOptions",
        "description": "Columns of the report",
        "required": [
          "include_unopens"
        ],
        "properties": {
          "include_unopens": {
            "description": "True to include info for not opened campaigns, false otherwise",
            "type": "boolean"
          },
          "notify": {
            "description": "Array of user IDs to notify",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        },
        "type": "object"
      },
      "GenerateEmailUnsubscriptionsReport": {
        "title": "GenerateEmailUnsubscriptionsReport",
        "description": "Generate email unsubscriptions report schema",
        "required": [
          "title",
          "range",
          "campaigns",
          "columns",
          "options"
        ],
        "properties": {
          "title": {
            "description": "Advanced report title",
            "type": "string",
            "example": "Report title"
          },
          "range": {
            "title": "AdvancedReportRange",
            "description": "Time range of the report",
            "required": [
              "start",
              "end"
            ],
            "properties": {
              "start": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "end": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          },
          "campaigns": {
            "title": "AdvancedReportCampaigns",
            "description": "Campaigns of the report",
            "type": "array",
            "items": {
              "title": "AdvancedReportCampaignsObject",
              "type": "object",
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "all": "#/components/schemas/ReportCampaignsAll",
                  "last": "#/components/schemas/ReportCampaignsLast",
                  "specific": "#/components/schemas/ReportCampaignsSpecific",
                  "group": "#/components/schemas/ReportCampaignsGroup"
                }
              },
              "oneOf": [
                {
                  "title": "ReportCampaignsAll",
                  "required": [
                    "list_id",
                    "type"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "all"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsLast",
                  "required": [
                    "list_id",
                    "type"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "last"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsSpecific",
                  "required": [
                    "list_id",
                    "type",
                    "data"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "specific"
                      ]
                    },
                    "data": {
                      "description": "Array of campaign hashes",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsGroup",
                  "required": [
                    "list_id",
                    "type",
                    "data"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "group"
                      ]
                    },
                    "data": {
                      "description": "Array of campaign groups",
                      "type": "array",
                      "items": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      }
                    }
                  },
                  "type": "object"
                }
              ]
            }
          },
          "columns": {
            "title": "AdvancedReportEmailUnsubscriptionsColumns",
            "description": "Columns of the report",
            "required": [
              "list_base_fields",
              "list_extra_fields",
              "list_stats_fields",
              "campaign_fields"
            ],
            "properties": {
              "list_base_fields": {
                "description": "Array of base fields",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "list_extra_fields": {
                "title": "AdvancedReportListExtraFields",
                "required": [
                  "list_id",
                  "fields"
                ],
                "type": "array",
                "items": {
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "fields": {
                      "description": "Array of extra field IDs",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                }
              },
              "list_stats_fields": {
                "title": "EmailUnsubscriptionsListStatsFields",
                "description": "List stats fields to include in the report",
                "required": [
                  "unsubscription_method",
                  "unsubscription_motive",
                  "unsubscription_date"
                ],
                "properties": {
                  "unsubscription_method": {
                    "description": "True to include unsubscription method, false otherwise",
                    "type": "boolean"
                  },
                  "unsubscription_motive": {
                    "description": "True to include unsubscription motive, false otherwise",
                    "type": "boolean"
                  },
                  "unsubscription_date": {
                    "description": "True to include unsubscription date, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "campaign_fields": {
                "title": "EmailUnsubscriptionsCampaignFields",
                "description": "Campaign fields to include in the report",
                "required": [
                  "internal_name",
                  "campaign_hash",
                  "sender"
                ],
                "properties": {
                  "internal_name": {
                    "description": "True to include the internal name of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "campaign_hash": {
                    "description": "True to include the hash of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "send_date": {
                    "description": "True to include the send date of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "group": {
                    "description": "True to include the group of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "channel": {
                    "description": "True to include the channel of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "type": {
                    "description": "True to include the type of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "sender": {
                    "description": "True to include the sender of the campaign, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "options": {
            "title": "AdvancedReportEmailUnsubscriptionsOptions",
            "description": "Columns of the report",
            "properties": {
              "notify": {
                "description": "Array of user IDs to notify",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                }
              }
            },
            "type": "object"
          },
          "callback_url": {
            "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AdvancedReportEmailUnsubscriptionsColumns": {
        "title": "AdvancedReportEmailUnsubscriptionsColumns",
        "description": "Columns of the report",
        "required": [
          "list_base_fields",
          "list_extra_fields",
          "list_stats_fields",
          "campaign_fields"
        ],
        "properties": {
          "list_base_fields": {
            "description": "Array of base fields",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "list_extra_fields": {
            "title": "AdvancedReportListExtraFields",
            "required": [
              "list_id",
              "fields"
            ],
            "type": "array",
            "items": {
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "fields": {
                  "description": "Array of extra field IDs",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "type": "object"
            }
          },
          "list_stats_fields": {
            "title": "EmailUnsubscriptionsListStatsFields",
            "description": "List stats fields to include in the report",
            "required": [
              "unsubscription_method",
              "unsubscription_motive",
              "unsubscription_date"
            ],
            "properties": {
              "unsubscription_method": {
                "description": "True to include unsubscription method, false otherwise",
                "type": "boolean"
              },
              "unsubscription_motive": {
                "description": "True to include unsubscription motive, false otherwise",
                "type": "boolean"
              },
              "unsubscription_date": {
                "description": "True to include unsubscription date, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "campaign_fields": {
            "title": "EmailUnsubscriptionsCampaignFields",
            "description": "Campaign fields to include in the report",
            "required": [
              "internal_name",
              "campaign_hash",
              "sender"
            ],
            "properties": {
              "internal_name": {
                "description": "True to include the internal name of the campaign, false otherwise",
                "type": "boolean"
              },
              "campaign_hash": {
                "description": "True to include the hash of the campaign, false otherwise",
                "type": "boolean"
              },
              "send_date": {
                "description": "True to include the send date of the campaign, false otherwise",
                "type": "boolean"
              },
              "group": {
                "description": "True to include the group of the campaign, false otherwise",
                "type": "boolean"
              },
              "channel": {
                "description": "True to include the channel of the campaign, false otherwise",
                "type": "boolean"
              },
              "type": {
                "description": "True to include the type of the campaign, false otherwise",
                "type": "boolean"
              },
              "sender": {
                "description": "True to include the sender of the campaign, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "EmailUnsubscriptionsListStatsFields": {
        "title": "EmailUnsubscriptionsListStatsFields",
        "description": "List stats fields to include in the report",
        "required": [
          "unsubscription_method",
          "unsubscription_motive",
          "unsubscription_date"
        ],
        "properties": {
          "unsubscription_method": {
            "description": "True to include unsubscription method, false otherwise",
            "type": "boolean"
          },
          "unsubscription_motive": {
            "description": "True to include unsubscription motive, false otherwise",
            "type": "boolean"
          },
          "unsubscription_date": {
            "description": "True to include unsubscription date, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "EmailUnsubscriptionsCampaignFields": {
        "title": "EmailUnsubscriptionsCampaignFields",
        "description": "Campaign fields to include in the report",
        "required": [
          "internal_name",
          "campaign_hash",
          "sender"
        ],
        "properties": {
          "internal_name": {
            "description": "True to include the internal name of the campaign, false otherwise",
            "type": "boolean"
          },
          "campaign_hash": {
            "description": "True to include the hash of the campaign, false otherwise",
            "type": "boolean"
          },
          "send_date": {
            "description": "True to include the send date of the campaign, false otherwise",
            "type": "boolean"
          },
          "group": {
            "description": "True to include the group of the campaign, false otherwise",
            "type": "boolean"
          },
          "channel": {
            "description": "True to include the channel of the campaign, false otherwise",
            "type": "boolean"
          },
          "type": {
            "description": "True to include the type of the campaign, false otherwise",
            "type": "boolean"
          },
          "sender": {
            "description": "True to include the sender of the campaign, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "AdvancedReportEmailUnsubscriptionsOptions": {
        "title": "AdvancedReportEmailUnsubscriptionsOptions",
        "description": "Columns of the report",
        "properties": {
          "notify": {
            "description": "Array of user IDs to notify",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        },
        "type": "object"
      },
      "GenerateFormAnswersReport": {
        "title": "GenerateFormAnswersReport",
        "description": "Generate form answers report schema",
        "required": [
          "title",
          "range",
          "forms"
        ],
        "properties": {
          "title": {
            "description": "Advanced report title",
            "type": "string",
            "example": "Report title"
          },
          "range": {
            "title": "AdvancedReportRange",
            "description": "Time range of the report",
            "required": [
              "start",
              "end"
            ],
            "properties": {
              "start": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "end": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          },
          "forms": {
            "title": "AdvancedReportForms",
            "required": [
              "list_id",
              "forms"
            ],
            "type": "array",
            "items": {
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "forms": {
                  "description": "Array of form IDs",
                  "type": "array",
                  "items": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "example": 1
                  }
                }
              },
              "type": "object"
            }
          },
          "callback_url": {
            "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AdvancedReportForms": {
        "title": "AdvancedReportForms",
        "required": [
          "list_id",
          "forms"
        ],
        "type": "array",
        "items": {
          "properties": {
            "list_id": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            },
            "forms": {
              "description": "Array of form IDs",
              "type": "array",
              "items": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "example": 1
              }
            }
          },
          "type": "object"
        }
      },
      "GenerateSendsReport": {
        "title": "GenerateSendsReport",
        "description": "Generate sends report schema",
        "required": [
          "title",
          "range",
          "lists",
          "columns",
          "options"
        ],
        "properties": {
          "title": {
            "description": "Advanced report title",
            "type": "string",
            "example": "Report title"
          },
          "range": {
            "title": "AdvancedReportRange",
            "description": "Time range of the report",
            "required": [
              "start",
              "end"
            ],
            "properties": {
              "start": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "end": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          },
          "lists": {
            "description": "Array of List Id's",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "readOnly": true,
              "example": 1
            }
          },
          "columns": {
            "title": "AdvancedReportSendsColumns",
            "description": "Columns of the report",
            "required": [
              "list_base_fields",
              "list_extra_fields",
              "campaign_fields"
            ],
            "properties": {
              "list_base_fields": {
                "description": "Array of base fields",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "list_extra_fields": {
                "title": "AdvancedReportListExtraFields",
                "required": [
                  "list_id",
                  "fields"
                ],
                "type": "array",
                "items": {
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "fields": {
                      "description": "Array of extra field IDs",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                }
              },
              "campaign_fields": {
                "title": "SendsCampaignFields",
                "description": "Campaign fields to include in the report",
                "required": [
                  "internal_name",
                  "campaign_hash",
                  "group",
                  "channel",
                  "type",
                  "sender"
                ],
                "properties": {
                  "internal_name": {
                    "description": "True to include the internal name of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "campaign_hash": {
                    "description": "True to include the hash of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "send_date": {
                    "description": "True to include the send date of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "group": {
                    "description": "True to include the group of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "channel": {
                    "description": "True to include the channel of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "type": {
                    "description": "True to include the type of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "sender": {
                    "description": "True to include the sender of the campaign, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "options": {
            "title": "AdvancedReportSendsOptions",
            "description": "Columns of the report",
            "properties": {
              "notify": {
                "description": "Array of user IDs to notify",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                }
              }
            },
            "type": "object"
          },
          "callback_url": {
            "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AdvancedReportSendsColumns": {
        "title": "AdvancedReportSendsColumns",
        "description": "Columns of the report",
        "required": [
          "list_base_fields",
          "list_extra_fields",
          "campaign_fields"
        ],
        "properties": {
          "list_base_fields": {
            "description": "Array of base fields",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "list_extra_fields": {
            "title": "AdvancedReportListExtraFields",
            "required": [
              "list_id",
              "fields"
            ],
            "type": "array",
            "items": {
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "fields": {
                  "description": "Array of extra field IDs",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "type": "object"
            }
          },
          "campaign_fields": {
            "title": "SendsCampaignFields",
            "description": "Campaign fields to include in the report",
            "required": [
              "internal_name",
              "campaign_hash",
              "group",
              "channel",
              "type",
              "sender"
            ],
            "properties": {
              "internal_name": {
                "description": "True to include the internal name of the campaign, false otherwise",
                "type": "boolean"
              },
              "campaign_hash": {
                "description": "True to include the hash of the campaign, false otherwise",
                "type": "boolean"
              },
              "send_date": {
                "description": "True to include the send date of the campaign, false otherwise",
                "type": "boolean"
              },
              "group": {
                "description": "True to include the group of the campaign, false otherwise",
                "type": "boolean"
              },
              "channel": {
                "description": "True to include the channel of the campaign, false otherwise",
                "type": "boolean"
              },
              "type": {
                "description": "True to include the type of the campaign, false otherwise",
                "type": "boolean"
              },
              "sender": {
                "description": "True to include the sender of the campaign, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "SendsCampaignFields": {
        "title": "SendsCampaignFields",
        "description": "Campaign fields to include in the report",
        "required": [
          "internal_name",
          "campaign_hash",
          "group",
          "channel",
          "type",
          "sender"
        ],
        "properties": {
          "internal_name": {
            "description": "True to include the internal name of the campaign, false otherwise",
            "type": "boolean"
          },
          "campaign_hash": {
            "description": "True to include the hash of the campaign, false otherwise",
            "type": "boolean"
          },
          "send_date": {
            "description": "True to include the send date of the campaign, false otherwise",
            "type": "boolean"
          },
          "group": {
            "description": "True to include the group of the campaign, false otherwise",
            "type": "boolean"
          },
          "channel": {
            "description": "True to include the channel of the campaign, false otherwise",
            "type": "boolean"
          },
          "type": {
            "description": "True to include the type of the campaign, false otherwise",
            "type": "boolean"
          },
          "sender": {
            "description": "True to include the sender of the campaign, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "AdvancedReportSendsOptions": {
        "title": "AdvancedReportSendsOptions",
        "description": "Columns of the report",
        "properties": {
          "notify": {
            "description": "Array of user IDs to notify",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        },
        "type": "object"
      },
      "GenerateSmsBouncesReport": {
        "title": "GenerateSmsBouncesReport",
        "description": "Generate SMS bounces report schema",
        "required": [
          "title",
          "range",
          "campaigns",
          "columns",
          "options"
        ],
        "properties": {
          "title": {
            "description": "Advanced report title",
            "type": "string",
            "example": "Report title"
          },
          "range": {
            "title": "AdvancedReportRange",
            "description": "Time range of the report",
            "required": [
              "start",
              "end"
            ],
            "properties": {
              "start": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "end": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          },
          "campaigns": {
            "title": "AdvancedReportCampaigns",
            "description": "Campaigns of the report",
            "type": "array",
            "items": {
              "title": "AdvancedReportCampaignsObject",
              "type": "object",
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "all": "#/components/schemas/ReportCampaignsAll",
                  "last": "#/components/schemas/ReportCampaignsLast",
                  "specific": "#/components/schemas/ReportCampaignsSpecific",
                  "group": "#/components/schemas/ReportCampaignsGroup"
                }
              },
              "oneOf": [
                {
                  "title": "ReportCampaignsAll",
                  "required": [
                    "list_id",
                    "type"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "all"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsLast",
                  "required": [
                    "list_id",
                    "type"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "last"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsSpecific",
                  "required": [
                    "list_id",
                    "type",
                    "data"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "specific"
                      ]
                    },
                    "data": {
                      "description": "Array of campaign hashes",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsGroup",
                  "required": [
                    "list_id",
                    "type",
                    "data"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "group"
                      ]
                    },
                    "data": {
                      "description": "Array of campaign groups",
                      "type": "array",
                      "items": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      }
                    }
                  },
                  "type": "object"
                }
              ]
            }
          },
          "columns": {
            "title": "AdvancedReportSmsBouncesColumns",
            "description": "Columns of the report",
            "required": [
              "list_base_fields",
              "list_extra_fields",
              "list_stats_fields",
              "campaign_fields"
            ],
            "properties": {
              "list_base_fields": {
                "description": "Array of base fields",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "list_extra_fields": {
                "title": "AdvancedReportListExtraFields",
                "required": [
                  "list_id",
                  "fields"
                ],
                "type": "array",
                "items": {
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "fields": {
                      "description": "Array of extra field IDs",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                }
              },
              "list_stats_fields": {
                "title": "SmsBouncesListStatsFields",
                "description": "List stats fields to include in the report",
                "required": [
                  "delivery_answer",
                  "delivery_date"
                ],
                "properties": {
                  "delivery_answer": {
                    "description": "True to include delivery answer, false otherwise",
                    "type": "boolean"
                  },
                  "delivery_date": {
                    "description": "True to include delivery date, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "campaign_fields": {
                "title": "SmsBouncesCampaignFields",
                "description": "Campaign fields to include in the report",
                "required": [
                  "internal_name",
                  "campaign_hash",
                  "send_date",
                  "sender"
                ],
                "properties": {
                  "internal_name": {
                    "description": "True to include the internal name of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "campaign_hash": {
                    "description": "True to include the hash of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "send_date": {
                    "description": "True to include the send date of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "group": {
                    "description": "True to include the group of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "channel": {
                    "description": "True to include the channel of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "type": {
                    "description": "True to include the type of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "sender": {
                    "description": "True to include the sender of the campaign, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "options": {
            "title": "AdvancedReportSmsBouncesOptions",
            "description": "Columns of the report",
            "properties": {
              "notify": {
                "description": "Array of user IDs to notify",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                }
              },
              "grouping": {
                "description": "Field to group data",
                "type": "string",
                "default": "by_campaign",
                "enum": [
                  "by_contact",
                  "by_campaign"
                ]
              }
            },
            "type": "object"
          },
          "callback_url": {
            "description": "URL which will receive the information of the report<a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AdvancedReportSmsBouncesColumns": {
        "title": "AdvancedReportSmsBouncesColumns",
        "description": "Columns of the report",
        "required": [
          "list_base_fields",
          "list_extra_fields",
          "list_stats_fields",
          "campaign_fields"
        ],
        "properties": {
          "list_base_fields": {
            "description": "Array of base fields",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "list_extra_fields": {
            "title": "AdvancedReportListExtraFields",
            "required": [
              "list_id",
              "fields"
            ],
            "type": "array",
            "items": {
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "fields": {
                  "description": "Array of extra field IDs",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "type": "object"
            }
          },
          "list_stats_fields": {
            "title": "SmsBouncesListStatsFields",
            "description": "List stats fields to include in the report",
            "required": [
              "delivery_answer",
              "delivery_date"
            ],
            "properties": {
              "delivery_answer": {
                "description": "True to include delivery answer, false otherwise",
                "type": "boolean"
              },
              "delivery_date": {
                "description": "True to include delivery date, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "campaign_fields": {
            "title": "SmsBouncesCampaignFields",
            "description": "Campaign fields to include in the report",
            "required": [
              "internal_name",
              "campaign_hash",
              "send_date",
              "sender"
            ],
            "properties": {
              "internal_name": {
                "description": "True to include the internal name of the campaign, false otherwise",
                "type": "boolean"
              },
              "campaign_hash": {
                "description": "True to include the hash of the campaign, false otherwise",
                "type": "boolean"
              },
              "send_date": {
                "description": "True to include the send date of the campaign, false otherwise",
                "type": "boolean"
              },
              "group": {
                "description": "True to include the group of the campaign, false otherwise",
                "type": "boolean"
              },
              "channel": {
                "description": "True to include the channel of the campaign, false otherwise",
                "type": "boolean"
              },
              "type": {
                "description": "True to include the type of the campaign, false otherwise",
                "type": "boolean"
              },
              "sender": {
                "description": "True to include the sender of the campaign, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "SmsBouncesListStatsFields": {
        "title": "SmsBouncesListStatsFields",
        "description": "List stats fields to include in the report",
        "required": [
          "delivery_answer",
          "delivery_date"
        ],
        "properties": {
          "delivery_answer": {
            "description": "True to include delivery answer, false otherwise",
            "type": "boolean"
          },
          "delivery_date": {
            "description": "True to include delivery date, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "SmsBouncesCampaignFields": {
        "title": "SmsBouncesCampaignFields",
        "description": "Campaign fields to include in the report",
        "required": [
          "internal_name",
          "campaign_hash",
          "send_date",
          "sender"
        ],
        "properties": {
          "internal_name": {
            "description": "True to include the internal name of the campaign, false otherwise",
            "type": "boolean"
          },
          "campaign_hash": {
            "description": "True to include the hash of the campaign, false otherwise",
            "type": "boolean"
          },
          "send_date": {
            "description": "True to include the send date of the campaign, false otherwise",
            "type": "boolean"
          },
          "group": {
            "description": "True to include the group of the campaign, false otherwise",
            "type": "boolean"
          },
          "channel": {
            "description": "True to include the channel of the campaign, false otherwise",
            "type": "boolean"
          },
          "type": {
            "description": "True to include the type of the campaign, false otherwise",
            "type": "boolean"
          },
          "sender": {
            "description": "True to include the sender of the campaign, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "AdvancedReportSmsBouncesOptions": {
        "title": "AdvancedReportSmsBouncesOptions",
        "description": "Columns of the report",
        "properties": {
          "notify": {
            "description": "Array of user IDs to notify",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          "grouping": {
            "description": "Field to group data",
            "type": "string",
            "default": "by_campaign",
            "enum": [
              "by_contact",
              "by_campaign"
            ]
          }
        },
        "type": "object"
      },
      "GenerateSmsEventsReport": {
        "title": "GenerateSmsEventsReport",
        "description": "Generate SMS events report schema",
        "required": [
          "title",
          "range",
          "campaigns",
          "columns",
          "options"
        ],
        "properties": {
          "title": {
            "description": "Advanced report title",
            "type": "string",
            "example": "Report title"
          },
          "range": {
            "title": "AdvancedReportRange",
            "description": "Time range of the report",
            "required": [
              "start",
              "end"
            ],
            "properties": {
              "start": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "end": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          },
          "campaigns": {
            "title": "AdvancedReportCampaigns",
            "description": "Campaigns of the report",
            "type": "array",
            "items": {
              "title": "AdvancedReportCampaignsObject",
              "type": "object",
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "all": "#/components/schemas/ReportCampaignsAll",
                  "last": "#/components/schemas/ReportCampaignsLast",
                  "specific": "#/components/schemas/ReportCampaignsSpecific",
                  "group": "#/components/schemas/ReportCampaignsGroup"
                }
              },
              "oneOf": [
                {
                  "title": "ReportCampaignsAll",
                  "required": [
                    "list_id",
                    "type"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "all"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsLast",
                  "required": [
                    "list_id",
                    "type"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "last"
                      ]
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsSpecific",
                  "required": [
                    "list_id",
                    "type",
                    "data"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "specific"
                      ]
                    },
                    "data": {
                      "description": "Array of campaign hashes",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "ReportCampaignsGroup",
                  "required": [
                    "list_id",
                    "type",
                    "data"
                  ],
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "group"
                      ]
                    },
                    "data": {
                      "description": "Array of campaign groups",
                      "type": "array",
                      "items": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "example": 1
                      }
                    }
                  },
                  "type": "object"
                }
              ]
            }
          },
          "columns": {
            "title": "AdvancedReportSmsEventsColumns",
            "description": "Columns of the report",
            "required": [
              "list_base_fields",
              "list_extra_fields",
              "list_stats_fields",
              "campaign_fields"
            ],
            "properties": {
              "list_base_fields": {
                "description": "Array of base fields",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "list_extra_fields": {
                "title": "AdvancedReportListExtraFields",
                "required": [
                  "list_id",
                  "fields"
                ],
                "type": "array",
                "items": {
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "fields": {
                      "description": "Array of extra field IDs",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                }
              },
              "list_stats_fields": {
                "title": "SmsEventsListStatsFields",
                "description": "List stats fields to include in the report",
                "required": [
                  "delivery_answer",
                  "delivery_date"
                ],
                "properties": {
                  "delivery_answer": {
                    "description": "True to include delivery answer, false otherwise",
                    "type": "boolean"
                  },
                  "delivery_date": {
                    "description": "True to include delivery date, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "campaign_fields": {
                "title": "SmsEventsCampaignFields",
                "description": "Campaign fields to include in the report",
                "required": [
                  "internal_name",
                  "campaign_hash",
                  "send_date",
                  "group",
                  "sender"
                ],
                "properties": {
                  "internal_name": {
                    "description": "True to include the internal name of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "campaign_hash": {
                    "description": "True to include the hash of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "send_date": {
                    "description": "True to include the send date of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "group": {
                    "description": "True to include the group of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "channel": {
                    "description": "True to include the channel of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "type": {
                    "description": "True to include the type of the campaign, false otherwise",
                    "type": "boolean"
                  },
                  "sender": {
                    "description": "True to include the sender of the campaign, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "options": {
            "title": "AdvancedReportSmsEventsOptions",
            "description": "Columns of the report",
            "properties": {
              "notify": {
                "description": "Array of user IDs to notify",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                }
              }
            },
            "type": "object"
          },
          "callback_url": {
            "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AdvancedReportSmsEventsColumns": {
        "title": "AdvancedReportSmsEventsColumns",
        "description": "Columns of the report",
        "required": [
          "list_base_fields",
          "list_extra_fields",
          "list_stats_fields",
          "campaign_fields"
        ],
        "properties": {
          "list_base_fields": {
            "description": "Array of base fields",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "list_extra_fields": {
            "title": "AdvancedReportListExtraFields",
            "required": [
              "list_id",
              "fields"
            ],
            "type": "array",
            "items": {
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "fields": {
                  "description": "Array of extra field IDs",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "type": "object"
            }
          },
          "list_stats_fields": {
            "title": "SmsEventsListStatsFields",
            "description": "List stats fields to include in the report",
            "required": [
              "delivery_answer",
              "delivery_date"
            ],
            "properties": {
              "delivery_answer": {
                "description": "True to include delivery answer, false otherwise",
                "type": "boolean"
              },
              "delivery_date": {
                "description": "True to include delivery date, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "campaign_fields": {
            "title": "SmsEventsCampaignFields",
            "description": "Campaign fields to include in the report",
            "required": [
              "internal_name",
              "campaign_hash",
              "send_date",
              "group",
              "sender"
            ],
            "properties": {
              "internal_name": {
                "description": "True to include the internal name of the campaign, false otherwise",
                "type": "boolean"
              },
              "campaign_hash": {
                "description": "True to include the hash of the campaign, false otherwise",
                "type": "boolean"
              },
              "send_date": {
                "description": "True to include the send date of the campaign, false otherwise",
                "type": "boolean"
              },
              "group": {
                "description": "True to include the group of the campaign, false otherwise",
                "type": "boolean"
              },
              "channel": {
                "description": "True to include the channel of the campaign, false otherwise",
                "type": "boolean"
              },
              "type": {
                "description": "True to include the type of the campaign, false otherwise",
                "type": "boolean"
              },
              "sender": {
                "description": "True to include the sender of the campaign, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "SmsEventsListStatsFields": {
        "title": "SmsEventsListStatsFields",
        "description": "List stats fields to include in the report",
        "required": [
          "delivery_answer",
          "delivery_date"
        ],
        "properties": {
          "delivery_answer": {
            "description": "True to include delivery answer, false otherwise",
            "type": "boolean"
          },
          "delivery_date": {
            "description": "True to include delivery date, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "SmsEventsCampaignFields": {
        "title": "SmsEventsCampaignFields",
        "description": "Campaign fields to include in the report",
        "required": [
          "internal_name",
          "campaign_hash",
          "send_date",
          "group",
          "sender"
        ],
        "properties": {
          "internal_name": {
            "description": "True to include the internal name of the campaign, false otherwise",
            "type": "boolean"
          },
          "campaign_hash": {
            "description": "True to include the hash of the campaign, false otherwise",
            "type": "boolean"
          },
          "send_date": {
            "description": "True to include the send date of the campaign, false otherwise",
            "type": "boolean"
          },
          "group": {
            "description": "True to include the group of the campaign, false otherwise",
            "type": "boolean"
          },
          "channel": {
            "description": "True to include the channel of the campaign, false otherwise",
            "type": "boolean"
          },
          "type": {
            "description": "True to include the type of the campaign, false otherwise",
            "type": "boolean"
          },
          "sender": {
            "description": "True to include the sender of the campaign, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "AdvancedReportSmsEventsOptions": {
        "title": "AdvancedReportSmsEventsOptions",
        "description": "Columns of the report",
        "properties": {
          "notify": {
            "description": "Array of user IDs to notify",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        },
        "type": "object"
      },
      "GenerateSubscriptionsReport": {
        "title": "GenerateSubscriptionsReport",
        "description": "Generate subscriptions report schema",
        "required": [
          "title",
          "range",
          "lists",
          "columns",
          "options"
        ],
        "properties": {
          "title": {
            "description": "Advanced report title",
            "type": "string",
            "example": "Report title"
          },
          "range": {
            "title": "AdvancedReportRange",
            "description": "Time range of the report",
            "required": [
              "start",
              "end"
            ],
            "properties": {
              "start": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "end": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          },
          "lists": {
            "description": "Array of List Id's",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "readOnly": true,
              "example": 1
            }
          },
          "columns": {
            "title": "AdvancedReportSubscriptionsColumns",
            "description": "Columns of the report",
            "required": [
              "list_base_fields",
              "list_extra_fields",
              "list_stats_fields"
            ],
            "properties": {
              "list_base_fields": {
                "description": "Array of base fields",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "list_extra_fields": {
                "title": "AdvancedReportListExtraFields",
                "required": [
                  "list_id",
                  "fields"
                ],
                "type": "array",
                "items": {
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "fields": {
                      "description": "Array of extra field IDs",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                }
              },
              "list_stats_fields": {
                "title": "SubscriptionsListStatsFields",
                "description": "List stats fields to include in the report",
                "required": [
                  "subscription_method",
                  "subscription_src"
                ],
                "properties": {
                  "subscription_method": {
                    "description": "True to include subscription method, false otherwise",
                    "type": "boolean"
                  },
                  "subscription_src": {
                    "description": "True to include subscription source, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "options": {
            "title": "AdvancedReportSubscriptionsOptions",
            "description": "Columns of the report",
            "properties": {
              "notify": {
                "description": "Array of user IDs to notify",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                }
              }
            },
            "type": "object"
          },
          "callback_url": {
            "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AdvancedReportSubscriptionsColumns": {
        "title": "AdvancedReportSubscriptionsColumns",
        "description": "Columns of the report",
        "required": [
          "list_base_fields",
          "list_extra_fields",
          "list_stats_fields"
        ],
        "properties": {
          "list_base_fields": {
            "description": "Array of base fields",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "list_extra_fields": {
            "title": "AdvancedReportListExtraFields",
            "required": [
              "list_id",
              "fields"
            ],
            "type": "array",
            "items": {
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "fields": {
                  "description": "Array of extra field IDs",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "type": "object"
            }
          },
          "list_stats_fields": {
            "title": "SubscriptionsListStatsFields",
            "description": "List stats fields to include in the report",
            "required": [
              "subscription_method",
              "subscription_src"
            ],
            "properties": {
              "subscription_method": {
                "description": "True to include subscription method, false otherwise",
                "type": "boolean"
              },
              "subscription_src": {
                "description": "True to include subscription source, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "SubscriptionsListStatsFields": {
        "title": "SubscriptionsListStatsFields",
        "description": "List stats fields to include in the report",
        "required": [
          "subscription_method",
          "subscription_src"
        ],
        "properties": {
          "subscription_method": {
            "description": "True to include subscription method, false otherwise",
            "type": "boolean"
          },
          "subscription_src": {
            "description": "True to include subscription source, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "AdvancedReportSubscriptionsOptions": {
        "title": "AdvancedReportSubscriptionsOptions",
        "description": "Columns of the report",
        "properties": {
          "notify": {
            "description": "Array of user IDs to notify",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        },
        "type": "object"
      },
      "GenerateUnsubscriptionsReport": {
        "title": "GenerateUnsubscriptionsReport",
        "description": "Generate unsubscriptions report schema",
        "required": [
          "title",
          "range",
          "lists",
          "columns",
          "options"
        ],
        "properties": {
          "title": {
            "description": "Advanced report title",
            "type": "string",
            "example": "Report title"
          },
          "range": {
            "title": "AdvancedReportRange",
            "description": "Time range of the report",
            "required": [
              "start",
              "end"
            ],
            "properties": {
              "start": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "end": {
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          },
          "lists": {
            "description": "Array of List Id's",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "readOnly": true,
              "example": 1
            }
          },
          "columns": {
            "title": "AdvancedReportUnsubscriptionsColumns",
            "description": "Columns of the report",
            "required": [
              "list_base_fields",
              "list_extra_fields",
              "list_stats_fields"
            ],
            "properties": {
              "list_base_fields": {
                "description": "Array of base fields",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "list_extra_fields": {
                "title": "AdvancedReportListExtraFields",
                "required": [
                  "list_id",
                  "fields"
                ],
                "type": "array",
                "items": {
                  "properties": {
                    "list_id": {
                      "title": "ID",
                      "type": "integer",
                      "minimum": 1,
                      "example": 1
                    },
                    "fields": {
                      "description": "Array of extra field IDs",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "type": "object"
                }
              },
              "list_stats_fields": {
                "title": "UnsubscriptionsListStatsFields",
                "description": "List stats fields to include in the report",
                "required": [
                  "unsubscription_method",
                  "unsubscription_src",
                  "unsubscription_date"
                ],
                "properties": {
                  "unsubscription_method": {
                    "description": "True to include unsubscription method, false otherwise",
                    "type": "boolean"
                  },
                  "unsubscription_src": {
                    "description": "True to include unsubscription source, false otherwise",
                    "type": "boolean"
                  },
                  "unsubscription_date": {
                    "description": "True to include unsubscription date, false otherwise",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "options": {
            "title": "AdvancedReportUnsubscriptionsOptions",
            "description": "Columns of the report",
            "properties": {
              "notify": {
                "description": "Array of user IDs to notify",
                "type": "array",
                "items": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                }
              }
            },
            "type": "object"
          },
          "callback_url": {
            "description": "URL which will receive the information of the report <a href='/usecases/callbacks/' target='_blank'>[Go to callback documentation]</a>",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AdvancedReportUnsubscriptionsColumns": {
        "title": "AdvancedReportUnsubscriptionsColumns",
        "description": "Columns of the report",
        "required": [
          "list_base_fields",
          "list_extra_fields",
          "list_stats_fields"
        ],
        "properties": {
          "list_base_fields": {
            "description": "Array of base fields",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "list_extra_fields": {
            "title": "AdvancedReportListExtraFields",
            "required": [
              "list_id",
              "fields"
            ],
            "type": "array",
            "items": {
              "properties": {
                "list_id": {
                  "title": "ID",
                  "type": "integer",
                  "minimum": 1,
                  "example": 1
                },
                "fields": {
                  "description": "Array of extra field IDs",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "type": "object"
            }
          },
          "list_stats_fields": {
            "title": "UnsubscriptionsListStatsFields",
            "description": "List stats fields to include in the report",
            "required": [
              "unsubscription_method",
              "unsubscription_src",
              "unsubscription_date"
            ],
            "properties": {
              "unsubscription_method": {
                "description": "True to include unsubscription method, false otherwise",
                "type": "boolean"
              },
              "unsubscription_src": {
                "description": "True to include unsubscription source, false otherwise",
                "type": "boolean"
              },
              "unsubscription_date": {
                "description": "True to include unsubscription date, false otherwise",
                "type": "boolean"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "UnsubscriptionsListStatsFields": {
        "title": "UnsubscriptionsListStatsFields",
        "description": "List stats fields to include in the report",
        "required": [
          "unsubscription_method",
          "unsubscription_src",
          "unsubscription_date"
        ],
        "properties": {
          "unsubscription_method": {
            "description": "True to include unsubscription method, false otherwise",
            "type": "boolean"
          },
          "unsubscription_src": {
            "description": "True to include unsubscription source, false otherwise",
            "type": "boolean"
          },
          "unsubscription_date": {
            "description": "True to include unsubscription date, false otherwise",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "AdvancedReportUnsubscriptionsOptions": {
        "title": "AdvancedReportUnsubscriptionsOptions",
        "description": "Columns of the report",
        "properties": {
          "notify": {
            "description": "Array of user IDs to notify",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        },
        "type": "object"
      },
      "WebPushStats": {
        "title": "WebPushStats",
        "description": "Webpush report stats schema",
        "properties": {
          "opens": {
            "description": "Total number of opened messages",
            "type": "integer",
            "minimum": 0
          },
          "sends": {
            "description": "Total number of sent messages",
            "type": "integer",
            "minimum": 0,
            "example": 1
          },
          "clicks": {
            "description": "Total number of clicked messages",
            "type": "integer",
            "minimum": 0,
            "example": 0
          },
          "bounces": {
            "description": "Total number of bounces",
            "type": "integer",
            "minimum": 0,
            "example": 0
          }
        },
        "type": "object"
      },
      "WebPushReport": {
        "title": "Webpush Report",
        "description": "Webpush report schema",
        "properties": {
          "campaign_hash": {
            "title": "Hash",
            "type": "string",
            "pattern": "[a-zA-Z0-9_-]*",
            "readOnly": true
          },
          "overall": {
            "title": "WebPushStats",
            "description": "Webpush report stats schema",
            "properties": {
              "opens": {
                "description": "Total number of opened messages",
                "type": "integer",
                "minimum": 0
              },
              "sends": {
                "description": "Total number of sent messages",
                "type": "integer",
                "minimum": 0,
                "example": 1
              },
              "clicks": {
                "description": "Total number of clicked messages",
                "type": "integer",
                "minimum": 0,
                "example": 0
              },
              "bounces": {
                "description": "Total number of bounces",
                "type": "integer",
                "minimum": 0,
                "example": 0
              }
            },
            "type": "object"
          },
          "devices": {
            "description": "Stats of the campaign for each device",
            "type": "array",
            "items": {
              "allOf": [
                {
                  "properties": {
                    "device": {
                      "description": "Device type",
                      "type": "string",
                      "example": "desktop"
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "WebPushStats",
                  "description": "Webpush report stats schema",
                  "properties": {
                    "opens": {
                      "description": "Total number of opened messages",
                      "type": "integer",
                      "minimum": 0
                    },
                    "sends": {
                      "description": "Total number of sent messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "clicks": {
                      "description": "Total number of clicked messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 0
                    },
                    "bounces": {
                      "description": "Total number of bounces",
                      "type": "integer",
                      "minimum": 0,
                      "example": 0
                    }
                  },
                  "type": "object"
                }
              ]
            }
          },
          "operating_systems": {
            "description": "Stats of the campaign for each operating system",
            "type": "array",
            "items": {
              "properties": {
                "operating_system": {
                  "description": "Operating system name",
                  "type": "string",
                  "example": "macos"
                },
                "versions": {
                  "description": "Collection of operating system versions",
                  "type": "array",
                  "items": {
                    "allOf": [
                      {
                        "properties": {
                          "version": {
                            "description": "Operating system version",
                            "type": "string",
                            "example": "10.126"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "WebPushStats",
                        "description": "Webpush report stats schema",
                        "properties": {
                          "opens": {
                            "description": "Total number of opened messages",
                            "type": "integer",
                            "minimum": 0
                          },
                          "sends": {
                            "description": "Total number of sent messages",
                            "type": "integer",
                            "minimum": 0,
                            "example": 1
                          },
                          "clicks": {
                            "description": "Total number of clicked messages",
                            "type": "integer",
                            "minimum": 0,
                            "example": 0
                          },
                          "bounces": {
                            "description": "Total number of bounces",
                            "type": "integer",
                            "minimum": 0,
                            "example": 0
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                }
              },
              "type": "object"
            }
          },
          "browsers": {
            "description": "Stats of the campaign for each browser",
            "type": "array",
            "items": {
              "properties": {
                "browser": {
                  "description": "Browser name",
                  "type": "string",
                  "example": "Chrome"
                },
                "versions": {
                  "description": "Collection of browser versions",
                  "type": "array",
                  "items": {
                    "allOf": [
                      {
                        "properties": {
                          "version": {
                            "description": "Browser version",
                            "type": "string",
                            "example": "64.0328214"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "title": "WebPushStats",
                        "description": "Webpush report stats schema",
                        "properties": {
                          "opens": {
                            "description": "Total number of opened messages",
                            "type": "integer",
                            "minimum": 0
                          },
                          "sends": {
                            "description": "Total number of sent messages",
                            "type": "integer",
                            "minimum": 0,
                            "example": 1
                          },
                          "clicks": {
                            "description": "Total number of clicked messages",
                            "type": "integer",
                            "minimum": 0,
                            "example": 0
                          },
                          "bounces": {
                            "description": "Total number of bounces",
                            "type": "integer",
                            "minimum": 0,
                            "example": 0
                          }
                        },
                        "type": "object"
                      }
                    ]
                  }
                }
              },
              "type": "object"
            }
          },
          "url": {
            "description": "Stats of the campaign for each url",
            "type": "array",
            "items": {
              "allOf": [
                {
                  "properties": {
                    "url": {
                      "description": "Url information",
                      "type": "string",
                      "example": "https://e-goi.com"
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "WebPushStats",
                  "description": "Webpush report stats schema",
                  "properties": {
                    "opens": {
                      "description": "Total number of opened messages",
                      "type": "integer",
                      "minimum": 0
                    },
                    "sends": {
                      "description": "Total number of sent messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 1
                    },
                    "clicks": {
                      "description": "Total number of clicked messages",
                      "type": "integer",
                      "minimum": 0,
                      "example": 0
                    },
                    "bounces": {
                      "description": "Total number of bounces",
                      "type": "integer",
                      "minimum": 0,
                      "example": 0
                    }
                  },
                  "type": "object"
                }
              ]
            }
          }
        },
        "type": "object"
      },
      "AbstractSegment": {
        "title": "Abstract Segment",
        "description": "Abstract segment schema",
        "properties": {
          "segment_id": {
            "type": "string"
          },
          "name": {
            "description": "Name of the segment",
            "type": "string"
          },
          "type": {
            "description": "Type of segment",
            "type": "string",
            "enum": [
              "auto",
              "saved",
              "tag"
            ],
            "readOnly": true
          }
        },
        "type": "object"
      },
      "AutomaticSegment": {
        "title": "AutomaticSegment",
        "description": "Automatic segment schema",
        "allOf": [
          {
            "properties": {
              "type": {
                "description": "Type of segment",
                "type": "string",
                "enum": [
                  "auto"
                ],
                "readOnly": true
              }
            },
            "type": "object"
          },
          {
            "title": "Abstract Segment",
            "description": "Abstract segment schema",
            "properties": {
              "segment_id": {
                "type": "string"
              },
              "name": {
                "description": "Name of the segment",
                "type": "string"
              },
              "type": {
                "description": "Type of segment",
                "type": "string",
                "enum": [
                  "auto",
                  "saved",
                  "tag"
                ],
                "readOnly": true
              }
            },
            "type": "object"
          }
        ]
      },
      "SavedSegment": {
        "description": "Saved segment schema",
        "required": [
          "name",
          "match",
          "rules"
        ],
        "properties": {
          "name": {
            "description": "Segment name",
            "type": "string"
          },
          "match": {
            "description": "Boolean operator for combining rules",
            "type": "string",
            "enum": [
              "all",
              "any"
            ]
          },
          "invert": {
            "description": "Invert the segment match",
            "type": "boolean"
          },
          "rules": {
            "description": "Array of segment rules",
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "title": "Single value operators",
                  "description": "Rule with string value",
                  "required": [
                    "field_id",
                    "operator",
                    "value"
                  ],
                  "properties": {
                    "field_id": {
                      "description": "Field Id obtained from Get All Fields Method",
                      "type": "string"
                    },
                    "operator": {
                      "description": "Operator to apply to the field:\n *  - `eq`: Equal to\n *  - `ne`: Not equal to\n *  - `gt`: Greater than\n *  - `ge`: Greater than or equal to\n *  - `lt`: Less than\n *  - `le`: Less than or equal to\n *  - `ex`: Contains substring\n *  - `nx`: Does not contain substring\n *  - `he`: Starts with\n *  - `nhe`: Does not start with\n *  - `ew`: Ends with\n *  - `new`: Does not end with",
                      "type": "string",
                      "enum": [
                        "eq",
                        "ne",
                        "gt",
                        "ge",
                        "lt",
                        "le",
                        "ex",
                        "nx",
                        "he",
                        "nhe",
                        "ew",
                        "new"
                      ]
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                {
                  "title": "Array operators",
                  "description": "Rule with array value",
                  "required": [
                    "field_id",
                    "operator",
                    "value"
                  ],
                  "properties": {
                    "field_id": {
                      "description": "Field Id obtained from Get All Fields Method",
                      "type": "string"
                    },
                    "operator": {
                      "description": "Operator to apply to the field:\n *   - `bt`: Between (expects array of two values for date format fields)",
                      "type": "string",
                      "enum": [
                        "bt"
                      ]
                    },
                    "value": {
                      "description": "Array of two values (Y-m-d) for 'between' operator",
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "maxItems": 2,
                      "minItems": 2,
                      "example": [
                        "2024-01-01",
                        "2024-12-31"
                      ]
                    }
                  },
                  "type": "object"
                }
              ]
            }
          }
        },
        "type": "object"
      },
      "TagSegment": {
        "title": "Tag Segment",
        "description": "Tag segment schema",
        "required": [
          "segment_id"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "description": "Type of segment",
                "type": "string",
                "enum": [
                  "tag"
                ],
                "readOnly": true
              },
              "created": {
                "readOnly": true,
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              },
              "updated": {
                "readOnly": true,
                "allOf": [
                  {
                    "title": "date_time",
                    "description": "The date and time",
                    "type": "string",
                    "format": "date-time",
                    "example": "YYYY-MM-DD hh:mm:ss"
                  }
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Abstract Segment",
            "description": "Abstract segment schema",
            "properties": {
              "segment_id": {
                "type": "string"
              },
              "name": {
                "description": "Name of the segment",
                "type": "string"
              },
              "type": {
                "description": "Type of segment",
                "type": "string",
                "enum": [
                  "auto",
                  "saved",
                  "tag"
                ],
                "readOnly": true
              }
            },
            "type": "object"
          }
        ]
      },
      "Segment": {
        "title": "Segment",
        "description": "Segment schema",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "auto": "#/components/schemas/AutomaticSegment",
            "saved": "#/components/schemas/SavedSegment",
            "tag": "#/components/schemas/TagSegment"
          }
        },
        "oneOf": [
          {
            "title": "AutomaticSegment",
            "description": "Automatic segment schema",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "description": "Type of segment",
                    "type": "string",
                    "enum": [
                      "auto"
                    ],
                    "readOnly": true
                  }
                },
                "type": "object"
              },
              {
                "title": "Abstract Segment",
                "description": "Abstract segment schema",
                "properties": {
                  "segment_id": {
                    "type": "string"
                  },
                  "name": {
                    "description": "Name of the segment",
                    "type": "string"
                  },
                  "type": {
                    "description": "Type of segment",
                    "type": "string",
                    "enum": [
                      "auto",
                      "saved",
                      "tag"
                    ],
                    "readOnly": true
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "description": "Saved segment schema",
            "required": [
              "name",
              "match",
              "rules"
            ],
            "properties": {
              "name": {
                "description": "Segment name",
                "type": "string"
              },
              "match": {
                "description": "Boolean operator for combining rules",
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              },
              "invert": {
                "description": "Invert the segment match",
                "type": "boolean"
              },
              "rules": {
                "description": "Array of segment rules",
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "title": "Single value operators",
                      "description": "Rule with string value",
                      "required": [
                        "field_id",
                        "operator",
                        "value"
                      ],
                      "properties": {
                        "field_id": {
                          "description": "Field Id obtained from Get All Fields Method",
                          "type": "string"
                        },
                        "operator": {
                          "description": "Operator to apply to the field:\n *  - `eq`: Equal to\n *  - `ne`: Not equal to\n *  - `gt`: Greater than\n *  - `ge`: Greater than or equal to\n *  - `lt`: Less than\n *  - `le`: Less than or equal to\n *  - `ex`: Contains substring\n *  - `nx`: Does not contain substring\n *  - `he`: Starts with\n *  - `nhe`: Does not start with\n *  - `ew`: Ends with\n *  - `new`: Does not end with",
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "gt",
                            "ge",
                            "lt",
                            "le",
                            "ex",
                            "nx",
                            "he",
                            "nhe",
                            "ew",
                            "new"
                          ]
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "title": "Array operators",
                      "description": "Rule with array value",
                      "required": [
                        "field_id",
                        "operator",
                        "value"
                      ],
                      "properties": {
                        "field_id": {
                          "description": "Field Id obtained from Get All Fields Method",
                          "type": "string"
                        },
                        "operator": {
                          "description": "Operator to apply to the field:\n *   - `bt`: Between (expects array of two values for date format fields)",
                          "type": "string",
                          "enum": [
                            "bt"
                          ]
                        },
                        "value": {
                          "description": "Array of two values (Y-m-d) for 'between' operator",
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "maxItems": 2,
                          "minItems": 2,
                          "example": [
                            "2024-01-01",
                            "2024-12-31"
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "type": "object"
          },
          {
            "title": "Tag Segment",
            "description": "Tag segment schema",
            "required": [
              "segment_id"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "description": "Type of segment",
                    "type": "string",
                    "enum": [
                      "tag"
                    ],
                    "readOnly": true
                  },
                  "created": {
                    "readOnly": true,
                    "allOf": [
                      {
                        "title": "date_time",
                        "description": "The date and time",
                        "type": "string",
                        "format": "date-time",
                        "example": "YYYY-MM-DD hh:mm:ss"
                      }
                    ]
                  },
                  "updated": {
                    "readOnly": true,
                    "allOf": [
                      {
                        "title": "date_time",
                        "description": "The date and time",
                        "type": "string",
                        "format": "date-time",
                        "example": "YYYY-MM-DD hh:mm:ss"
                      }
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Abstract Segment",
                "description": "Abstract segment schema",
                "properties": {
                  "segment_id": {
                    "type": "string"
                  },
                  "name": {
                    "description": "Name of the segment",
                    "type": "string"
                  },
                  "type": {
                    "description": "Type of segment",
                    "type": "string",
                    "enum": [
                      "auto",
                      "saved",
                      "tag"
                    ],
                    "readOnly": true
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "DeleteSegmentsConflict": {
        "title": "DeleteSegmentsConflict",
        "description": "Error schema for delete segments conflicts",
        "type": "object",
        "allOf": [
          {
            "title": "BaseConflict",
            "properties": {
              "type": {
                "description": "RFC for status code definitions",
                "type": "string",
                "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
              },
              "title": {
                "description": "Error title",
                "type": "string",
                "enum": [
                  "Conflict"
                ]
              },
              "status": {
                "description": "Status code",
                "type": "integer",
                "example": 409
              },
              "detail": {
                "description": "Error detail",
                "type": "string",
                "example": "The request could not be completed due to a conflict with the current state of the target resource"
              }
            },
            "type": "object"
          }
        ],
        "oneOf": [
          {
            "title": "invalid_segment_type",
            "description": "Error schema for conflict when the segment type is invalid",
            "properties": {
              "errors": {
                "properties": {
                  "invalid_segment_type": {
                    "description": "Occurs when the segment type is invalid",
                    "type": "string",
                    "enum": [
                      "You can only delete segments of  type saved"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "used_in_automations",
            "description": "Error schema for conflict when the segment is being used in automations",
            "properties": {
              "errors": {
                "properties": {
                  "used_in_automations": {
                    "description": "Occurs when the segment is being used in automations",
                    "type": "string",
                    "enum": [
                      "Segment is being used in automations"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "used_in_recurring_messages",
            "description": "Error schema for conflict when the segment is being used in recurring campaigns",
            "properties": {
              "errors": {
                "properties": {
                  "used_in_recurring_messages": {
                    "description": "Occurs when the segment is being used in recurring campaigns",
                    "type": "string",
                    "enum": [
                      "Segment is being used in recurring campaigns"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "has_queued_campaigns",
            "description": "Error schema for conflict when there are campaigns using the segment",
            "properties": {
              "errors": {
                "properties": {
                  "has_queued_campaigns": {
                    "description": "Occurs when there are campaigns using the segment",
                    "type": "string",
                    "enum": [
                      "There are queued campaigns using this segment"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        ]
      },
      "deleteSegmentsConflictsErrors": {
        "title": "deleteSegmentsConflictsErrors",
        "oneOf": [
          {
            "title": "invalid_segment_type",
            "description": "Error schema for conflict when the segment type is invalid",
            "properties": {
              "errors": {
                "properties": {
                  "invalid_segment_type": {
                    "description": "Occurs when the segment type is invalid",
                    "type": "string",
                    "enum": [
                      "You can only delete segments of  type saved"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "used_in_automations",
            "description": "Error schema for conflict when the segment is being used in automations",
            "properties": {
              "errors": {
                "properties": {
                  "used_in_automations": {
                    "description": "Occurs when the segment is being used in automations",
                    "type": "string",
                    "enum": [
                      "Segment is being used in automations"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "used_in_recurring_messages",
            "description": "Error schema for conflict when the segment is being used in recurring campaigns",
            "properties": {
              "errors": {
                "properties": {
                  "used_in_recurring_messages": {
                    "description": "Occurs when the segment is being used in recurring campaigns",
                    "type": "string",
                    "enum": [
                      "Segment is being used in recurring campaigns"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "has_queued_campaigns",
            "description": "Error schema for conflict when there are campaigns using the segment",
            "properties": {
              "errors": {
                "properties": {
                  "has_queued_campaigns": {
                    "description": "Occurs when there are campaigns using the segment",
                    "type": "string",
                    "enum": [
                      "There are queued campaigns using this segment"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        ]
      },
      "invalid_segment_type": {
        "title": "invalid_segment_type",
        "description": "Error schema for conflict when the segment type is invalid",
        "properties": {
          "errors": {
            "properties": {
              "invalid_segment_type": {
                "description": "Occurs when the segment type is invalid",
                "type": "string",
                "enum": [
                  "You can only delete segments of  type saved"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "used_in_automations": {
        "title": "used_in_automations",
        "description": "Error schema for conflict when the segment is being used in automations",
        "properties": {
          "errors": {
            "properties": {
              "used_in_automations": {
                "description": "Occurs when the segment is being used in automations",
                "type": "string",
                "enum": [
                  "Segment is being used in automations"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "used_in_recurring_messages": {
        "title": "used_in_recurring_messages",
        "description": "Error schema for conflict when the segment is being used in recurring campaigns",
        "properties": {
          "errors": {
            "properties": {
              "used_in_recurring_messages": {
                "description": "Occurs when the segment is being used in recurring campaigns",
                "type": "string",
                "enum": [
                  "Segment is being used in recurring campaigns"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "has_queued_campaigns": {
        "title": "has_queued_campaigns",
        "description": "Error schema for conflict when there are campaigns using the segment",
        "properties": {
          "errors": {
            "properties": {
              "has_queued_campaigns": {
                "description": "Occurs when there are campaigns using the segment",
                "type": "string",
                "enum": [
                  "There are queued campaigns using this segment"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "AbstractCellphoneSender": {
        "title": "AbstractCellphoneSender",
        "description": "Abstract cellphone sender schema",
        "required": [
          "type"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "description": "Sender code type",
                "type": "string",
                "enum": [
                  "alpha_numeric",
                  "numeric"
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "Basic Sender",
            "description": "Basic sender schema",
            "required": [
              "sender_id"
            ],
            "properties": {
              "sender_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "readOnly": true,
                "example": 1
              },
              "status": {
                "description": "Status of the sender",
                "type": "string",
                "enum": [
                  "active",
                  "moderation",
                  "rejected"
                ],
                "readOnly": true,
                "example": "moderation"
              }
            },
            "type": "object"
          }
        ]
      },
      "NumericCellphoneSenderPost": {
        "title": "NumericCellphoneSenderPost",
        "description": "Numeric cellphone sender schema",
        "required": [
          "type",
          "cellphone"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "description": "Sender code type",
                "type": "string",
                "enum": [
                  "alpha_numeric",
                  "numeric"
                ]
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "cellphone": {
                "description": "Sender cellphone (country code followed by phone number, split by '-')",
                "type": "string",
                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                "example": "351-300404336"
              }
            },
            "type": "object"
          }
        ]
      },
      "NumericCellphoneSender": {
        "title": "NumericCellphoneSender",
        "description": "Numeric cellphone sender schema",
        "required": [
          "type",
          "cellphone"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "cellphone": {
                "description": "Sender cellphone (country code followed by phone number, split by '-')",
                "type": "string",
                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                "example": "351-300404336"
              }
            },
            "type": "object"
          },
          {
            "title": "AbstractCellphoneSender",
            "description": "Abstract cellphone sender schema",
            "required": [
              "type"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "description": "Sender code type",
                    "type": "string",
                    "enum": [
                      "alpha_numeric",
                      "numeric"
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Basic Sender",
                "description": "Basic sender schema",
                "required": [
                  "sender_id"
                ],
                "properties": {
                  "sender_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "readOnly": true,
                    "example": 1
                  },
                  "status": {
                    "description": "Status of the sender",
                    "type": "string",
                    "enum": [
                      "active",
                      "moderation",
                      "rejected"
                    ],
                    "readOnly": true,
                    "example": "moderation"
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "AlphanumericCellphoneSenderPost": {
        "title": "AlphanumericCellphoneSenderPost",
        "description": "Alphanumeric cellphone sender schema",
        "required": [
          "type",
          "cellphone",
          "file"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "description": "Sender code type",
                "type": "string",
                "enum": [
                  "alpha_numeric",
                  "numeric"
                ]
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "cellphone": {
                "description": "Sender cellphone name",
                "type": "string",
                "example": "Your company name"
              },
              "file": {
                "description": "Content of your sender file in base64",
                "type": "string",
                "format": "byte",
                "writeOnly": true
              }
            },
            "type": "object"
          }
        ]
      },
      "AlphanumericCellphoneSender": {
        "title": "AlphanumericCellphoneSender",
        "description": "Alphanumeric cellphone sender schema",
        "required": [
          "type",
          "cellphone",
          "file"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "cellphone": {
                "description": "Sender cellphone name",
                "type": "string",
                "example": "Your company name"
              },
              "file": {
                "description": "Content of your sender file in base64",
                "type": "string",
                "format": "byte",
                "writeOnly": true
              }
            },
            "type": "object"
          },
          {
            "title": "AbstractCellphoneSender",
            "description": "Abstract cellphone sender schema",
            "required": [
              "type"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "description": "Sender code type",
                    "type": "string",
                    "enum": [
                      "alpha_numeric",
                      "numeric"
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "Basic Sender",
                "description": "Basic sender schema",
                "required": [
                  "sender_id"
                ],
                "properties": {
                  "sender_id": {
                    "title": "ID",
                    "type": "integer",
                    "minimum": 1,
                    "readOnly": true,
                    "example": 1
                  },
                  "status": {
                    "description": "Status of the sender",
                    "type": "string",
                    "enum": [
                      "active",
                      "moderation",
                      "rejected"
                    ],
                    "readOnly": true,
                    "example": "moderation"
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "CellphoneSenderPost": {
        "title": "Cellphone Sender",
        "description": "Cellphone sender schema",
        "required": [
          "type"
        ],
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "alpha_numeric": "#/components/schemas/AlphanumericCellphoneSenderPost",
            "numeric": "#/components/schemas/NumericCellphoneSenderPost"
          }
        },
        "oneOf": [
          {
            "title": "AlphanumericCellphoneSenderPost",
            "description": "Alphanumeric cellphone sender schema",
            "required": [
              "type",
              "cellphone",
              "file"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "description": "Sender code type",
                    "type": "string",
                    "enum": [
                      "alpha_numeric",
                      "numeric"
                    ]
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "cellphone": {
                    "description": "Sender cellphone name",
                    "type": "string",
                    "example": "Your company name"
                  },
                  "file": {
                    "description": "Content of your sender file in base64",
                    "type": "string",
                    "format": "byte",
                    "writeOnly": true
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "NumericCellphoneSenderPost",
            "description": "Numeric cellphone sender schema",
            "required": [
              "type",
              "cellphone"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "description": "Sender code type",
                    "type": "string",
                    "enum": [
                      "alpha_numeric",
                      "numeric"
                    ]
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "cellphone": {
                    "description": "Sender cellphone (country code followed by phone number, split by '-')",
                    "type": "string",
                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                    "example": "351-300404336"
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "CellphoneSender": {
        "title": "Cellphone Sender",
        "description": "Cellphone sender schema",
        "required": [
          "type"
        ],
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "alpha_numeric": "#/components/schemas/AlphanumericCellphoneSender",
            "numeric": "#/components/schemas/NumericCellphoneSender"
          }
        },
        "oneOf": [
          {
            "title": "AlphanumericCellphoneSender",
            "description": "Alphanumeric cellphone sender schema",
            "required": [
              "type",
              "cellphone",
              "file"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "cellphone": {
                    "description": "Sender cellphone name",
                    "type": "string",
                    "example": "Your company name"
                  },
                  "file": {
                    "description": "Content of your sender file in base64",
                    "type": "string",
                    "format": "byte",
                    "writeOnly": true
                  }
                },
                "type": "object"
              },
              {
                "title": "AbstractCellphoneSender",
                "description": "Abstract cellphone sender schema",
                "required": [
                  "type"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "type": {
                        "description": "Sender code type",
                        "type": "string",
                        "enum": [
                          "alpha_numeric",
                          "numeric"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Basic Sender",
                    "description": "Basic sender schema",
                    "required": [
                      "sender_id"
                    ],
                    "properties": {
                      "sender_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "readOnly": true,
                        "example": 1
                      },
                      "status": {
                        "description": "Status of the sender",
                        "type": "string",
                        "enum": [
                          "active",
                          "moderation",
                          "rejected"
                        ],
                        "readOnly": true,
                        "example": "moderation"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            ]
          },
          {
            "title": "NumericCellphoneSender",
            "description": "Numeric cellphone sender schema",
            "required": [
              "type",
              "cellphone"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "cellphone": {
                    "description": "Sender cellphone (country code followed by phone number, split by '-')",
                    "type": "string",
                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                    "example": "351-300404336"
                  }
                },
                "type": "object"
              },
              {
                "title": "AbstractCellphoneSender",
                "description": "Abstract cellphone sender schema",
                "required": [
                  "type"
                ],
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "type": {
                        "description": "Sender code type",
                        "type": "string",
                        "enum": [
                          "alpha_numeric",
                          "numeric"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  {
                    "title": "Basic Sender",
                    "description": "Basic sender schema",
                    "required": [
                      "sender_id"
                    ],
                    "properties": {
                      "sender_id": {
                        "title": "ID",
                        "type": "integer",
                        "minimum": 1,
                        "readOnly": true,
                        "example": 1
                      },
                      "status": {
                        "description": "Status of the sender",
                        "type": "string",
                        "enum": [
                          "active",
                          "moderation",
                          "rejected"
                        ],
                        "readOnly": true,
                        "example": "moderation"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            ]
          }
        ]
      },
      "EmailSender": {
        "title": "Email Sender",
        "description": "Email sender schema",
        "required": [
          "name",
          "email"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "name": {
                "description": "Sender name",
                "type": "string",
                "example": "E-goi"
              },
              "email": {
                "description": "Sender email",
                "type": "string",
                "example": "example@e-goi.com"
              }
            },
            "type": "object"
          },
          {
            "title": "Basic Sender",
            "description": "Basic sender schema",
            "required": [
              "sender_id"
            ],
            "properties": {
              "sender_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "readOnly": true,
                "example": 1
              },
              "status": {
                "description": "Status of the sender",
                "type": "string",
                "enum": [
                  "active",
                  "moderation",
                  "rejected"
                ],
                "readOnly": true,
                "example": "moderation"
              }
            },
            "type": "object"
          }
        ]
      },
      "EmailSenderPost": {
        "title": "Email Sender",
        "description": "Email sender schema",
        "required": [
          "name",
          "email"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "name": {
                "description": "Sender name",
                "type": "string",
                "example": "E-goi"
              },
              "email": {
                "description": "Sender email",
                "type": "string",
                "example": "example@e-goi.com"
              }
            },
            "type": "object"
          }
        ]
      },
      "EmailSenderPutRequest": {
        "title": "EmailSenderPutRequest",
        "description": "Email sender put request schema",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "description": "Sender name",
            "type": "string",
            "example": "New sender name"
          }
        },
        "type": "object"
      },
      "PhoneSender": {
        "title": "Phone Sender",
        "description": "Phone sender schema",
        "required": [
          "phone",
          "file"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "phone": {
                "description": "Sender value (country code followed by phone number, split by '-')",
                "type": "string",
                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                "example": "351-300404336"
              },
              "file": {
                "description": "Content of your sender file in base64",
                "type": "string",
                "format": "byte",
                "writeOnly": true
              }
            },
            "type": "object"
          },
          {
            "title": "Basic Sender",
            "description": "Basic sender schema",
            "required": [
              "sender_id"
            ],
            "properties": {
              "sender_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "readOnly": true,
                "example": 1
              },
              "status": {
                "description": "Status of the sender",
                "type": "string",
                "enum": [
                  "active",
                  "moderation",
                  "rejected"
                ],
                "readOnly": true,
                "example": "moderation"
              }
            },
            "type": "object"
          }
        ]
      },
      "PhoneSenderPost": {
        "title": "Phone Sender",
        "description": "Phone sender schema",
        "required": [
          "phone",
          "file"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "phone": {
                "description": "Sender value (country code followed by phone number, split by '-')",
                "type": "string",
                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                "example": "351-300404336"
              },
              "file": {
                "description": "Content of your sender file in base64",
                "type": "string",
                "format": "byte",
                "writeOnly": true
              }
            },
            "type": "object"
          }
        ]
      },
      "BasicSender": {
        "title": "Basic Sender",
        "description": "Basic sender schema",
        "required": [
          "sender_id"
        ],
        "properties": {
          "sender_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "status": {
            "description": "Status of the sender",
            "type": "string",
            "enum": [
              "active",
              "moderation",
              "rejected"
            ],
            "readOnly": true,
            "example": "moderation"
          }
        },
        "type": "object"
      },
      "AbstractSuppresionList": {
        "title": "AbstractSuppresionList",
        "description": "Abstract suppression list schema",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "description": "Suppression type",
            "type": "string",
            "enum": [
              "email",
              "email_domain",
              "email_user",
              "cellphone",
              "phone"
            ]
          }
        },
        "type": "object"
      },
      "SuppressionList": {
        "title": "SuppressionList",
        "description": "Suppression list schema",
        "properties": {
          "id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "value": {
            "description": "Suppressed value",
            "type": "string"
          },
          "type": {
            "description": "Suppression type",
            "type": "string",
            "enum": [
              "email",
              "email_domain",
              "email_user",
              "cellphone",
              "phone"
            ]
          },
          "method": {
            "description": "Suppression method",
            "type": "string",
            "enum": [
              "unsubscribe",
              "bounce",
              "manual",
              "other",
              "forgotten"
            ]
          },
          "campaign_hash": {
            "title": "Hash",
            "type": "string",
            "pattern": "[a-zA-Z0-9_-]*",
            "readOnly": true
          },
          "created": {
            "readOnly": true,
            "allOf": [
              {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              }
            ]
          }
        },
        "type": "object"
      },
      "CreateSuppressionListRequest": {
        "title": "Suppression list",
        "description": "Suppression list schema",
        "required": [
          "type"
        ],
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "email": "#/components/schemas/SuppressionTypeEmail",
            "email_domain": "#/components/schemas/SuppressionTypeEmailDomain",
            "email_user": "#/components/schemas/SuppressionTypeUserEmail",
            "cellphone": "#/components/schemas/SuppressionTypeCellphone",
            "phone": "#/components/schemas/SuppressionTypePhone"
          }
        },
        "oneOf": [
          {
            "title": "Suppression type email schema",
            "description": "Suppression type email schema",
            "required": [
              "type",
              "value"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "description": "Suppression type",
                    "type": "string",
                    "enum": [
                      "email",
                      "email_domain",
                      "email_user",
                      "cellphone",
                      "phone"
                    ],
                    "example": "email"
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "value": {
                    "description": "Array of email values to add to the suppression list",
                    "type": "array",
                    "items": {
                      "type": "string",
                      "example": "example@e-goi.com"
                    },
                    "maxItems": 3000
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Suppression type email domain schema",
            "description": "Suppression type email domain chema",
            "required": [
              "type",
              "value"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "description": "Suppression type",
                    "type": "string",
                    "enum": [
                      "email",
                      "email_domain",
                      "email_user",
                      "cellphone",
                      "phone"
                    ],
                    "example": "email_domain"
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "value": {
                    "description": "Array of email domain values to add to the suppression list",
                    "type": "array",
                    "items": {
                      "type": "string",
                      "example": "e-goi.com"
                    },
                    "maxItems": 3000
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Suppression type email user schema",
            "description": "Suppression type email user chema",
            "required": [
              "type",
              "value"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "description": "Suppression type",
                    "type": "string",
                    "enum": [
                      "email",
                      "email_domain",
                      "email_user",
                      "cellphone",
                      "phone"
                    ],
                    "example": "email_user"
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "value": {
                    "description": "Array of email user values to add to the suppression list",
                    "type": "array",
                    "items": {
                      "type": "string",
                      "example": "example"
                    },
                    "maxItems": 3000
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Suppression type Cellphone schema",
            "description": "Suppression type Cellphone chema",
            "required": [
              "type",
              "value"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "description": "Suppression type",
                    "type": "string",
                    "enum": [
                      "email",
                      "email_domain",
                      "email_user",
                      "cellphone",
                      "phone"
                    ],
                    "example": "cellphone"
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "value": {
                    "description": "Array of cellphone values to add to the suppression list (country code followed by phone number, split by '-')",
                    "type": "array",
                    "items": {
                      "type": "string",
                      "example": "351-3010404336"
                    },
                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                    "maxItems": 3000
                  }
                },
                "type": "object"
              }
            ]
          },
          {
            "title": "Suppression type Phone schema",
            "description": "Suppression type Phone chema",
            "required": [
              "type",
              "value"
            ],
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "type": {
                    "description": "Suppression type",
                    "type": "string",
                    "enum": [
                      "email",
                      "email_domain",
                      "email_user",
                      "cellphone",
                      "phone"
                    ],
                    "example": "phone"
                  }
                },
                "type": "object"
              },
              {
                "properties": {
                  "value": {
                    "description": "Array of phone values to add to the suppression list (country code followed by phone number, split by '-')",
                    "type": "array",
                    "items": {
                      "type": "string",
                      "example": "351-3010404336"
                    },
                    "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                    "maxItems": 3000
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "SuppressionTypeEmail": {
        "title": "Suppression type email schema",
        "description": "Suppression type email schema",
        "required": [
          "type",
          "value"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "description": "Suppression type",
                "type": "string",
                "enum": [
                  "email",
                  "email_domain",
                  "email_user",
                  "cellphone",
                  "phone"
                ],
                "example": "email"
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "value": {
                "description": "Array of email values to add to the suppression list",
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "example@e-goi.com"
                },
                "maxItems": 3000
              }
            },
            "type": "object"
          }
        ]
      },
      "SuppressionTypeEmailDomain": {
        "title": "Suppression type email domain schema",
        "description": "Suppression type email domain chema",
        "required": [
          "type",
          "value"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "description": "Suppression type",
                "type": "string",
                "enum": [
                  "email",
                  "email_domain",
                  "email_user",
                  "cellphone",
                  "phone"
                ],
                "example": "email_domain"
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "value": {
                "description": "Array of email domain values to add to the suppression list",
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "e-goi.com"
                },
                "maxItems": 3000
              }
            },
            "type": "object"
          }
        ]
      },
      "SuppressionTypeUserEmail": {
        "title": "Suppression type email user schema",
        "description": "Suppression type email user chema",
        "required": [
          "type",
          "value"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "description": "Suppression type",
                "type": "string",
                "enum": [
                  "email",
                  "email_domain",
                  "email_user",
                  "cellphone",
                  "phone"
                ],
                "example": "email_user"
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "value": {
                "description": "Array of email user values to add to the suppression list",
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "example"
                },
                "maxItems": 3000
              }
            },
            "type": "object"
          }
        ]
      },
      "SuppressionTypeCellphone": {
        "title": "Suppression type Cellphone schema",
        "description": "Suppression type Cellphone chema",
        "required": [
          "type",
          "value"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "description": "Suppression type",
                "type": "string",
                "enum": [
                  "email",
                  "email_domain",
                  "email_user",
                  "cellphone",
                  "phone"
                ],
                "example": "cellphone"
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "value": {
                "description": "Array of cellphone values to add to the suppression list (country code followed by phone number, split by '-')",
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "351-3010404336"
                },
                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                "maxItems": 3000
              }
            },
            "type": "object"
          }
        ]
      },
      "SuppressionTypePhone": {
        "title": "Suppression type Phone schema",
        "description": "Suppression type Phone chema",
        "required": [
          "type",
          "value"
        ],
        "type": "object",
        "allOf": [
          {
            "properties": {
              "type": {
                "description": "Suppression type",
                "type": "string",
                "enum": [
                  "email",
                  "email_domain",
                  "email_user",
                  "cellphone",
                  "phone"
                ],
                "example": "phone"
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "value": {
                "description": "Array of phone values to add to the suppression list (country code followed by phone number, split by '-')",
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "351-3010404336"
                },
                "pattern": "^(\\d){1,3}-(\\d){4,20}$",
                "maxItems": 3000
              }
            },
            "type": "object"
          }
        ]
      },
      "DeleteSuppressionListConflictsErrors": {
        "title": "DeleteSuppressionListConflictsErrors",
        "type": "object",
        "allOf": [
          {
            "title": "unremovable_entry",
            "description": "Error schema for conflict when the suppression value requested for deletion has other method than manual",
            "properties": {
              "errors": {
                "properties": {
                  "unremovable_entry": {
                    "description": "Occurs when the entry you want to delete was created by a unremovable method",
                    "type": "string",
                    "enum": [
                      "Unremovable Entry"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "BaseConflict",
            "properties": {
              "type": {
                "description": "RFC for status code definitions",
                "type": "string",
                "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
              },
              "title": {
                "description": "Error title",
                "type": "string",
                "enum": [
                  "Conflict"
                ]
              },
              "status": {
                "description": "Status code",
                "type": "integer",
                "example": 409
              },
              "detail": {
                "description": "Error detail",
                "type": "string",
                "example": "The request could not be completed due to a conflict with the current state of the target resource"
              }
            },
            "type": "object"
          }
        ]
      },
      "unremovable_entry": {
        "title": "unremovable_entry",
        "description": "Error schema for conflict when the suppression value requested for deletion has other method than manual",
        "properties": {
          "errors": {
            "properties": {
              "unremovable_entry": {
                "description": "Occurs when the entry you want to delete was created by a unremovable method",
                "type": "string",
                "enum": [
                  "Unremovable Entry"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "Tag": {
        "title": "Tag",
        "description": "Tag schema",
        "properties": {
          "tag_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "name": {
            "description": "Name of the tag",
            "type": "string",
            "example": "Your custom tag"
          },
          "color": {
            "description": "Main color of the tag",
            "type": "string",
            "example": "#FFFFFF"
          }
        },
        "type": "object"
      },
      "TagRequest": {
        "title": "Tag",
        "description": "Tag schema request",
        "properties": {
          "name": {
            "description": "Name of the tag",
            "type": "string",
            "example": "Your custom tag"
          },
          "color": {
            "description": "Main color of the tag",
            "type": "string",
            "example": "#FFFFFF"
          }
        },
        "type": "object"
      },
      "Template": {
        "title": "Template",
        "description": "Template schema",
        "properties": {
          "template_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "internal_name": {
            "description": "Name of the template",
            "type": "string",
            "example": "Your template internal name"
          },
          "list_id": {
            "description": "List ID",
            "type": "integer",
            "example": 1
          },
          "campaign_hash": {
            "description": "Campaign Hash",
            "type": "string",
            "example": "123456789abcdef"
          },
          "html_message": {
            "description": "Template HTML message",
            "type": "string",
            "example": "<!DOCTYPE html><html><head><title>Your Template</title></head><body><h1>Example</h1></body></html>"
          }
        },
        "type": "object"
      },
      "TemplateSms": {
        "title": "Template Sms",
        "description": "Template sms schema",
        "properties": {
          "template_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "internal_name": {
            "description": "Name of the template",
            "type": "string",
            "example": "Your template internal name"
          },
          "list_id": {
            "description": "List ID",
            "type": "integer",
            "example": 1
          },
          "campaign_hash": {
            "description": "Campaign Hash",
            "type": "string",
            "example": "123456789abcdef"
          },
          "text_message": {
            "description": "Template message",
            "type": "string",
            "example": "Example sms message"
          }
        },
        "type": "object"
      },
      "TemplatePush": {
        "title": "Template Push",
        "description": "Template push schema",
        "properties": {
          "template_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "internal_name": {
            "description": "Name of the template",
            "type": "string",
            "example": "Your template internal name"
          },
          "list_id": {
            "description": "List ID",
            "type": "integer",
            "example": 1
          },
          "campaign_hash": {
            "description": "Campaign Hash",
            "type": "string",
            "example": "123456789abcdef"
          }
        },
        "type": "object"
      },
      "TemplateSmartSms": {
        "title": "Template Smart Sms",
        "description": "Template smart sms schema",
        "properties": {
          "template_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "internal_name": {
            "description": "Name of the template",
            "type": "string",
            "example": "Your template internal name"
          },
          "list_id": {
            "description": "List ID",
            "type": "integer",
            "example": 1
          },
          "campaign_hash": {
            "description": "Campaign Hash",
            "type": "string",
            "example": "123456789abcdef"
          },
          "text_message": {
            "description": "Template message",
            "type": "string",
            "example": "Example sms message"
          }
        },
        "type": "object"
      },
      "Domain": {
        "title": "Domain",
        "description": "Domain schema",
        "properties": {
          "domain": {
            "description": "Domain",
            "type": "string",
            "example": "e-goi.com"
          },
          "list_id": {
            "description": "List id",
            "type": "string",
            "example": 1
          },
          "status": {
            "description": "Domain status",
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ],
            "readOnly": true
          }
        },
        "type": "object"
      },
      "Goal": {
        "title": "Goal",
        "description": "Goal schema",
        "properties": {
          "domain": {
            "description": "Domain where goal exists",
            "type": "string",
            "example": "www.e-goi.com"
          },
          "name": {
            "description": "Goal name",
            "type": "string",
            "example": "Button click"
          },
          "id": {
            "description": "Goal id",
            "type": "number",
            "example": 1
          },
          "config": {
            "title": "GoalInfo",
            "description": "GoalInfo",
            "type": "object",
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "automatic": "#/components/schemas/GoalAutommaticInfo",
                "manual": "#/components/schemas/GoalManualInfo",
                "time": "#/components/schemas/GoalTimeInfo"
              }
            },
            "oneOf": [
              {
                "title": "GoalManualInfo",
                "description": "Manual goal info schema",
                "properties": {
                  "type": {
                    "description": "Goal type",
                    "type": "string",
                    "enum": [
                      "manual"
                    ]
                  },
                  "multiple_conversion": {
                    "description": "Goal is multiple conversion",
                    "type": "boolean",
                    "example": true
                  }
                },
                "type": "object"
              },
              {
                "title": "GoalAutommaticInfo",
                "description": "Automatic goal info schema",
                "properties": {
                  "type": {
                    "description": "Goal type",
                    "type": "string",
                    "enum": [
                      "automatic"
                    ]
                  },
                  "rule": {
                    "description": "Goal rule",
                    "type": "string",
                    "enum": [
                      "url",
                      "title",
                      "download",
                      "external_url"
                    ]
                  },
                  "condition": {
                    "description": "Goal condition",
                    "type": "string",
                    "enum": [
                      "contains",
                      "exactly",
                      "regex"
                    ]
                  },
                  "pattern": {
                    "description": "Goal pattern",
                    "type": "string",
                    "example": "checkout/confirmation"
                  },
                  "case_sensitive": {
                    "description": "Goal pattern case sensitive",
                    "type": "boolean",
                    "example": false
                  },
                  "multiple_conversion": {
                    "description": "Goal is multiple conversion",
                    "type": "boolean",
                    "example": true
                  }
                },
                "type": "object"
              },
              {
                "title": "GoalTimeInfo",
                "description": "Time goal info schema",
                "properties": {
                  "type": {
                    "description": "Goal type",
                    "type": "string",
                    "enum": [
                      "time"
                    ]
                  },
                  "minutes": {
                    "description": "Goal trigger time in minutes",
                    "type": "number",
                    "format": "double",
                    "example": 10
                  }
                },
                "type": "object"
              }
            ]
          }
        },
        "type": "object"
      },
      "GoalInfo": {
        "title": "GoalInfo",
        "description": "GoalInfo",
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "automatic": "#/components/schemas/GoalAutommaticInfo",
            "manual": "#/components/schemas/GoalManualInfo",
            "time": "#/components/schemas/GoalTimeInfo"
          }
        },
        "oneOf": [
          {
            "title": "GoalManualInfo",
            "description": "Manual goal info schema",
            "properties": {
              "type": {
                "description": "Goal type",
                "type": "string",
                "enum": [
                  "manual"
                ]
              },
              "multiple_conversion": {
                "description": "Goal is multiple conversion",
                "type": "boolean",
                "example": true
              }
            },
            "type": "object"
          },
          {
            "title": "GoalAutommaticInfo",
            "description": "Automatic goal info schema",
            "properties": {
              "type": {
                "description": "Goal type",
                "type": "string",
                "enum": [
                  "automatic"
                ]
              },
              "rule": {
                "description": "Goal rule",
                "type": "string",
                "enum": [
                  "url",
                  "title",
                  "download",
                  "external_url"
                ]
              },
              "condition": {
                "description": "Goal condition",
                "type": "string",
                "enum": [
                  "contains",
                  "exactly",
                  "regex"
                ]
              },
              "pattern": {
                "description": "Goal pattern",
                "type": "string",
                "example": "checkout/confirmation"
              },
              "case_sensitive": {
                "description": "Goal pattern case sensitive",
                "type": "boolean",
                "example": false
              },
              "multiple_conversion": {
                "description": "Goal is multiple conversion",
                "type": "boolean",
                "example": true
              }
            },
            "type": "object"
          },
          {
            "title": "GoalTimeInfo",
            "description": "Time goal info schema",
            "properties": {
              "type": {
                "description": "Goal type",
                "type": "string",
                "enum": [
                  "time"
                ]
              },
              "minutes": {
                "description": "Goal trigger time in minutes",
                "type": "number",
                "format": "double",
                "example": 10
              }
            },
            "type": "object"
          }
        ]
      },
      "GoalAutommaticInfo": {
        "title": "GoalAutommaticInfo",
        "description": "Automatic goal info schema",
        "properties": {
          "type": {
            "description": "Goal type",
            "type": "string",
            "enum": [
              "automatic"
            ]
          },
          "rule": {
            "description": "Goal rule",
            "type": "string",
            "enum": [
              "url",
              "title",
              "download",
              "external_url"
            ]
          },
          "condition": {
            "description": "Goal condition",
            "type": "string",
            "enum": [
              "contains",
              "exactly",
              "regex"
            ]
          },
          "pattern": {
            "description": "Goal pattern",
            "type": "string",
            "example": "checkout/confirmation"
          },
          "case_sensitive": {
            "description": "Goal pattern case sensitive",
            "type": "boolean",
            "example": false
          },
          "multiple_conversion": {
            "description": "Goal is multiple conversion",
            "type": "boolean",
            "example": true
          }
        },
        "type": "object"
      },
      "GoalManualInfo": {
        "title": "GoalManualInfo",
        "description": "Manual goal info schema",
        "properties": {
          "type": {
            "description": "Goal type",
            "type": "string",
            "enum": [
              "manual"
            ]
          },
          "multiple_conversion": {
            "description": "Goal is multiple conversion",
            "type": "boolean",
            "example": true
          }
        },
        "type": "object"
      },
      "GoalTimeInfo": {
        "title": "GoalTimeInfo",
        "description": "Time goal info schema",
        "properties": {
          "type": {
            "description": "Goal type",
            "type": "string",
            "enum": [
              "time"
            ]
          },
          "minutes": {
            "description": "Goal trigger time in minutes",
            "type": "number",
            "format": "double",
            "example": 10
          }
        },
        "type": "object"
      },
      "User": {
        "title": "User",
        "description": "User schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "user_id": {
                "title": "ID",
                "type": "integer",
                "minimum": 1,
                "readOnly": true,
                "example": 1
              },
              "username": {
                "description": "User login",
                "type": "string",
                "readOnly": true,
                "example": "example@e-goi.com"
              },
              "is_admin": {
                "description": "True if user is admin, false otherwise",
                "type": "boolean",
                "default": false,
                "readOnly": true
              },
              "first_name": {
                "description": "First name of the user",
                "type": "string"
              },
              "last_name": {
                "description": "Last name of the user",
                "type": "string"
              },
              "email": {
                "description": "Email of the user",
                "type": "string",
                "example": "example@e-goi.com"
              },
              "phone": {
                "description": "User's phone (may be cellphone or phone)",
                "type": "string",
                "example": "351-300404336"
              },
              "profile_image": {
                "description": "User's profile image",
                "type": "string",
                "readOnly": true
              },
              "status": {
                "description": "User status",
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ],
                "readOnly": true
              },
              "created": {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              },
              "updated": {
                "title": "date_time",
                "description": "The date and time",
                "type": "string",
                "format": "date-time",
                "example": "YYYY-MM-DD hh:mm:ss"
              },
              "profile": {
                "title": "User Profile",
                "description": "User Profile Detail",
                "type": "array",
                "items": {
                  "title": "User Profile",
                  "description": "User Profile Detail",
                  "properties": {
                    "profile_id": {
                      "description": "User Profile ID",
                      "type": "integer",
                      "example": 1
                    },
                    "title": {
                      "description": "User Profile Title",
                      "type": "string",
                      "example": "Administrator"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "type": "object"
          }
        ]
      },
      "UserPost": {
        "title": "User",
        "description": "User schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "username": {
                "description": "User login",
                "type": "string",
                "readOnly": true,
                "example": "example@e-goi.com"
              },
              "first_name": {
                "description": "First name of the user",
                "type": "string"
              },
              "last_name": {
                "description": "Last name of the user",
                "type": "string"
              },
              "email": {
                "description": "Email of the user",
                "type": "string",
                "example": "example@e-goi.com"
              },
              "phone": {
                "description": "User's phone (may be cellphone or phone)",
                "type": "string",
                "example": "351-300404336"
              }
            },
            "type": "object"
          }
        ]
      },
      "UserPostRequest": {
        "title": "UserPostRequest",
        "description": "User post request schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "password": {
                "description": "User password",
                "type": "string"
              },
              "password_confirmation": {
                "description": "User password confirmation",
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "title": "Complex User",
            "description": "Complex user schema",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "language": {
                    "title": "language",
                    "description": "Current language",
                    "type": "string",
                    "default": "en",
                    "enum": [
                      "en",
                      "pt",
                      "br",
                      "es",
                      "de",
                      "hu",
                      "fr"
                    ]
                  },
                  "gender": {
                    "description": "User gender",
                    "type": "string",
                    "enum": [
                      "male",
                      "female"
                    ]
                  }
                },
                "type": "object"
              },
              {
                "title": "User",
                "description": "User schema",
                "type": "object",
                "allOf": [
                  {
                    "properties": {
                      "username": {
                        "description": "User login",
                        "type": "string",
                        "readOnly": true,
                        "example": "example@e-goi.com"
                      },
                      "first_name": {
                        "description": "First name of the user",
                        "type": "string"
                      },
                      "last_name": {
                        "description": "Last name of the user",
                        "type": "string"
                      },
                      "email": {
                        "description": "Email of the user",
                        "type": "string",
                        "example": "example@e-goi.com"
                      },
                      "phone": {
                        "description": "User's phone (may be cellphone or phone)",
                        "type": "string",
                        "example": "351-300404336"
                      }
                    },
                    "type": "object"
                  }
                ]
              }
            ]
          }
        ]
      },
      "ComplexUser": {
        "title": "Complex User",
        "description": "Complex user schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "language": {
                "title": "language",
                "description": "Current language",
                "type": "string",
                "default": "en",
                "enum": [
                  "en",
                  "pt",
                  "br",
                  "es",
                  "de",
                  "hu",
                  "fr"
                ]
              },
              "gender": {
                "description": "User gender",
                "type": "string",
                "enum": [
                  "male",
                  "female"
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "User",
            "description": "User schema",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "username": {
                    "description": "User login",
                    "type": "string",
                    "readOnly": true,
                    "example": "example@e-goi.com"
                  },
                  "first_name": {
                    "description": "First name of the user",
                    "type": "string"
                  },
                  "last_name": {
                    "description": "Last name of the user",
                    "type": "string"
                  },
                  "email": {
                    "description": "Email of the user",
                    "type": "string",
                    "example": "example@e-goi.com"
                  },
                  "phone": {
                    "description": "User's phone (may be cellphone or phone)",
                    "type": "string",
                    "example": "351-300404336"
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "ComplexUserPost": {
        "title": "Complex User",
        "description": "Complex user schema",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "language": {
                "title": "language",
                "description": "Current language",
                "type": "string",
                "default": "en",
                "enum": [
                  "en",
                  "pt",
                  "br",
                  "es",
                  "de",
                  "hu",
                  "fr"
                ]
              },
              "gender": {
                "description": "User gender",
                "type": "string",
                "enum": [
                  "male",
                  "female"
                ]
              }
            },
            "type": "object"
          },
          {
            "title": "User",
            "description": "User schema",
            "type": "object",
            "allOf": [
              {
                "properties": {
                  "username": {
                    "description": "User login",
                    "type": "string",
                    "readOnly": true,
                    "example": "example@e-goi.com"
                  },
                  "first_name": {
                    "description": "First name of the user",
                    "type": "string"
                  },
                  "last_name": {
                    "description": "Last name of the user",
                    "type": "string"
                  },
                  "email": {
                    "description": "Email of the user",
                    "type": "string",
                    "example": "example@e-goi.com"
                  },
                  "phone": {
                    "description": "User's phone (may be cellphone or phone)",
                    "type": "string",
                    "example": "351-300404336"
                  }
                },
                "type": "object"
              }
            ]
          }
        ]
      },
      "UserProfileGlobal": {
        "title": "User Profile",
        "description": "User Profile Detail",
        "type": "array",
        "items": {
          "title": "User Profile",
          "description": "User Profile Detail",
          "properties": {
            "profile_id": {
              "description": "User Profile ID",
              "type": "integer",
              "example": 1
            },
            "title": {
              "description": "User Profile Title",
              "type": "string",
              "example": "Administrator"
            }
          },
          "type": "object"
        }
      },
      "UserProfileDetail": {
        "title": "User Profile",
        "description": "User Profile Detail",
        "properties": {
          "profile_id": {
            "description": "User Profile ID",
            "type": "integer",
            "example": 1
          },
          "title": {
            "description": "User Profile Title",
            "type": "string",
            "example": "Administrator"
          }
        },
        "type": "object"
      },
      "UserActivity": {
        "title": "UserActivity",
        "description": "User activity log schema",
        "properties": {
          "id": {
            "description": "Unique ID of the activity log",
            "type": "integer",
            "example": 23
          },
          "date": {
            "description": "Date and time of the activity",
            "type": "string",
            "format": "date-time",
            "example": "2025-06-25 10:15:55"
          },
          "ip_address": {
            "description": "IP address of the user",
            "type": "string",
            "example": "95.136.8.141"
          },
          "source": {
            "description": "Source of the action",
            "type": "string",
            "example": "userInterface"
          },
          "action": {
            "description": "Action performed by the user",
            "type": "string",
            "example": "viewPage"
          },
          "action_data": {
            "description": "Retrieve the list of the details of the action",
            "properties": {
              "list_id": {
                "example": "1"
              },
              "form_id": {
                "example": "1"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "UserProfile": {
        "title": "UserProfile",
        "description": "User Profile detail schema",
        "properties": {
          "profile_id": {
            "description": "Profile ID",
            "type": "integer",
            "example": 1
          },
          "title": {
            "description": "Profile title",
            "type": "string",
            "example": "Administrator"
          },
          "permissions": {
            "description": "Available profile permissions",
            "type": "array",
            "items": {
              "title": "ProfilePermission",
              "description": "Profile Permission schema",
              "properties": {
                "general_permissions": {
                  "title": "ProfilePermissionGeneralGlobal",
                  "description": "General permissions",
                  "properties": {
                    "home_permissions": {
                      "description": "Access to Home",
                      "type": "boolean",
                      "example": true
                    },
                    "lists_permissions": {
                      "description": "Access to Lists",
                      "type": "boolean",
                      "example": true
                    },
                    "campaigns_permissions": {
                      "description": "Access to Campaigns",
                      "type": "boolean",
                      "example": true
                    },
                    "automations_permissions": {
                      "description": "Access to Automations",
                      "type": "boolean",
                      "example": true
                    },
                    "reports_permissions": {
                      "description": "Access to Reports",
                      "type": "boolean",
                      "example": true
                    },
                    "balance_permissions": {
                      "description": "Access to Balance",
                      "type": "boolean",
                      "example": true
                    },
                    "user_permissions": {
                      "description": "Access to Users",
                      "type": "boolean",
                      "example": true
                    },
                    "commission_permissions": {
                      "description": "Access to Commissions",
                      "type": "boolean",
                      "example": true
                    },
                    "client_data_permissions": {
                      "description": "Access to Client Data",
                      "type": "boolean",
                      "example": true
                    },
                    "api_permissions": {
                      "description": "Access to Marketing API V2",
                      "type": "boolean",
                      "example": true
                    },
                    "senders_permissions": {
                      "description": "Access to Senders",
                      "type": "boolean",
                      "example": true
                    },
                    "my_account_permissions": {
                      "description": "Access to My Account",
                      "type": "boolean",
                      "example": true
                    },
                    "tags_permissions": {
                      "description": "Access to Tags",
                      "type": "boolean",
                      "example": true
                    },
                    "transacional_permissions": {
                      "description": "Access to Transactional",
                      "type": "boolean",
                      "example": true
                    },
                    "forms_permissions": {
                      "description": "Access to Forms",
                      "type": "boolean",
                      "example": true
                    },
                    "security_permissions": {
                      "description": "Access to Security",
                      "type": "boolean",
                      "example": true
                    },
                    "track_engage_permissions": {
                      "description": "Access to Track Engage",
                      "type": "boolean",
                      "example": true
                    },
                    "alerts_permissions": {
                      "description": "Access to Alerts",
                      "type": "boolean",
                      "example": true
                    }
                  },
                  "type": "object"
                },
                "user_permissions": {
                  "title": "ProfilePermissionUserGlobal",
                  "description": "User permissions",
                  "properties": {
                    "add": {
                      "description": "Permission to add users",
                      "type": "boolean",
                      "example": true
                    },
                    "edit": {
                      "description": "Permission to edit users",
                      "type": "boolean",
                      "example": true
                    },
                    "delete": {
                      "description": "Permission to delete users",
                      "type": "boolean",
                      "example": true
                    },
                    "profiles": {
                      "description": "Permission to manage user profiles",
                      "type": "boolean",
                      "example": true
                    },
                    "logs": {
                      "description": "Permission to view user logs",
                      "type": "boolean",
                      "example": true
                    }
                  },
                  "type": "object"
                },
                "security_permissions": {
                  "title": "ProfilePermissionSecurityGlobal",
                  "description": "Security permissions",
                  "properties": {
                    "edit": {
                      "description": "Permission to edit security settings",
                      "type": "boolean",
                      "example": true
                    }
                  },
                  "type": "object"
                },
                "forms_permissions": {
                  "title": "ProfilePermissionFormsGlobal",
                  "description": "Forms permissions",
                  "properties": {
                    "new": {
                      "description": "Permission to create forms",
                      "type": "boolean",
                      "example": true
                    },
                    "edit": {
                      "description": "Permission to edit forms",
                      "type": "boolean",
                      "example": true
                    },
                    "delete": {
                      "description": "Permission to delete forms",
                      "type": "boolean",
                      "example": true
                    }
                  },
                  "type": "object"
                },
                "lists_permissions": {
                  "title": "ProfilePermissionListsGlobal",
                  "description": "Lists permissions",
                  "properties": {
                    "new": {
                      "description": "Permission to create lists",
                      "type": "boolean",
                      "example": true
                    },
                    "edit": {
                      "description": "Permission to edit lists",
                      "type": "boolean",
                      "example": true
                    },
                    "delete": {
                      "description": "Permission to delete lists",
                      "type": "boolean",
                      "example": true
                    },
                    "duplicate": {
                      "description": "Permission to duplicate lists",
                      "type": "boolean",
                      "example": true
                    },
                    "view_contacts": {
                      "description": "Permission to view contacts",
                      "type": "boolean",
                      "example": true
                    },
                    "add_contacts": {
                      "description": "Permission to add contacts",
                      "type": "boolean",
                      "example": true
                    },
                    "edit_contacts": {
                      "description": "Permission to edit contacts",
                      "type": "boolean",
                      "example": true
                    },
                    "delete_contacts": {
                      "description": "Permission to delete contacts",
                      "type": "boolean",
                      "example": true
                    },
                    "export_contacts": {
                      "description": "Permission to export contacts",
                      "type": "boolean",
                      "example": true
                    },
                    "groups": {
                      "description": "Permission to manage groups",
                      "type": "boolean",
                      "example": true
                    },
                    "access": {
                      "description": "Scope of access to lists",
                      "properties": {
                        "access_type": {
                          "description": "Access type (all or limited)",
                          "type": "string",
                          "example": "limited"
                        },
                        "lists_id_list": {
                          "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                          "type": "array",
                          "items": {
                            "type": "integer"
                          },
                          "example": [
                            1,
                            2,
                            3
                          ]
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                },
                "campaigns_permissions": {
                  "title": "ProfilePermissionCampaignsGlobal",
                  "description": "Campaigns permissions",
                  "properties": {
                    "new": {
                      "description": "Permission to create campaigns",
                      "type": "boolean",
                      "example": true
                    },
                    "edit": {
                      "description": "Permission to edit campaigns",
                      "type": "boolean",
                      "example": true
                    },
                    "delete": {
                      "description": "Permission to delete campaigns",
                      "type": "boolean",
                      "example": true
                    },
                    "duplicate": {
                      "description": "Permission to duplicate campaigns",
                      "type": "boolean",
                      "example": true
                    },
                    "groups": {
                      "description": "Permission to manage groups",
                      "type": "boolean",
                      "example": true
                    },
                    "deploy": {
                      "description": "Permission to deploy campaigns",
                      "type": "boolean",
                      "example": true
                    },
                    "access_group": {
                      "description": "Scope of access to campaign groups",
                      "properties": {
                        "access_type": {
                          "description": "Access type (all or limited)",
                          "type": "string",
                          "example": "limited"
                        },
                        "campaigns_id_list": {
                          "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                          "type": "array",
                          "items": {
                            "type": "integer"
                          },
                          "example": [
                            1,
                            2,
                            3
                          ]
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                },
                "automations_permissions": {
                  "title": "ProfilePermissionAutomationsGlobal",
                  "description": "Automations permissions",
                  "properties": {
                    "new": {
                      "description": "Permission to create automations",
                      "type": "boolean",
                      "example": true
                    },
                    "edit": {
                      "description": "Permission to edit automations",
                      "type": "boolean",
                      "example": true
                    },
                    "delete": {
                      "description": "Permission to delete automations",
                      "type": "boolean",
                      "example": true
                    }
                  },
                  "type": "object"
                },
                "reports_permissions": {
                  "title": "ProfilePermissionReportsGlobal",
                  "description": "Reports permissions",
                  "properties": {
                    "new": {
                      "description": "Permission to create reports",
                      "type": "boolean",
                      "example": true
                    },
                    "edit": {
                      "description": "Permission to edit reports",
                      "type": "boolean",
                      "example": true
                    },
                    "delete": {
                      "description": "Permission to delete reports",
                      "type": "boolean",
                      "example": true
                    },
                    "export": {
                      "description": "Permission to export reports",
                      "type": "boolean",
                      "example": true
                    }
                  },
                  "type": "object"
                },
                "balance_permissions": {
                  "title": "ProfilePermissionBalanceGlobal",
                  "description": "Balance permissions",
                  "properties": {
                    "new": {
                      "description": "Permission to create balance entries",
                      "type": "boolean",
                      "example": true
                    },
                    "delete": {
                      "description": "Permission to delete balance entries",
                      "type": "boolean",
                      "example": true
                    },
                    "pay": {
                      "description": "Permission to perform payments",
                      "type": "boolean",
                      "example": true
                    }
                  },
                  "type": "object"
                },
                "tags_permissions": {
                  "title": "ProfilePermissionTagsGlobal",
                  "description": "Tags permissions",
                  "properties": {
                    "new": {
                      "description": "Permission to create tags",
                      "type": "boolean",
                      "example": true
                    },
                    "delete": {
                      "description": "Permission to delete tags",
                      "type": "boolean",
                      "example": true
                    },
                    "edit": {
                      "description": "Permission to edit tags",
                      "type": "boolean",
                      "example": true
                    }
                  },
                  "type": "object"
                },
                "transacional_permissions": {
                  "title": "ProfilePermissionTransactionalGlobal",
                  "description": "Transactional permissions",
                  "properties": {
                    "view": {
                      "description": "Permission to view transactional messages",
                      "type": "boolean",
                      "example": true
                    }
                  },
                  "type": "object"
                },
                "api_permissions": {
                  "title": "ProfilePermissionApiGlobal",
                  "description": "API permissions",
                  "properties": {
                    "client_data": {
                      "description": "Access client data via API",
                      "type": "boolean",
                      "example": true
                    },
                    "new_campaign": {
                      "description": "Create campaigns via API",
                      "type": "boolean",
                      "example": true
                    },
                    "deploy_campaign": {
                      "description": "Deploy campaigns via API",
                      "type": "boolean",
                      "example": true
                    },
                    "list_campaign": {
                      "description": "List campaigns via API",
                      "type": "boolean",
                      "example": true
                    },
                    "edit_campaign": {
                      "description": "Edit campaigns via API",
                      "type": "boolean",
                      "example": true
                    },
                    "delete_campaign": {
                      "description": "Delete campaigns via API",
                      "type": "boolean",
                      "example": true
                    },
                    "report_campaign": {
                      "description": "Retrieve campaign reports via API",
                      "type": "boolean",
                      "example": true
                    },
                    "add_contacts": {
                      "description": "Add contacts via API",
                      "type": "boolean",
                      "example": true
                    },
                    "edit_contacts": {
                      "description": "Edit contacts via API",
                      "type": "boolean",
                      "example": true
                    },
                    "delete_contacts": {
                      "description": "Delete contacts via API",
                      "type": "boolean",
                      "example": true
                    },
                    "view_contacts": {
                      "description": "View contacts via API",
                      "type": "boolean",
                      "example": true
                    },
                    "list_lists": {
                      "description": "List lists via API",
                      "type": "boolean",
                      "example": true
                    },
                    "new_list": {
                      "description": "Create lists via API",
                      "type": "boolean",
                      "example": true
                    },
                    "edit_list": {
                      "description": "Edit lists via API",
                      "type": "boolean",
                      "example": true
                    },
                    "delete_extra_field": {
                      "description": "Delete extra fields via API",
                      "type": "boolean",
                      "example": true
                    },
                    "edit_extra_field": {
                      "description": "Edit extra fields via API",
                      "type": "boolean",
                      "example": true
                    },
                    "new_extra_field": {
                      "description": "Create extra fields via API",
                      "type": "boolean",
                      "example": true
                    },
                    "list_forms": {
                      "description": "List forms via API",
                      "type": "boolean",
                      "example": true
                    },
                    "list_froms": {
                      "description": "List forms via API (alias)",
                      "type": "boolean",
                      "example": true
                    },
                    "add_tag": {
                      "description": "Add tags via API",
                      "type": "boolean",
                      "example": true
                    },
                    "delete_tag": {
                      "description": "Delete tags via API",
                      "type": "boolean",
                      "example": true
                    },
                    "get_autobots": {
                      "description": "Retrieve automations (autobots) via API",
                      "type": "boolean",
                      "example": true
                    },
                    "start_autobots": {
                      "description": "Start automations (autobots) via API",
                      "type": "boolean",
                      "example": true
                    },
                    "create_api_key": {
                      "description": "Create API keys",
                      "type": "boolean",
                      "example": true
                    },
                    "edit_api_key": {
                      "description": "Edit API keys",
                      "type": "boolean",
                      "example": true
                    }
                  },
                  "type": "object"
                },
                "senders_permissions": {
                  "title": "ProfilePermissionSendersGlobal",
                  "description": "Senders permissions",
                  "properties": {
                    "new": {
                      "description": "Create senders",
                      "type": "boolean",
                      "example": true
                    },
                    "delete": {
                      "description": "Delete senders",
                      "type": "boolean",
                      "example": true
                    },
                    "access": {
                      "description": "Scope of access to senders",
                      "properties": {
                        "access_type": {
                          "description": "Access type (all or limited)",
                          "type": "string",
                          "example": "limited"
                        },
                        "senders_id_list": {
                          "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                          "type": "array",
                          "items": {
                            "type": "integer"
                          },
                          "example": [
                            1,
                            2,
                            3
                          ]
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                },
                "alerts_permissions": {
                  "title": "ProfilePermissionAlertsGlobal",
                  "description": "Alerts permissions",
                  "properties": {
                    "edit": {
                      "description": "Edit alerts",
                      "type": "boolean",
                      "example": true
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            }
          },
          "default": {
            "description": "Indicates whether the profile is the default",
            "type": "boolean",
            "example": false
          },
          "created": {
            "description": "Profile creation date",
            "type": "string",
            "example": "2023-10-01 12:00:00"
          },
          "created_by": {
            "description": "User ID who created the profile",
            "type": "string",
            "example": "1234567"
          },
          "updated": {
            "description": "Profile last update date",
            "type": "string",
            "example": "2023-10-01 12:00:00"
          },
          "updated_by": {
            "description": "User ID who last updated the profile",
            "type": "string",
            "example": "1234567"
          }
        },
        "type": "object"
      },
      "ProfilePermission": {
        "title": "ProfilePermission",
        "description": "Profile Permission schema",
        "properties": {
          "general_permissions": {
            "title": "ProfilePermissionGeneralGlobal",
            "description": "General permissions",
            "properties": {
              "home_permissions": {
                "description": "Access to Home",
                "type": "boolean",
                "example": true
              },
              "lists_permissions": {
                "description": "Access to Lists",
                "type": "boolean",
                "example": true
              },
              "campaigns_permissions": {
                "description": "Access to Campaigns",
                "type": "boolean",
                "example": true
              },
              "automations_permissions": {
                "description": "Access to Automations",
                "type": "boolean",
                "example": true
              },
              "reports_permissions": {
                "description": "Access to Reports",
                "type": "boolean",
                "example": true
              },
              "balance_permissions": {
                "description": "Access to Balance",
                "type": "boolean",
                "example": true
              },
              "user_permissions": {
                "description": "Access to Users",
                "type": "boolean",
                "example": true
              },
              "commission_permissions": {
                "description": "Access to Commissions",
                "type": "boolean",
                "example": true
              },
              "client_data_permissions": {
                "description": "Access to Client Data",
                "type": "boolean",
                "example": true
              },
              "api_permissions": {
                "description": "Access to Marketing API V2",
                "type": "boolean",
                "example": true
              },
              "senders_permissions": {
                "description": "Access to Senders",
                "type": "boolean",
                "example": true
              },
              "my_account_permissions": {
                "description": "Access to My Account",
                "type": "boolean",
                "example": true
              },
              "tags_permissions": {
                "description": "Access to Tags",
                "type": "boolean",
                "example": true
              },
              "transacional_permissions": {
                "description": "Access to Transactional",
                "type": "boolean",
                "example": true
              },
              "forms_permissions": {
                "description": "Access to Forms",
                "type": "boolean",
                "example": true
              },
              "security_permissions": {
                "description": "Access to Security",
                "type": "boolean",
                "example": true
              },
              "track_engage_permissions": {
                "description": "Access to Track Engage",
                "type": "boolean",
                "example": true
              },
              "alerts_permissions": {
                "description": "Access to Alerts",
                "type": "boolean",
                "example": true
              }
            },
            "type": "object"
          },
          "user_permissions": {
            "title": "ProfilePermissionUserGlobal",
            "description": "User permissions",
            "properties": {
              "add": {
                "description": "Permission to add users",
                "type": "boolean",
                "example": true
              },
              "edit": {
                "description": "Permission to edit users",
                "type": "boolean",
                "example": true
              },
              "delete": {
                "description": "Permission to delete users",
                "type": "boolean",
                "example": true
              },
              "profiles": {
                "description": "Permission to manage user profiles",
                "type": "boolean",
                "example": true
              },
              "logs": {
                "description": "Permission to view user logs",
                "type": "boolean",
                "example": true
              }
            },
            "type": "object"
          },
          "security_permissions": {
            "title": "ProfilePermissionSecurityGlobal",
            "description": "Security permissions",
            "properties": {
              "edit": {
                "description": "Permission to edit security settings",
                "type": "boolean",
                "example": true
              }
            },
            "type": "object"
          },
          "forms_permissions": {
            "title": "ProfilePermissionFormsGlobal",
            "description": "Forms permissions",
            "properties": {
              "new": {
                "description": "Permission to create forms",
                "type": "boolean",
                "example": true
              },
              "edit": {
                "description": "Permission to edit forms",
                "type": "boolean",
                "example": true
              },
              "delete": {
                "description": "Permission to delete forms",
                "type": "boolean",
                "example": true
              }
            },
            "type": "object"
          },
          "lists_permissions": {
            "title": "ProfilePermissionListsGlobal",
            "description": "Lists permissions",
            "properties": {
              "new": {
                "description": "Permission to create lists",
                "type": "boolean",
                "example": true
              },
              "edit": {
                "description": "Permission to edit lists",
                "type": "boolean",
                "example": true
              },
              "delete": {
                "description": "Permission to delete lists",
                "type": "boolean",
                "example": true
              },
              "duplicate": {
                "description": "Permission to duplicate lists",
                "type": "boolean",
                "example": true
              },
              "view_contacts": {
                "description": "Permission to view contacts",
                "type": "boolean",
                "example": true
              },
              "add_contacts": {
                "description": "Permission to add contacts",
                "type": "boolean",
                "example": true
              },
              "edit_contacts": {
                "description": "Permission to edit contacts",
                "type": "boolean",
                "example": true
              },
              "delete_contacts": {
                "description": "Permission to delete contacts",
                "type": "boolean",
                "example": true
              },
              "export_contacts": {
                "description": "Permission to export contacts",
                "type": "boolean",
                "example": true
              },
              "groups": {
                "description": "Permission to manage groups",
                "type": "boolean",
                "example": true
              },
              "access": {
                "description": "Scope of access to lists",
                "properties": {
                  "access_type": {
                    "description": "Access type (all or limited)",
                    "type": "string",
                    "example": "limited"
                  },
                  "lists_id_list": {
                    "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "example": [
                      1,
                      2,
                      3
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "campaigns_permissions": {
            "title": "ProfilePermissionCampaignsGlobal",
            "description": "Campaigns permissions",
            "properties": {
              "new": {
                "description": "Permission to create campaigns",
                "type": "boolean",
                "example": true
              },
              "edit": {
                "description": "Permission to edit campaigns",
                "type": "boolean",
                "example": true
              },
              "delete": {
                "description": "Permission to delete campaigns",
                "type": "boolean",
                "example": true
              },
              "duplicate": {
                "description": "Permission to duplicate campaigns",
                "type": "boolean",
                "example": true
              },
              "groups": {
                "description": "Permission to manage groups",
                "type": "boolean",
                "example": true
              },
              "deploy": {
                "description": "Permission to deploy campaigns",
                "type": "boolean",
                "example": true
              },
              "access_group": {
                "description": "Scope of access to campaign groups",
                "properties": {
                  "access_type": {
                    "description": "Access type (all or limited)",
                    "type": "string",
                    "example": "limited"
                  },
                  "campaigns_id_list": {
                    "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "example": [
                      1,
                      2,
                      3
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "automations_permissions": {
            "title": "ProfilePermissionAutomationsGlobal",
            "description": "Automations permissions",
            "properties": {
              "new": {
                "description": "Permission to create automations",
                "type": "boolean",
                "example": true
              },
              "edit": {
                "description": "Permission to edit automations",
                "type": "boolean",
                "example": true
              },
              "delete": {
                "description": "Permission to delete automations",
                "type": "boolean",
                "example": true
              }
            },
            "type": "object"
          },
          "reports_permissions": {
            "title": "ProfilePermissionReportsGlobal",
            "description": "Reports permissions",
            "properties": {
              "new": {
                "description": "Permission to create reports",
                "type": "boolean",
                "example": true
              },
              "edit": {
                "description": "Permission to edit reports",
                "type": "boolean",
                "example": true
              },
              "delete": {
                "description": "Permission to delete reports",
                "type": "boolean",
                "example": true
              },
              "export": {
                "description": "Permission to export reports",
                "type": "boolean",
                "example": true
              }
            },
            "type": "object"
          },
          "balance_permissions": {
            "title": "ProfilePermissionBalanceGlobal",
            "description": "Balance permissions",
            "properties": {
              "new": {
                "description": "Permission to create balance entries",
                "type": "boolean",
                "example": true
              },
              "delete": {
                "description": "Permission to delete balance entries",
                "type": "boolean",
                "example": true
              },
              "pay": {
                "description": "Permission to perform payments",
                "type": "boolean",
                "example": true
              }
            },
            "type": "object"
          },
          "tags_permissions": {
            "title": "ProfilePermissionTagsGlobal",
            "description": "Tags permissions",
            "properties": {
              "new": {
                "description": "Permission to create tags",
                "type": "boolean",
                "example": true
              },
              "delete": {
                "description": "Permission to delete tags",
                "type": "boolean",
                "example": true
              },
              "edit": {
                "description": "Permission to edit tags",
                "type": "boolean",
                "example": true
              }
            },
            "type": "object"
          },
          "transacional_permissions": {
            "title": "ProfilePermissionTransactionalGlobal",
            "description": "Transactional permissions",
            "properties": {
              "view": {
                "description": "Permission to view transactional messages",
                "type": "boolean",
                "example": true
              }
            },
            "type": "object"
          },
          "api_permissions": {
            "title": "ProfilePermissionApiGlobal",
            "description": "API permissions",
            "properties": {
              "client_data": {
                "description": "Access client data via API",
                "type": "boolean",
                "example": true
              },
              "new_campaign": {
                "description": "Create campaigns via API",
                "type": "boolean",
                "example": true
              },
              "deploy_campaign": {
                "description": "Deploy campaigns via API",
                "type": "boolean",
                "example": true
              },
              "list_campaign": {
                "description": "List campaigns via API",
                "type": "boolean",
                "example": true
              },
              "edit_campaign": {
                "description": "Edit campaigns via API",
                "type": "boolean",
                "example": true
              },
              "delete_campaign": {
                "description": "Delete campaigns via API",
                "type": "boolean",
                "example": true
              },
              "report_campaign": {
                "description": "Retrieve campaign reports via API",
                "type": "boolean",
                "example": true
              },
              "add_contacts": {
                "description": "Add contacts via API",
                "type": "boolean",
                "example": true
              },
              "edit_contacts": {
                "description": "Edit contacts via API",
                "type": "boolean",
                "example": true
              },
              "delete_contacts": {
                "description": "Delete contacts via API",
                "type": "boolean",
                "example": true
              },
              "view_contacts": {
                "description": "View contacts via API",
                "type": "boolean",
                "example": true
              },
              "list_lists": {
                "description": "List lists via API",
                "type": "boolean",
                "example": true
              },
              "new_list": {
                "description": "Create lists via API",
                "type": "boolean",
                "example": true
              },
              "edit_list": {
                "description": "Edit lists via API",
                "type": "boolean",
                "example": true
              },
              "delete_extra_field": {
                "description": "Delete extra fields via API",
                "type": "boolean",
                "example": true
              },
              "edit_extra_field": {
                "description": "Edit extra fields via API",
                "type": "boolean",
                "example": true
              },
              "new_extra_field": {
                "description": "Create extra fields via API",
                "type": "boolean",
                "example": true
              },
              "list_forms": {
                "description": "List forms via API",
                "type": "boolean",
                "example": true
              },
              "list_froms": {
                "description": "List forms via API (alias)",
                "type": "boolean",
                "example": true
              },
              "add_tag": {
                "description": "Add tags via API",
                "type": "boolean",
                "example": true
              },
              "delete_tag": {
                "description": "Delete tags via API",
                "type": "boolean",
                "example": true
              },
              "get_autobots": {
                "description": "Retrieve automations (autobots) via API",
                "type": "boolean",
                "example": true
              },
              "start_autobots": {
                "description": "Start automations (autobots) via API",
                "type": "boolean",
                "example": true
              },
              "create_api_key": {
                "description": "Create API keys",
                "type": "boolean",
                "example": true
              },
              "edit_api_key": {
                "description": "Edit API keys",
                "type": "boolean",
                "example": true
              }
            },
            "type": "object"
          },
          "senders_permissions": {
            "title": "ProfilePermissionSendersGlobal",
            "description": "Senders permissions",
            "properties": {
              "new": {
                "description": "Create senders",
                "type": "boolean",
                "example": true
              },
              "delete": {
                "description": "Delete senders",
                "type": "boolean",
                "example": true
              },
              "access": {
                "description": "Scope of access to senders",
                "properties": {
                  "access_type": {
                    "description": "Access type (all or limited)",
                    "type": "string",
                    "example": "limited"
                  },
                  "senders_id_list": {
                    "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "example": [
                      1,
                      2,
                      3
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "alerts_permissions": {
            "title": "ProfilePermissionAlertsGlobal",
            "description": "Alerts permissions",
            "properties": {
              "edit": {
                "description": "Edit alerts",
                "type": "boolean",
                "example": true
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "ProfilePermissionGeneralGlobal": {
        "title": "ProfilePermissionGeneralGlobal",
        "description": "General permissions",
        "properties": {
          "home_permissions": {
            "description": "Access to Home",
            "type": "boolean",
            "example": true
          },
          "lists_permissions": {
            "description": "Access to Lists",
            "type": "boolean",
            "example": true
          },
          "campaigns_permissions": {
            "description": "Access to Campaigns",
            "type": "boolean",
            "example": true
          },
          "automations_permissions": {
            "description": "Access to Automations",
            "type": "boolean",
            "example": true
          },
          "reports_permissions": {
            "description": "Access to Reports",
            "type": "boolean",
            "example": true
          },
          "balance_permissions": {
            "description": "Access to Balance",
            "type": "boolean",
            "example": true
          },
          "user_permissions": {
            "description": "Access to Users",
            "type": "boolean",
            "example": true
          },
          "commission_permissions": {
            "description": "Access to Commissions",
            "type": "boolean",
            "example": true
          },
          "client_data_permissions": {
            "description": "Access to Client Data",
            "type": "boolean",
            "example": true
          },
          "api_permissions": {
            "description": "Access to Marketing API V2",
            "type": "boolean",
            "example": true
          },
          "senders_permissions": {
            "description": "Access to Senders",
            "type": "boolean",
            "example": true
          },
          "my_account_permissions": {
            "description": "Access to My Account",
            "type": "boolean",
            "example": true
          },
          "tags_permissions": {
            "description": "Access to Tags",
            "type": "boolean",
            "example": true
          },
          "transacional_permissions": {
            "description": "Access to Transactional",
            "type": "boolean",
            "example": true
          },
          "forms_permissions": {
            "description": "Access to Forms",
            "type": "boolean",
            "example": true
          },
          "security_permissions": {
            "description": "Access to Security",
            "type": "boolean",
            "example": true
          },
          "track_engage_permissions": {
            "description": "Access to Track Engage",
            "type": "boolean",
            "example": true
          },
          "alerts_permissions": {
            "description": "Access to Alerts",
            "type": "boolean",
            "example": true
          }
        },
        "type": "object"
      },
      "ProfilePermissionUserGlobal": {
        "title": "ProfilePermissionUserGlobal",
        "description": "User permissions",
        "properties": {
          "add": {
            "description": "Permission to add users",
            "type": "boolean",
            "example": true
          },
          "edit": {
            "description": "Permission to edit users",
            "type": "boolean",
            "example": true
          },
          "delete": {
            "description": "Permission to delete users",
            "type": "boolean",
            "example": true
          },
          "profiles": {
            "description": "Permission to manage user profiles",
            "type": "boolean",
            "example": true
          },
          "logs": {
            "description": "Permission to view user logs",
            "type": "boolean",
            "example": true
          }
        },
        "type": "object"
      },
      "ProfilePermissionSecurityGlobal": {
        "title": "ProfilePermissionSecurityGlobal",
        "description": "Security permissions",
        "properties": {
          "edit": {
            "description": "Permission to edit security settings",
            "type": "boolean",
            "example": true
          }
        },
        "type": "object"
      },
      "ProfilePermissionFormsGlobal": {
        "title": "ProfilePermissionFormsGlobal",
        "description": "Forms permissions",
        "properties": {
          "new": {
            "description": "Permission to create forms",
            "type": "boolean",
            "example": true
          },
          "edit": {
            "description": "Permission to edit forms",
            "type": "boolean",
            "example": true
          },
          "delete": {
            "description": "Permission to delete forms",
            "type": "boolean",
            "example": true
          }
        },
        "type": "object"
      },
      "ProfilePermissionListsGlobal": {
        "title": "ProfilePermissionListsGlobal",
        "description": "Lists permissions",
        "properties": {
          "new": {
            "description": "Permission to create lists",
            "type": "boolean",
            "example": true
          },
          "edit": {
            "description": "Permission to edit lists",
            "type": "boolean",
            "example": true
          },
          "delete": {
            "description": "Permission to delete lists",
            "type": "boolean",
            "example": true
          },
          "duplicate": {
            "description": "Permission to duplicate lists",
            "type": "boolean",
            "example": true
          },
          "view_contacts": {
            "description": "Permission to view contacts",
            "type": "boolean",
            "example": true
          },
          "add_contacts": {
            "description": "Permission to add contacts",
            "type": "boolean",
            "example": true
          },
          "edit_contacts": {
            "description": "Permission to edit contacts",
            "type": "boolean",
            "example": true
          },
          "delete_contacts": {
            "description": "Permission to delete contacts",
            "type": "boolean",
            "example": true
          },
          "export_contacts": {
            "description": "Permission to export contacts",
            "type": "boolean",
            "example": true
          },
          "groups": {
            "description": "Permission to manage groups",
            "type": "boolean",
            "example": true
          },
          "access": {
            "description": "Scope of access to lists",
            "properties": {
              "access_type": {
                "description": "Access type (all or limited)",
                "type": "string",
                "example": "limited"
              },
              "lists_id_list": {
                "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "example": [
                  1,
                  2,
                  3
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "ProfilePermissionCampaignsGlobal": {
        "title": "ProfilePermissionCampaignsGlobal",
        "description": "Campaigns permissions",
        "properties": {
          "new": {
            "description": "Permission to create campaigns",
            "type": "boolean",
            "example": true
          },
          "edit": {
            "description": "Permission to edit campaigns",
            "type": "boolean",
            "example": true
          },
          "delete": {
            "description": "Permission to delete campaigns",
            "type": "boolean",
            "example": true
          },
          "duplicate": {
            "description": "Permission to duplicate campaigns",
            "type": "boolean",
            "example": true
          },
          "groups": {
            "description": "Permission to manage groups",
            "type": "boolean",
            "example": true
          },
          "deploy": {
            "description": "Permission to deploy campaigns",
            "type": "boolean",
            "example": true
          },
          "access_group": {
            "description": "Scope of access to campaign groups",
            "properties": {
              "access_type": {
                "description": "Access type (all or limited)",
                "type": "string",
                "example": "limited"
              },
              "campaigns_id_list": {
                "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "example": [
                  1,
                  2,
                  3
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "ProfilePermissionAutomationsGlobal": {
        "title": "ProfilePermissionAutomationsGlobal",
        "description": "Automations permissions",
        "properties": {
          "new": {
            "description": "Permission to create automations",
            "type": "boolean",
            "example": true
          },
          "edit": {
            "description": "Permission to edit automations",
            "type": "boolean",
            "example": true
          },
          "delete": {
            "description": "Permission to delete automations",
            "type": "boolean",
            "example": true
          }
        },
        "type": "object"
      },
      "ProfilePermissionReportsGlobal": {
        "title": "ProfilePermissionReportsGlobal",
        "description": "Reports permissions",
        "properties": {
          "new": {
            "description": "Permission to create reports",
            "type": "boolean",
            "example": true
          },
          "edit": {
            "description": "Permission to edit reports",
            "type": "boolean",
            "example": true
          },
          "delete": {
            "description": "Permission to delete reports",
            "type": "boolean",
            "example": true
          },
          "export": {
            "description": "Permission to export reports",
            "type": "boolean",
            "example": true
          }
        },
        "type": "object"
      },
      "ProfilePermissionBalanceGlobal": {
        "title": "ProfilePermissionBalanceGlobal",
        "description": "Balance permissions",
        "properties": {
          "new": {
            "description": "Permission to create balance entries",
            "type": "boolean",
            "example": true
          },
          "delete": {
            "description": "Permission to delete balance entries",
            "type": "boolean",
            "example": true
          },
          "pay": {
            "description": "Permission to perform payments",
            "type": "boolean",
            "example": true
          }
        },
        "type": "object"
      },
      "ProfilePermissionTagsGlobal": {
        "title": "ProfilePermissionTagsGlobal",
        "description": "Tags permissions",
        "properties": {
          "new": {
            "description": "Permission to create tags",
            "type": "boolean",
            "example": true
          },
          "delete": {
            "description": "Permission to delete tags",
            "type": "boolean",
            "example": true
          },
          "edit": {
            "description": "Permission to edit tags",
            "type": "boolean",
            "example": true
          }
        },
        "type": "object"
      },
      "ProfilePermissionTransactionalGlobal": {
        "title": "ProfilePermissionTransactionalGlobal",
        "description": "Transactional permissions",
        "properties": {
          "view": {
            "description": "Permission to view transactional messages",
            "type": "boolean",
            "example": true
          }
        },
        "type": "object"
      },
      "ProfilePermissionApiGlobal": {
        "title": "ProfilePermissionApiGlobal",
        "description": "API permissions",
        "properties": {
          "client_data": {
            "description": "Access client data via API",
            "type": "boolean",
            "example": true
          },
          "new_campaign": {
            "description": "Create campaigns via API",
            "type": "boolean",
            "example": true
          },
          "deploy_campaign": {
            "description": "Deploy campaigns via API",
            "type": "boolean",
            "example": true
          },
          "list_campaign": {
            "description": "List campaigns via API",
            "type": "boolean",
            "example": true
          },
          "edit_campaign": {
            "description": "Edit campaigns via API",
            "type": "boolean",
            "example": true
          },
          "delete_campaign": {
            "description": "Delete campaigns via API",
            "type": "boolean",
            "example": true
          },
          "report_campaign": {
            "description": "Retrieve campaign reports via API",
            "type": "boolean",
            "example": true
          },
          "add_contacts": {
            "description": "Add contacts via API",
            "type": "boolean",
            "example": true
          },
          "edit_contacts": {
            "description": "Edit contacts via API",
            "type": "boolean",
            "example": true
          },
          "delete_contacts": {
            "description": "Delete contacts via API",
            "type": "boolean",
            "example": true
          },
          "view_contacts": {
            "description": "View contacts via API",
            "type": "boolean",
            "example": true
          },
          "list_lists": {
            "description": "List lists via API",
            "type": "boolean",
            "example": true
          },
          "new_list": {
            "description": "Create lists via API",
            "type": "boolean",
            "example": true
          },
          "edit_list": {
            "description": "Edit lists via API",
            "type": "boolean",
            "example": true
          },
          "delete_extra_field": {
            "description": "Delete extra fields via API",
            "type": "boolean",
            "example": true
          },
          "edit_extra_field": {
            "description": "Edit extra fields via API",
            "type": "boolean",
            "example": true
          },
          "new_extra_field": {
            "description": "Create extra fields via API",
            "type": "boolean",
            "example": true
          },
          "list_forms": {
            "description": "List forms via API",
            "type": "boolean",
            "example": true
          },
          "list_froms": {
            "description": "List forms via API (alias)",
            "type": "boolean",
            "example": true
          },
          "add_tag": {
            "description": "Add tags via API",
            "type": "boolean",
            "example": true
          },
          "delete_tag": {
            "description": "Delete tags via API",
            "type": "boolean",
            "example": true
          },
          "get_autobots": {
            "description": "Retrieve automations (autobots) via API",
            "type": "boolean",
            "example": true
          },
          "start_autobots": {
            "description": "Start automations (autobots) via API",
            "type": "boolean",
            "example": true
          },
          "create_api_key": {
            "description": "Create API keys",
            "type": "boolean",
            "example": true
          },
          "edit_api_key": {
            "description": "Edit API keys",
            "type": "boolean",
            "example": true
          }
        },
        "type": "object"
      },
      "ProfilePermissionSendersGlobal": {
        "title": "ProfilePermissionSendersGlobal",
        "description": "Senders permissions",
        "properties": {
          "new": {
            "description": "Create senders",
            "type": "boolean",
            "example": true
          },
          "delete": {
            "description": "Delete senders",
            "type": "boolean",
            "example": true
          },
          "access": {
            "description": "Scope of access to senders",
            "properties": {
              "access_type": {
                "description": "Access type (all or limited)",
                "type": "string",
                "example": "limited"
              },
              "senders_id_list": {
                "description": "Allowed IDs — can be empty [] or contain IDs like [1, 2, 3]",
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "example": [
                  1,
                  2,
                  3
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "ProfilePermissionAlertsGlobal": {
        "title": "ProfilePermissionAlertsGlobal",
        "description": "Alerts permissions",
        "properties": {
          "edit": {
            "description": "Edit alerts",
            "type": "boolean",
            "example": true
          }
        },
        "type": "object"
      },
      "Country": {
        "title": "Country",
        "description": "Country schema",
        "properties": {
          "country": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "name": {
            "description": "Name of the country",
            "type": "string",
            "example": "Portugal"
          },
          "iso_code": {
            "description": "ISO code of the country",
            "type": "string",
            "example": "PT"
          },
          "currency": {
            "description": "Currency of the country",
            "type": "string",
            "example": "EUR"
          },
          "country_code": {
            "description": "Country code to be used in phone numbers",
            "type": "string",
            "example": "351"
          }
        },
        "type": "object"
      },
      "WebPushSite": {
        "title": "WebPush Site",
        "description": "WebPush site schema",
        "required": [
          "site",
          "list_id",
          "name"
        ],
        "properties": {
          "site_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "site": {
            "description": "Webpush site",
            "type": "string"
          },
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "app_code": {
            "description": "App code",
            "type": "string",
            "readOnly": true,
            "example": "7b89dfsb9a6ab6fbsfbasbd6f6"
          },
          "name": {
            "description": "Webpush name",
            "type": "string"
          }
        },
        "type": "object"
      },
      "PostWebpushSiteConflict": {
        "title": "PostWebpushSiteConflict",
        "description": "Error schema for post webpush site conflicts",
        "type": "object",
        "allOf": [
          {
            "title": "name_already_exists",
            "description": "Error schema for conflict when the provided webpush name already exists",
            "properties": {
              "errors": {
                "properties": {
                  "name_already_exists": {
                    "description": "Occurs when the provided webpush name already exists",
                    "type": "string",
                    "enum": [
                      "The provided name already exists"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "BaseConflict",
            "properties": {
              "type": {
                "description": "RFC for status code definitions",
                "type": "string",
                "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
              },
              "title": {
                "description": "Error title",
                "type": "string",
                "enum": [
                  "Conflict"
                ]
              },
              "status": {
                "description": "Status code",
                "type": "integer",
                "example": 409
              },
              "detail": {
                "description": "Error detail",
                "type": "string",
                "example": "The request could not be completed due to a conflict with the current state of the target resource"
              }
            },
            "type": "object"
          }
        ]
      },
      "name_already_exists": {
        "title": "name_already_exists",
        "description": "Error schema for conflict when the provided webpush name already exists",
        "properties": {
          "errors": {
            "properties": {
              "name_already_exists": {
                "description": "Occurs when the provided webpush name already exists",
                "type": "string",
                "enum": [
                  "The provided name already exists"
                ]
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "WebhookActionSchema": {
        "title": "WebhookActionSchema",
        "description": "Action that will trigger the webhook",
        "type": "string",
        "enum": [
          "forget_subscription",
          "change_consent",
          "web_push_bounce",
          "web_push_click",
          "web_push_delivered",
          "web_push_open",
          "web_push_send",
          "web_push_subscription",
          "web_push_unsubscription",
          "email_send",
          "email_open",
          "email_click",
          "email_soft_bounce",
          "email_hard_bounce",
          "sms_send",
          "sms_delivered",
          "voice_send",
          "unsubscribe",
          "subscription",
          "edit_subscription",
          "resubscription",
          "facebook_like",
          "social_share",
          "double_optin",
          "email_spam_complaint",
          "email_field_disable",
          "cellphone_field_disable",
          "phone_field_disable",
          "push_send",
          "push_open",
          "push_click",
          "push_received",
          "push_error",
          "push_canceled",
          "new_order",
          "cart_update",
          "goal_conversion",
          "product_view",
          "whatsapp_response"
        ]
      },
      "Webhook": {
        "title": "Webhook",
        "description": "Webhook schema",
        "required": [
          "list_id",
          "url",
          "actions"
        ],
        "properties": {
          "webhook_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "example": 1
          },
          "list_id": {
            "title": "ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "url": {
            "description": "Url to send the webhook <a href='/usecases/webhooks/' target='_blank'>[Go to webhooks documentation]</a>:\n *       Note: Only 'http' or 'https' protocols are supported.",
            "type": "string"
          },
          "actions": {
            "description": "Action that will trigger the webhook",
            "type": "array",
            "items": {
              "title": "WebhookActionSchema",
              "description": "Action that will trigger the webhook",
              "type": "string",
              "enum": [
                "forget_subscription",
                "change_consent",
                "web_push_bounce",
                "web_push_click",
                "web_push_delivered",
                "web_push_open",
                "web_push_send",
                "web_push_subscription",
                "web_push_unsubscription",
                "email_send",
                "email_open",
                "email_click",
                "email_soft_bounce",
                "email_hard_bounce",
                "sms_send",
                "sms_delivered",
                "voice_send",
                "unsubscribe",
                "subscription",
                "edit_subscription",
                "resubscription",
                "facebook_like",
                "social_share",
                "double_optin",
                "email_spam_complaint",
                "email_field_disable",
                "cellphone_field_disable",
                "phone_field_disable",
                "push_send",
                "push_open",
                "push_click",
                "push_received",
                "push_error",
                "push_canceled",
                "new_order",
                "cart_update",
                "goal_conversion",
                "product_view",
                "whatsapp_response"
              ]
            }
          },
          "fields": {
            "description": "Array of contact field IDs to be displayed in the webhook",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "type": "object"
      },
      "BadRequest": {
        "title": "Bad Request",
        "properties": {
          "type": {
            "description": "RFC for status code definitions",
            "type": "string",
            "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
          },
          "title": {
            "description": "Error title",
            "type": "string",
            "enum": [
              "Bad Request"
            ]
          },
          "status": {
            "description": "Status code",
            "type": "integer",
            "example": 400
          },
          "detail": {
            "description": "Error detail",
            "type": "string",
            "example": "The server cannot or will not process the request due to something that is perceived to be a client error"
          }
        },
        "type": "object"
      },
      "Conflict": {
        "title": "Conflict",
        "type": "object",
        "allOf": [
          {
            "properties": {
              "errors": {
                "description": "Information about the conflict",
                "type": "object"
              }
            },
            "type": "object"
          },
          {
            "title": "BaseConflict",
            "properties": {
              "type": {
                "description": "RFC for status code definitions",
                "type": "string",
                "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
              },
              "title": {
                "description": "Error title",
                "type": "string",
                "enum": [
                  "Conflict"
                ]
              },
              "status": {
                "description": "Status code",
                "type": "integer",
                "example": 409
              },
              "detail": {
                "description": "Error detail",
                "type": "string",
                "example": "The request could not be completed due to a conflict with the current state of the target resource"
              }
            },
            "type": "object"
          }
        ]
      },
      "BaseConflict": {
        "title": "BaseConflict",
        "properties": {
          "type": {
            "description": "RFC for status code definitions",
            "type": "string",
            "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
          },
          "title": {
            "description": "Error title",
            "type": "string",
            "enum": [
              "Conflict"
            ]
          },
          "status": {
            "description": "Status code",
            "type": "integer",
            "example": 409
          },
          "detail": {
            "description": "Error detail",
            "type": "string",
            "example": "The request could not be completed due to a conflict with the current state of the target resource"
          }
        },
        "type": "object"
      },
      "Forbidden": {
        "title": "Forbidden",
        "properties": {
          "type": {
            "description": "RFC for status code definitions",
            "type": "string",
            "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
          },
          "title": {
            "description": "Error title",
            "type": "string",
            "enum": [
              "Forbidden"
            ]
          },
          "status": {
            "description": "Status code",
            "type": "integer",
            "example": 403
          },
          "detail": {
            "description": "Error detail",
            "type": "string",
            "example": "The server understood the request but refuses to authorize it"
          }
        },
        "type": "object"
      },
      "InternalServerError": {
        "title": "Internal Server Error",
        "properties": {
          "type": {
            "description": "RFC for status code definitions",
            "type": "string",
            "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
          },
          "title": {
            "description": "Error title",
            "type": "string",
            "enum": [
              "Internal Server Error"
            ]
          },
          "status": {
            "description": "Status code",
            "type": "integer",
            "example": 500
          },
          "detail": {
            "description": "Error detail",
            "type": "string",
            "example": "The server encountered an unexpected condition that prevented it from fulfilling the request"
          }
        },
        "type": "object"
      },
      "NotFound": {
        "title": "Not Found",
        "properties": {
          "type": {
            "description": "RFC for status code definitions",
            "type": "string",
            "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
          },
          "title": {
            "description": "Error title",
            "type": "string",
            "enum": [
              "NotFound"
            ]
          },
          "status": {
            "description": "Status code",
            "type": "integer",
            "example": 404
          },
          "detail": {
            "description": "Error detail",
            "type": "string",
            "example": "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists"
          }
        },
        "type": "object"
      },
      "PayloadTooLarge": {
        "title": "Payload Too Large",
        "properties": {
          "type": {
            "description": "RFC for status code definitions",
            "type": "string",
            "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
          },
          "title": {
            "description": "Error title",
            "type": "string",
            "enum": [
              "Payload Too Large"
            ]
          },
          "status": {
            "description": "Status code",
            "type": "integer",
            "example": 413
          },
          "detail": {
            "description": "Error detail",
            "type": "string",
            "example": "Server is refusing to process a request because the request payload is larger than the server is willing or able to process."
          }
        },
        "type": "object"
      },
      "RequestEntityTooLarge": {
        "title": "Request Entity Too Large",
        "properties": {
          "type": {
            "description": "RFC for status code definitions",
            "type": "string",
            "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
          },
          "title": {
            "description": "Error title",
            "type": "string",
            "enum": [
              "Request Entity Too Large"
            ]
          },
          "status": {
            "description": "Status code",
            "type": "integer",
            "example": 314
          },
          "detail": {
            "description": "Error detail",
            "type": "string",
            "example": "The server is refusing to process a request because the request entity is larger than the server is willing or able to process."
          }
        },
        "type": "object"
      },
      "RequestTimeout": {
        "title": "Request Timeout",
        "properties": {
          "type": {
            "description": "RFC for status code definitions",
            "type": "string",
            "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
          },
          "title": {
            "description": "Error title",
            "type": "string",
            "enum": [
              "Request Timeout"
            ]
          },
          "status": {
            "description": "Status code",
            "type": "integer",
            "example": 408
          },
          "detail": {
            "description": "Error detail",
            "type": "string",
            "example": "The server did not receive a complete request from the client within the server’s allotted timeout period"
          }
        },
        "type": "object"
      },
      "ServiceUnavailable": {
        "title": "Service Unavailable",
        "properties": {
          "type": {
            "description": "RFC for status code definitions",
            "type": "string",
            "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
          },
          "title": {
            "description": "Error title",
            "type": "string",
            "enum": [
              "Service Unavailable"
            ]
          },
          "status": {
            "description": "Status code",
            "type": "integer",
            "example": 503
          },
          "detail": {
            "description": "Error detail",
            "type": "string",
            "example": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, whichwill likely be alleviated after some delay"
          }
        },
        "type": "object"
      },
      "TooManyRequests": {
        "title": "Too Many Requests",
        "properties": {
          "type": {
            "description": "RFC for status code definitions",
            "type": "string",
            "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
          },
          "title": {
            "description": "Error title",
            "type": "string",
            "enum": [
              "Too Many Requests"
            ]
          },
          "status": {
            "description": "Status code",
            "type": "integer",
            "example": 429
          },
          "detail": {
            "description": "Error detail",
            "type": "string",
            "example": "The user has sent too many requests in a given amount of time"
          }
        },
        "type": "object"
      },
      "Unauthorized": {
        "title": "Unauthorized",
        "properties": {
          "type": {
            "description": "RFC for status code definitions",
            "type": "string",
            "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
          },
          "title": {
            "description": "Error title",
            "type": "string",
            "enum": [
              "Unauthorized"
            ]
          },
          "status": {
            "description": "Status code",
            "type": "integer",
            "example": 401
          },
          "detail": {
            "description": "Error detail",
            "type": "string",
            "example": "The request has not been applied because it lacks valid authentication credentials for the target resource"
          }
        },
        "type": "object"
      },
      "UnprocessableEntity": {
        "title": "Unprocessable Entity",
        "properties": {
          "errors": {
            "description": "Information about the input validation",
            "type": "object"
          },
          "type": {
            "description": "RFC for status code definitions",
            "type": "string",
            "example": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
          },
          "title": {
            "description": "Error title",
            "type": "string",
            "enum": [
              "Unprocessable Entity"
            ]
          },
          "status": {
            "description": "Status code",
            "type": "integer",
            "example": 422
          },
          "detail": {
            "description": "Error detail",
            "type": "string",
            "example": "The server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions"
          }
        },
        "type": "object"
      },
      "id": {
        "title": "ID",
        "type": "integer",
        "minimum": 1,
        "readOnly": true,
        "example": 1
      },
      "queryId": {
        "title": "ID",
        "type": "integer",
        "minimum": 1,
        "example": 1
      },
      "hash": {
        "title": "Hash",
        "type": "string",
        "pattern": "[a-zA-Z0-9_-]*",
        "readOnly": true
      },
      "pushAppId": {
        "title": "Push App Id",
        "type": "string",
        "pattern": "[a-zA-Z0-9_-]*"
      },
      "language": {
        "title": "language",
        "description": "Current language",
        "type": "string",
        "default": "en",
        "enum": [
          "en",
          "pt",
          "br",
          "es",
          "de",
          "hu",
          "fr"
        ]
      },
      "date": {
        "title": "date",
        "description": "The date",
        "type": "string",
        "format": "date",
        "example": "YYYY-MM-DD"
      },
      "date_time": {
        "title": "date_time",
        "description": "The date and time",
        "type": "string",
        "format": "date-time",
        "example": "YYYY-MM-DD hh:mm:ss"
      },
      "BulkActionResponse": {
        "title": "BulkActionResponse",
        "description": "Bulk action response schema",
        "properties": {
          "success": {
            "description": "Array of succeeded operations",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          },
          "error": {
            "description": "Array of unsuccessful operations",
            "type": "array",
            "items": {
              "title": "ID",
              "type": "integer",
              "minimum": 1,
              "example": 1
            }
          }
        },
        "type": "object",
        "example": {
          "success": [
            1,
            3
          ],
          "error": [
            2
          ]
        }
      },
      "AcceptedResponse": {
        "title": "AcceptedResponse",
        "description": "Accepted response schema",
        "properties": {
          "result": {
            "type": "string",
            "enum": [
              "success"
            ]
          }
        },
        "type": "object"
      },
      "FieldId": {
        "title": "FieldId",
        "type": "string",
        "pattern": "[a-zA-Z0-9_-]*"
      }
    },
    "parameters": {
      "automation_id": {
        "name": "automation_id",
        "in": "path",
        "description": "ID of the Automation",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "example": 1
        }
      },
      "campaign_hash": {
        "name": "campaign_hash",
        "in": "path",
        "description": "Hash of the Campaign",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "Hash",
          "type": "string",
          "pattern": "[a-zA-Z0-9_-]*",
          "readOnly": true
        }
      },
      "group_id": {
        "name": "group_id",
        "in": "path",
        "description": "ID of the Campaign Group",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "readOnly": true,
          "example": 1
        }
      },
      "contact_id": {
        "name": "contact_id",
        "in": "path",
        "description": "ID of the Contact",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "Contact ID",
          "type": "string",
          "pattern": "[a-fA-F\\d]{10}"
        }
      },
      "show_removed": {
        "name": "show_removed",
        "in": "query",
        "description": "Show removed contacts",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "title": "Show removed contacts",
          "type": "boolean",
          "default": false,
          "example": true
        }
      },
      "cart_id": {
        "name": "cart_id",
        "in": "path",
        "description": "ID of the Cart",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "type": "string"
        }
      },
      "catalog_id": {
        "name": "catalog_id",
        "in": "path",
        "description": "ID of the Catalog",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "example": 1
        }
      },
      "order_id": {
        "name": "order_id",
        "in": "path",
        "description": "ID of the Order",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "type": "string"
        }
      },
      "domain": {
        "name": "domain",
        "in": "path",
        "description": "Domain or phisical store alias are accepted",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "type": "string"
        }
      },
      "product_identifier": {
        "name": "product_identifier",
        "in": "path",
        "description": "ID of the Product",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "type": "string",
          "pattern": "[a-zA-Z0-9\\_\\-.]"
        }
      },
      "field_id": {
        "name": "field_id",
        "in": "path",
        "description": "ID of the Field",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "example": 1
        }
      },
      "option_id": {
        "name": "option_id",
        "in": "path",
        "description": "ID of the field option",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "example": 1
        }
      },
      "form_id": {
        "name": "form_id",
        "in": "path",
        "description": "ID of the Form",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "readOnly": true,
          "example": 1
        }
      },
      "list_id": {
        "name": "list_id",
        "in": "path",
        "description": "ID of the List",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "example": 1
        }
      },
      "operation_id": {
        "name": "operation_id",
        "in": "query",
        "description": "Operation id",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "readOnly": true,
          "example": 1
        }
      },
      "advanced_report_id": {
        "name": "advanced_report_id",
        "in": "path",
        "description": "ID of the advanced report",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "example": 1
        }
      },
      "segment_id": {
        "name": "segment_id",
        "in": "path",
        "description": "ID of the Segment",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "type": "string"
        }
      },
      "sender_id": {
        "name": "sender_id",
        "in": "path",
        "description": "ID of the Sender",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "example": 1
        }
      },
      "status": {
        "name": "status",
        "in": "query",
        "description": "Status filter",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "type": "string",
          "enum": [
            "active",
            "moderation",
            "rejected"
          ]
        }
      },
      "suppression_id": {
        "name": "suppression_id",
        "in": "path",
        "description": "ID of Suppression List",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "example": 1
        }
      },
      "tag_id": {
        "name": "tag_id",
        "in": "path",
        "description": "ID of the Tag",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "readOnly": true,
          "example": 1
        }
      },
      "user_id": {
        "name": "user_id",
        "in": "path",
        "description": "ID of the User",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "example": 1
        }
      },
      "profile_id": {
        "name": "profile_id",
        "in": "path",
        "description": "ID of the User Profile",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "example": 1
        }
      },
      "webhook_id": {
        "name": "webhook_id",
        "in": "path",
        "description": "ID of the Webhook",
        "required": true,
        "allowEmptyValue": false,
        "schema": {
          "title": "ID",
          "type": "integer",
          "minimum": 1,
          "example": 1
        }
      },
      "created_min": {
        "name": "created_min",
        "in": "query",
        "description": "Created initial date",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "title": "date_time",
          "description": "The date and time",
          "type": "string",
          "format": "date-time",
          "example": "YYYY-MM-DD hh:mm:ss"
        }
      },
      "created_max": {
        "name": "created_max",
        "in": "query",
        "description": "Created finish",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "title": "date_time",
          "description": "The date and time",
          "type": "string",
          "format": "date-time",
          "example": "YYYY-MM-DD hh:mm:ss"
        }
      },
      "updated_min": {
        "name": "updated_min",
        "in": "query",
        "description": "Updated initial",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "title": "date_time",
          "description": "The date and time",
          "type": "string",
          "format": "date-time",
          "example": "YYYY-MM-DD hh:mm:ss"
        }
      },
      "updated_max": {
        "name": "updated_max",
        "in": "query",
        "description": "Updated finish",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "title": "date_time",
          "description": "The date and time",
          "type": "string",
          "format": "date-time",
          "example": "YYYY-MM-DD hh:mm:ss"
        }
      },
      "start_date_min": {
        "name": "start_date_min",
        "in": "query",
        "description": "Start date initial",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "title": "date_time",
          "description": "The date and time",
          "type": "string",
          "format": "date-time",
          "example": "YYYY-MM-DD hh:mm:ss"
        }
      },
      "start_date_max": {
        "name": "start_date_max",
        "in": "query",
        "description": "Start date finish",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "title": "date_time",
          "description": "The date and time",
          "type": "string",
          "format": "date-time",
          "example": "YYYY-MM-DD hh:mm:ss"
        }
      },
      "end_date_min": {
        "name": "end_date_min",
        "in": "query",
        "description": "End Date initial",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "title": "date_time",
          "description": "The date and time",
          "type": "string",
          "format": "date-time",
          "example": "YYYY-MM-DD hh:mm:ss"
        }
      },
      "end_date_max": {
        "name": "end_date_max",
        "in": "query",
        "description": "End Date finish",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "title": "date_time",
          "description": "The date and time",
          "type": "string",
          "format": "date-time",
          "example": "YYYY-MM-DD hh:mm:ss"
        }
      },
      "schedule_date_min": {
        "name": "schedule_date_min",
        "in": "query",
        "description": "Schedule Date initial",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "title": "date_time",
          "description": "The date and time",
          "type": "string",
          "format": "date-time",
          "example": "YYYY-MM-DD hh:mm:ss"
        }
      },
      "schedule_date_max": {
        "name": "schedule_date_max",
        "in": "query",
        "description": "Schedule Date finish",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "title": "date_time",
          "description": "The date and time",
          "type": "string",
          "format": "date-time",
          "example": "YYYY-MM-DD hh:mm:ss"
        }
      },
      "limit": {
        "name": "limit",
        "in": "query",
        "description": "Number of items to return",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "type": "integer",
          "default": 10,
          "maximum": 1000,
          "minimum": 1
        }
      },
      "offset": {
        "name": "offset",
        "in": "query",
        "description": "Element offset (starting at zero for the first element)",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "order": {
        "name": "order",
        "in": "query",
        "description": "Type of order",
        "required": false,
        "allowEmptyValue": false,
        "schema": {
          "type": "string",
          "default": "desc",
          "enum": [
            "asc",
            "desc"
          ]
        }
      }
    },
    "securitySchemes": {
      "Apikey": {
        "type": "apiKey",
        "name": "Apikey",
        "in": "header"
      }
    }
  },
  "tags": [
    {
      "name": "Push",
      "description": "Getting started: <br /> <br /> To start sending push notifications you simply have to integrate with our server and import our libraries. Follow the link to find out how! <a href='https://developers.e-goi.com/push/' target='_blank'>https://developers.e-goi.com/push/</a>"
    }
  ],
  "x-tagGroups": [
    {
      "name": "Api Methods",
      "tags": [
        "Authentication",
        "Automations",
        "Automations System",
        "Campaigns",
        "Email",
        "Push",
        "Sms",
        "Smart Sms",
        "Voice",
        "Webpush",
        "Campaign Groups",
        "Campaign Templates",
        "Ecommerce",
        "Ecommerce Activity",
        "TrackEngage",
        "Connected Sites",
        "Contacts",
        "Fields",
        "Forms",
        "Lists",
        "My Account",
        "Operations",
        "Ping",
        "Reports",
        "Advanced Reports",
        "Segments",
        "Senders",
        "CNames",
        "Suppression List",
        "Tags",
        "Templates",
        "Users",
        "Utilities",
        "Web Hooks"
      ]
    }
  ],
  "x-servers": [
    {
      "url": "https://api.egoiapp.com",
      "description": "Egoi Public API Server"
    }
  ]
}