{
  "openapi": "3.0.1",
  "info": {
    "title": "CMG Web API",
    "description": "API endpoints for CMG Web Application",
    "contact": {
      "name": "CMG Financial",
      "email": "support@cmgfi.com"
    },
    "version": "v1"
  },
  "paths": {
    "/api/v1/branches/{nmls}": {
      "get": {
        "tags": [
          "Branches"
        ],
        "parameters": [
          {
            "name": "nmls",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/branches/{nmls}/{addressSlug}": {
      "get": {
        "tags": [
          "Branches"
        ],
        "parameters": [
          {
            "name": "nmls",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "addressSlug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/branches/information": {
      "get": {
        "tags": [
          "Branches"
        ],
        "parameters": [
          {
            "name": "nmls",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BranchInformationResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchInformationResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchInformationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/company/get-information": {
      "get": {
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "name": "companyid",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyname",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/company/reviews": {
      "get": {
        "tags": [
          "CompanyReviews"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CompanyReviewsResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CompanyReviewsResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CompanyReviewsResponse"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/loanofficers/getcompanyid": {
      "get": {
        "tags": [
          "LoanOfficers"
        ],
        "parameters": [
          {
            "name": "nmls",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/loanofficers/mysite/{slug}": {
      "get": {
        "tags": [
          "LoanOfficers"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/loanofficers/{nml}/mysite": {
      "get": {
        "tags": [
          "LoanOfficers"
        ],
        "parameters": [
          {
            "name": "nml",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/loanofficers/{nmls}/video-testimonials": {
      "get": {
        "tags": [
          "LoanOfficers"
        ],
        "parameters": [
          {
            "name": "nmls",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/loanofficers/{nmls}/testimonials": {
      "get": {
        "tags": [
          "LoanOfficers"
        ],
        "parameters": [
          {
            "name": "nmls",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "provider",
            "in": "query",
            "schema": {
              "enum": [
                "TT",
                "ZW",
                "GD",
                "YL",
                "UG",
                "UF",
                "TP",
                "ALL"
              ],
              "type": "string",
              "description": "Reviews provider filter",
              "default": "ALL"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/search/unified": {
      "get": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "brand",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lat",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "lng",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/search/branch": {
      "get": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "brand",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lat",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "lng",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/teams/{slug}": {
      "get": {
        "tags": [
          "Teams"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TeamResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/teams/all": {
      "get": {
        "tags": [
          "Teams"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TeamResponsePagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamResponsePagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamResponsePagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/teams/{slug}/members": {
      "get": {
        "tags": [
          "Teams"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TeamMembersResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamMembersResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamMembersResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/teams/{slug}/video-testimonials": {
      "get": {
        "tags": [
          "Teams"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TeamVideosResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamVideosResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamVideosResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/teams/{slug}/reviews": {
      "get": {
        "tags": [
          "Teams"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "maxReviews",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "provider",
            "in": "query",
            "schema": {
              "enum": [
                "TT",
                "ZW",
                "GD",
                "YL",
                "UG",
                "UF",
                "TP",
                "ALL"
              ],
              "type": "string",
              "description": "Reviews provider filter",
              "default": "ALL"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TeamReviewsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamReviewsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamReviewsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AddressDto": {
        "type": "object",
        "properties": {
          "street": {
            "type": "string",
            "nullable": true
          },
          "street2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          },
          "fullAddress": {
            "type": "string",
            "nullable": true
          },
          "latitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "longitude": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AggregateSummaryDto": {
        "type": "object",
        "properties": {
          "averageRating": {
            "type": "number",
            "format": "double"
          },
          "totalReviews": {
            "type": "integer",
            "format": "int32"
          },
          "totalProviders": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BranchEmployeeDto": {
        "type": "object",
        "properties": {
          "nmls": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "portraitUrl": {
            "type": "string",
            "nullable": true
          },
          "isBranchManager": {
            "type": "boolean"
          },
          "mySiteUrl": {
            "type": "string",
            "nullable": true
          },
          "applyOnlineUrl": {
            "type": "string",
            "nullable": true
          },
          "production": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BranchInformationDto": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "branchName": {
            "type": "string",
            "nullable": true
          },
          "branchUrl": {
            "type": "string",
            "nullable": true
          },
          "branchNMLS": {
            "type": "string",
            "nullable": true
          },
          "branchAddress": {
            "$ref": "#/components/schemas/AddressDto"
          },
          "branchContactEmail": {
            "type": "string",
            "nullable": true
          },
          "branchApplyNowURL": {
            "type": "string",
            "nullable": true
          },
          "branchContactUsText": {
            "type": "string",
            "nullable": true
          },
          "branchContactPhone": {
            "type": "string",
            "nullable": true
          },
          "branchMembers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BranchEmployeeDto"
            },
            "nullable": true
          },
          "branchHeading": {
            "type": "string",
            "nullable": true
          },
          "branchSubHeading": {
            "type": "string",
            "nullable": true
          },
          "branchTheme": {
            "type": "string",
            "nullable": true
          },
          "branchCustomLogo": {
            "type": "string",
            "nullable": true
          },
          "branchTestimonials": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestimonialProviderDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BranchInformationResponse": {
        "type": "object",
        "properties": {
          "branches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BranchInformationDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CompanyReviewsResponse": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "format": "int32"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "nmls": {
            "type": "string",
            "nullable": true
          },
          "aggregateSummary": {
            "$ref": "#/components/schemas/AggregateSummaryDto"
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReviewProviderDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompanyTestimonialDto": {
        "type": "object",
        "properties": {
          "author": {
            "type": "string",
            "nullable": true
          },
          "formattedAuthorName": {
            "type": "string",
            "nullable": true
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "rating": {
            "type": "number",
            "format": "double"
          },
          "text": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ContactDto": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "fax": {
            "type": "string",
            "nullable": true
          },
          "officePhone": {
            "type": "string",
            "nullable": true
          },
          "mobilePhone": {
            "type": "string",
            "nullable": true
          },
          "preferredPhone": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ErrorDetail": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "requestId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "ReviewProviderDto": {
        "type": "object",
        "properties": {
          "providerCode": {
            "type": "string",
            "nullable": true
          },
          "providerName": {
            "type": "string",
            "nullable": true
          },
          "providerLogo": {
            "type": "string",
            "nullable": true
          },
          "averageRating": {
            "type": "number",
            "format": "double"
          },
          "totalReviews": {
            "type": "integer",
            "format": "int32"
          },
          "reviewsPageUrl": {
            "type": "string",
            "nullable": true
          },
          "testimonials": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompanyTestimonialDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SocialMediaDto": {
        "type": "object",
        "properties": {
          "facebook": {
            "type": "string",
            "nullable": true
          },
          "instagram": {
            "type": "string",
            "nullable": true
          },
          "linkedIn": {
            "type": "string",
            "nullable": true
          },
          "twitter": {
            "type": "string",
            "nullable": true
          },
          "youTube": {
            "type": "string",
            "nullable": true
          },
          "pinterest": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TeamAboutUsComponents": {
        "type": "object",
        "properties": {
          "heading": {
            "type": "string",
            "nullable": true
          },
          "bodyText": {
            "type": "string",
            "nullable": true
          },
          "imageUrl": {
            "type": "string",
            "nullable": true
          },
          "videoUrl": {
            "type": "string",
            "nullable": true
          },
          "videoUrlPreview": {
            "type": "string",
            "nullable": true
          },
          "panelFormat": {
            "type": "string",
            "nullable": true
          },
          "panelName": {
            "type": "string",
            "nullable": true
          },
          "panelType": {
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TeamHeroDto": {
        "type": "object",
        "properties": {
          "heading": {
            "type": "string",
            "nullable": true
          },
          "subheading": {
            "type": "string",
            "nullable": true
          },
          "backgroundTheme": {
            "type": "string",
            "nullable": true
          },
          "backgroundImageUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TeamMemberDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "employeeId": {
            "type": "string",
            "nullable": true
          },
          "primaryByteUserID": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "mobilePhone": {
            "type": "string",
            "nullable": true
          },
          "nmls": {
            "type": "string",
            "nullable": true
          },
          "portraitURL": {
            "type": "string",
            "nullable": true
          },
          "streetAddress": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "middleName": {
            "type": "string",
            "nullable": true
          },
          "hasMySite": {
            "type": "boolean"
          },
          "address": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "videoURL": {
            "type": "string",
            "nullable": true
          },
          "bioDescription": {
            "type": "string",
            "nullable": true
          },
          "statesLicensed": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TeamMembersResponse": {
        "type": "object",
        "properties": {
          "teamId": {
            "type": "integer",
            "format": "int32"
          },
          "teamSlug": {
            "type": "string",
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TeamMemberDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TeamResponse": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "companyId": {
            "type": "integer",
            "format": "int32"
          },
          "contact": {
            "$ref": "#/components/schemas/ContactDto"
          },
          "address": {
            "$ref": "#/components/schemas/AddressDto"
          },
          "hero": {
            "$ref": "#/components/schemas/TeamHeroDto"
          },
          "leaders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TeamMemberDto"
            },
            "nullable": true
          },
          "socialMedia": {
            "$ref": "#/components/schemas/SocialMediaDto"
          },
          "applyNowUrl": {
            "type": "string",
            "nullable": true
          },
          "applyNowUrlType": {
            "type": "string",
            "nullable": true
          },
          "assignmentPreference": {
            "type": "string",
            "nullable": true
          },
          "assignmentPreferenceLO": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dedicatedAssigner": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "contactUsText": {
            "type": "string",
            "nullable": true
          },
          "teamMembers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TeamMemberDto"
            },
            "nullable": true
          },
          "testimonials": {
            "$ref": "#/components/schemas/TeamTestimonialsDto"
          },
          "videoTestimonials": {
            "$ref": "#/components/schemas/TeamVideosResponse"
          },
          "customLogo": {
            "type": "string",
            "nullable": true
          },
          "statesLicensed": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "minReviews": {
            "type": "integer",
            "format": "int32"
          },
          "isPublished": {
            "type": "boolean"
          },
          "isVisible": {
            "type": "boolean"
          },
          "isPublishedInCms": {
            "type": "boolean"
          },
          "aboutUsComponents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TeamAboutUsComponents"
            },
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TeamResponsePagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TeamResponse"
            },
            "nullable": true
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "TeamReviewDto": {
        "type": "object",
        "properties": {
          "testimonial": {
            "type": "string",
            "nullable": true
          },
          "borrower": {
            "type": "string",
            "nullable": true
          },
          "rating": {
            "type": "number",
            "format": "double"
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "provider": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TeamReviewsResponse": {
        "type": "object",
        "properties": {
          "teamSlug": {
            "type": "string",
            "nullable": true
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "maxReviews": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          },
          "countsByProvider": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32",
              "nullable": true
            },
            "nullable": true
          },
          "reviews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TeamReviewDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TeamTestimonialsDto": {
        "type": "object",
        "properties": {
          "testimonialTreeEnabled": {
            "type": "boolean"
          },
          "testimonialTreeAverageRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "testimonialTreeTotalReviews": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "testimonialTreeURL": {
            "type": "string",
            "nullable": true
          },
          "testimonialTreeIconURL": {
            "type": "string",
            "nullable": true
          },
          "zillowEnabled": {
            "type": "boolean"
          },
          "zillowAverageRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "zillowTotalReviews": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "zillowURL": {
            "type": "string",
            "nullable": true
          },
          "zillowIconURL": {
            "type": "string",
            "nullable": true
          },
          "googleEnabled": {
            "type": "boolean"
          },
          "googleAverageRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "googleTotalReviews": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "googleURL": {
            "type": "string",
            "nullable": true
          },
          "googleIconURL": {
            "type": "string",
            "nullable": true
          },
          "facebookEnabled": {
            "type": "boolean"
          },
          "facebookAverageRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "facebookTotalReviews": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "facebookURL": {
            "type": "string",
            "nullable": true
          },
          "facebookIconURL": {
            "type": "string",
            "nullable": true
          },
          "trustpilotEnabled": {
            "type": "boolean"
          },
          "trustpilotAverageRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "trustpilotTotalReviews": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "trustpilotURL": {
            "type": "string",
            "nullable": true
          },
          "trustpilotIconURL": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TeamVideoLoanOfficerDto": {
        "type": "object",
        "properties": {
          "nmls": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "photoUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TeamVideoTestimonialDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "videoUrl": {
            "type": "string",
            "nullable": true
          },
          "thumbnailUrl": {
            "type": "string",
            "nullable": true
          },
          "snapshotUrl": {
            "type": "string",
            "nullable": true
          },
          "videoOrder": {
            "type": "integer",
            "format": "int32"
          },
          "isFavorite": {
            "type": "boolean"
          },
          "isIncentive": {
            "type": "boolean"
          },
          "uploadedDate": {
            "type": "string",
            "format": "date-time"
          },
          "testimonial": {
            "$ref": "#/components/schemas/TeamVideoTestimonialInfoDto"
          },
          "loanOfficer": {
            "$ref": "#/components/schemas/TeamVideoLoanOfficerDto"
          }
        },
        "additionalProperties": false
      },
      "TeamVideoTestimonialInfoDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "authorName": {
            "type": "string",
            "nullable": true
          },
          "rating": {
            "type": "number",
            "format": "double"
          },
          "text": {
            "type": "string",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TeamVideosResponse": {
        "type": "object",
        "properties": {
          "teamSlug": {
            "type": "string",
            "nullable": true
          },
          "sectionTitle": {
            "type": "string",
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "videos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TeamVideoTestimonialDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TestimonialProviderDto": {
        "type": "object",
        "properties": {
          "providerName": {
            "type": "string",
            "nullable": true
          },
          "providerLogoUrl": {
            "type": "string",
            "nullable": true
          },
          "reviewsCount": {
            "type": "integer",
            "format": "int32"
          },
          "averageRating": {
            "type": "number",
            "format": "double"
          },
          "providerPageUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "description": "JWT Authorization header using the Bearer scheme. Enter your token below.",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "Bearer": [ ]
    }
  ]
}