{
  "openapi": "3.0.1",
  "info": {
    "title": "AY API 1.0",
    "version": "1.0"
  },
  "paths": {
    "/api/v1/AccessAuth/VerifyNumber": {
      "post": {
        "tags": [
          "AccessAuth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PhoneNumberRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PhoneNumberRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PhoneNumberRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/AccessAuth/AstroSignInWithEmail": {
      "post": {
        "tags": [
          "AccessAuth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AstroSignInWithEmailRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AstroSignInWithEmailRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AstroSignInWithEmailRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/AccessAuth/SignInWithEmail": {
      "post": {
        "tags": [
          "AccessAuth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignInWithEmailRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SignInWithEmailRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SignInWithEmailRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/AccessAuth/GetAppSignupScreenBanner": {
      "get": {
        "tags": [
          "AccessAuth"
        ],
        "parameters": [
          {
            "name": "CountryId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IsFreeConsultation",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/AccessAuth/VerifyOtp": {
      "post": {
        "tags": [
          "AccessAuth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyOtpRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyOtpRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyOtpRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/BasicAuth/CreateUser": {
      "post": {
        "tags": [
          "BasicAuth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/BasicAuth/WebCreateUser": {
      "post": {
        "tags": [
          "BasicAuth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/BasicAuth/RefreshToken": {
      "post": {
        "tags": [
          "BasicAuth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshTokenRQ"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshTokenRQ"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshTokenRQ"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/BearerAuth/VerifyOtp": {
      "post": {
        "tags": [
          "BearerAuth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyOtpRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyOtpRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyOtpRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/BearerAuth/GenerateOtp": {
      "post": {
        "tags": [
          "BearerAuth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendOtpRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendOtpRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendOtpRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/BearerAuth/LogoutAstrologer": {
      "post": {
        "tags": [
          "BearerAuth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/NoAuth/GetAuthorisationKeys": {
      "get": {
        "tags": [
          "NoAuth"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AstroSignInWithEmailRequest": {
        "required": [
          "emailAddress",
          "password"
        ],
        "type": "object",
        "properties": {
          "deviceId": {
            "type": "string",
            "nullable": true
          },
          "deviceType": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "minLength": 1,
            "type": "string"
          },
          "password": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "CreateUserRequestDto": {
        "required": [
          "deviceId",
          "deviceType",
          "userType"
        ],
        "type": "object",
        "properties": {
          "deviceId": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          },
          "isAppSetupId": {
            "type": "boolean"
          },
          "adId": {
            "type": "string",
            "nullable": true
          },
          "deviceType": {
            "minLength": 1,
            "type": "string"
          },
          "gcmRegistrationId": {
            "type": "string",
            "nullable": true
          },
          "countryId": {
            "type": "string",
            "nullable": true
          },
          "userType": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PhoneNumberRequest": {
        "type": "object",
        "properties": {
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "phoneCode": {
            "type": "string",
            "nullable": true
          },
          "phonenumberWithPhonecode": {
            "type": "string",
            "nullable": true
          },
          "isWhatsAppOpted": {
            "type": "boolean",
            "nullable": true
          },
          "trueCallRequest": {
            "$ref": "#/components/schemas/TruecallerTokenRequest"
          },
          "trueCallerToken": {
            "$ref": "#/components/schemas/TrueCallerVerifyDto"
          },
          "userType": {
            "type": "string",
            "nullable": true
          },
          "phoneDeviceId": {
            "type": "string",
            "nullable": true
          },
          "deviceType": {
            "type": "string",
            "nullable": true
          },
          "isReactivation": {
            "type": "boolean",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RefreshTokenRQ": {
        "type": "object",
        "properties": {
          "accessToken": {
            "type": "string",
            "nullable": true
          },
          "accessKey": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SendOtpRequestDto": {
        "required": [
          "countryCode",
          "isResend",
          "mobileNumber",
          "phoneCode",
          "platform"
        ],
        "type": "object",
        "properties": {
          "phoneCode": {
            "minLength": 1,
            "type": "string"
          },
          "mobileNumber": {
            "minLength": 1,
            "type": "string"
          },
          "phoneDeviceId": {
            "type": "string",
            "nullable": true
          },
          "countryCode": {
            "minLength": 1,
            "type": "string"
          },
          "platform": {
            "minLength": 1,
            "type": "string"
          },
          "isResend": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SignInWithEmailRequestDto": {
        "required": [
          "deviceId",
          "emailAddressOrPhoneNumber",
          "password"
        ],
        "type": "object",
        "properties": {
          "userIntentId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "deviceId": {
            "minLength": 1,
            "type": "string"
          },
          "emailAddressOrPhoneNumber": {
            "minLength": 1,
            "pattern": "^([a-zA-Z0-9._%+\\-]+@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]{2,}|\\+?[0-9]{7,15})$",
            "type": "string"
          },
          "password": {
            "maxLength": 128,
            "minLength": 6,
            "type": "string"
          },
          "isWhatsAppOpted": {
            "type": "boolean"
          },
          "sourceEntity": {
            "$ref": "#/components/schemas/TokenEntity"
          },
          "deviceType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TokenEntity": {
        "type": "object",
        "properties": {
          "userType": {
            "$ref": "#/components/schemas/UserType"
          },
          "entityId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "TrueCallerVerifyDto": {
        "type": "object",
        "properties": {
          "signature": {
            "type": "string",
            "nullable": true
          },
          "payload": {
            "type": "string",
            "nullable": true
          },
          "phonenumberWithPhonecode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TruecallerTokenRequest": {
        "type": "object",
        "properties": {
          "grantType": {
            "type": "string",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "codeVerifier": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13
        ],
        "type": "integer",
        "format": "int32"
      },
      "VerifyOtpRequestDto": {
        "required": [
          "countryCode",
          "mobileNumber",
          "otp",
          "phoneCode",
          "userType"
        ],
        "type": "object",
        "properties": {
          "deviceId": {
            "type": "string",
            "nullable": true
          },
          "deviceType": {
            "type": "string",
            "nullable": true
          },
          "phoneCode": {
            "minLength": 1,
            "type": "string"
          },
          "mobileNumber": {
            "minLength": 1,
            "type": "string"
          },
          "countryCode": {
            "minLength": 1,
            "type": "string"
          },
          "otp": {
            "type": "integer",
            "format": "int32"
          },
          "userType": {
            "minLength": 1,
            "type": "string"
          },
          "isReactivation": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}