{
  "openapi": "3.0.1",
  "info": {
    "title": "Whisp Service v1",
    "version": "v1"
  },
  "paths": {
    "/Search/byphone": {
      "post": {
        "tags": [
          "Search"
        ],
        "summary": "Lookup phone number",
        "requestBody": {
          "description": "Request body",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchByPhoneRequestDto"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchByPhoneRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchByPhoneRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchByPhoneRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/lookup": {
      "post": {
        "tags": [
          "Search"
        ],
        "summary": "Lookup phone number by api",
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": { }
            },
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Subscription/optout": {
      "post": {
        "tags": [
          "Subscription"
        ],
        "summary": "Lookup phone number",
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": { }
            },
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Subscription/optin": {
      "post": {
        "tags": [
          "Subscription"
        ],
        "summary": "Lookup phone number",
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": { }
            },
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Subscription/status": {
      "post": {
        "tags": [
          "Subscription"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Subscription/optstatus": {
      "post": {
        "tags": [
          "Subscription"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionStatusRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ClientDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "clientIdentifier": {
            "type": "string",
            "nullable": true
          },
          "billingCode": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "SearchByPhoneRequestDto": {
        "type": "object",
        "properties": {
          "hardDisableEndato": {
            "type": "boolean"
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "token": {
            "type": "string",
            "nullable": true
          },
          "forceLookup": {
            "type": "boolean"
          },
          "enableExtendedLookup": {
            "type": "boolean"
          },
          "trackingId": {
            "type": "string",
            "nullable": true
          },
          "widgetIdentifier": {
            "type": "string",
            "nullable": true
          },
          "client": {
            "$ref": "#/components/schemas/ClientDto"
          }
        },
        "additionalProperties": false
      },
      "SubscriptionRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "userPhone": {
            "type": "string",
            "nullable": true
          },
          "providerNumber": {
            "type": "string",
            "nullable": true
          },
          "trackingId": {
            "type": "string",
            "nullable": true
          },
          "clientId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "clientIdentifier": {
            "type": "string",
            "nullable": true
          },
          "planId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "planIdentifier": {
            "type": "string",
            "nullable": true
          },
          "widgetIdentifier": {
            "type": "string",
            "nullable": true
          },
          "messageBody": {
            "type": "string",
            "nullable": true
          },
          "commChannel": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubscriptionStatusRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}