{
  "openapi": "3.0.1",
  "info": {
    "title": "Public API",
    "version": "v1"
  },
  "paths": {
    "/v2/public/{subdomain}/jobs": {
      "get": {
        "tags": [
          "Public"
        ],
        "summary": "Get jobs",
        "parameters": [
          {
            "name": "subdomain",
            "in": "path",
            "description": "Subdomain",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page, default 1",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "perPage",
            "in": "query",
            "description": "Per Page, default 20",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "details",
            "in": "query",
            "description": "Form",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "departments",
            "in": "query",
            "description": "Department ids",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "locations",
            "in": "query",
            "description": "Locations",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "languageCode",
            "in": "query",
            "description": "Language",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-TL-CompanyId",
            "in": "header",
            "description": "Company Id",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-Subdomain",
            "in": "header",
            "description": "Account subdomain",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-UserId",
            "in": "header",
            "description": "Team member id",
            "schema": {
              "type": "guid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Common.Api.Dto.Paging.PagingResult`1[System.Object]"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          }
        }
      }
    },
    "/v2/public/{subdomain}/departments": {
      "get": {
        "tags": [
          "Public"
        ],
        "summary": "Returns a collection of the departments of the public jobs",
        "parameters": [
          {
            "name": "subdomain",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-TL-CompanyId",
            "in": "header",
            "description": "Company Id",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-Subdomain",
            "in": "header",
            "description": "Account subdomain",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-UserId",
            "in": "header",
            "description": "Team member id",
            "schema": {
              "type": "guid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": { }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          }
        }
      }
    },
    "/v2/public/{subdomain}/locations": {
      "get": {
        "tags": [
          "Public"
        ],
        "summary": "Returns a collection of the locations of the public jobs",
        "parameters": [
          {
            "name": "subdomain",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-TL-CompanyId",
            "in": "header",
            "description": "Company Id",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-Subdomain",
            "in": "header",
            "description": "Account subdomain",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-UserId",
            "in": "header",
            "description": "Team member id",
            "schema": {
              "type": "guid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": { }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel"
                }
              }
            }
          }
        }
      }
    },
    "/backend/webhooks/application": {
      "post": {
        "tags": [
          "WebHooks"
        ],
        "summary": "Email application",
        "parameters": [
          {
            "name": "subject",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-TL-CompanyId",
            "in": "header",
            "description": "Company Id",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-Subdomain",
            "in": "header",
            "description": "Account subdomain",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-UserId",
            "in": "header",
            "description": "Team member id",
            "schema": {
              "type": "guid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/backend/webhooks/meeting-response": {
      "post": {
        "tags": [
          "WebHooks"
        ],
        "summary": "Meeting response handler",
        "parameters": [
          {
            "name": "X-TL-CompanyId",
            "in": "header",
            "description": "Company Id",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-Subdomain",
            "in": "header",
            "description": "Account subdomain",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-UserId",
            "in": "header",
            "description": "Team member id",
            "schema": {
              "type": "guid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/System.Collections.Generic.KeyValuePair`2[System.String,Microsoft.Extensions.Primitives.StringValues]"
                    }
                  }
                }
              },
              "encoding": {
                "data": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/backend/webhooks/dropbox-sign-callback": {
      "post": {
        "tags": [
          "WebHooks"
        ],
        "parameters": [
          {
            "name": "X-TL-CompanyId",
            "in": "header",
            "description": "Company Id",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-Subdomain",
            "in": "header",
            "description": "Account subdomain",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-UserId",
            "in": "header",
            "description": "Team member id",
            "schema": {
              "type": "guid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "json": {
                    "type": "string"
                  }
                }
              },
              "encoding": {
                "json": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/backend/webhooks/docusign-callback": {
      "post": {
        "tags": [
          "WebHooks"
        ],
        "parameters": [
          {
            "name": "X-TL-CompanyId",
            "in": "header",
            "description": "Company Id",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-Subdomain",
            "in": "header",
            "description": "Account subdomain",
            "schema": {
              "type": "guid"
            }
          },
          {
            "name": "X-TL-UserId",
            "in": "header",
            "description": "Team member id",
            "schema": {
              "type": "guid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": { }
            },
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Adopto.Client.Web.Api.Utils.Errors.ErrorResultModel": {
        "type": "object",
        "properties": {
          "Message": {
            "type": "string",
            "description": "Frendly Message",
            "nullable": true
          },
          "Errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Adopto.Client.Web.Api.Utils.Errors.ValidationError"
            },
            "description": "Errors list",
            "nullable": true
          },
          "ErrorCode": {
            "type": "integer",
            "description": "Error code",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Error result model"
      },
      "Adopto.Client.Web.Api.Utils.Errors.ValidationError": {
        "type": "object",
        "properties": {
          "Field": {
            "type": "string",
            "description": "",
            "nullable": true
          },
          "Message": {
            "type": "string",
            "description": "",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": ""
      },
      "Adopto.Common.Api.Dto.Paging.Pages": {
        "type": "object",
        "properties": {
          "First": {
            "type": "string",
            "nullable": true
          },
          "Prev": {
            "type": "string",
            "nullable": true
          },
          "Next": {
            "type": "string",
            "nullable": true
          },
          "Last": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Adopto.Common.Api.Dto.Paging.PagingResult`1[System.Object]": {
        "type": "object",
        "properties": {
          "Results": {
            "type": "array",
            "items": { },
            "nullable": true
          },
          "Count": {
            "type": "integer",
            "format": "int32"
          },
          "Page": {
            "type": "integer",
            "format": "int32"
          },
          "PerPage": {
            "type": "integer",
            "format": "int32"
          },
          "Pages": {
            "$ref": "#/components/schemas/Adopto.Common.Api.Dto.Paging.Pages"
          },
          "IdResults": {
            "type": "array",
            "items": { },
            "nullable": true
          },
          "OriginalCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "System.Collections.Generic.KeyValuePair`2[System.String,Microsoft.Extensions.Primitives.StringValues]": {
        "type": "object",
        "properties": {
          "Key": {
            "type": "string",
            "nullable": true
          },
          "Value": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "Please enter JWT with Bearer into field",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": [ ]
    }
  ]
}