openapi: 3.2.0 info: title: Integration Leads API description: This API collection represents the integration APIs LendKey offers for 3rd party dependencies/integrations, and is for dev/qa use only. External connections are not prohibited following this document. termsOfService: http://www.lendkey.com license: name: Lendkey License url: http://www.lendkey.com version: 1.0.0 contact: name: LendKey Product Operations Team url: http://www.lendkey.com email: HIL_product_team@lendkey.com servers: - url: https://proxy.kong.lkeyprod.com/integration/ description: This is the production host for our API endpoints. - url: https://proxy.kong.lkeystaging.com/integration/ description: This is the staging host for our API endpoints. Please note that the ability to create a soft-pull is disabled in this environment. If credit pull testing in this environment is needed, please reach out to coordinate that. - url: https://proxy.kong.eks-1.use-1.lkeyqa.com/integration/integration-api-spring-boot-main/ description: This is the QA host for our API endpoints. Please use this for all development and testing purposes. - url: '{protocol}://{env}-integration-api-spring-boot.ci.lkeyqa.com:{port}/{basePath}' description: The testing API server variables: protocol: enum: - http - https default: https env: default: staging description: 'This value is related to the environment you are running. ie: PR-1112, develop' port: enum: - '8443' - '443' default: '8443' basePath: description: 'Version path. ie: v1' default: '' - url: http://localhost:{port}/{basePath} description: The local development server variables: protocol: enum: - http - https default: https env: default: develop description: 'this value is related to the environment you are running. ie: PR-1112, develop' port: default: '8080' basePath: description: 'Version path. ie: v1' default: '' tags: - name: Leads paths: /v1/leads/create: post: tags: - Leads summary: Creates a new lead to represent a potential customer description: Creates a lead record in the Greenhouse LOS to capture information about potential customers and where their traffic was driven in from. requestBody: content: application/json: schema: $ref: '#/components/schemas/createLeadRequest' responses: 200: description: OK content: application/hal+json: schema: $ref: '#/components/schemas/leadResponse' 400: $ref: '#/components/responses/BadRequest' 500: $ref: '#/components/responses/UnexpectedError' operationId: postV1LeadsCreate x-operation-id-source: derived components: schemas: leadResponse: type: object properties: id: type: integer uuid: type: string format: uuid email: type: string firstName: type: string lastName: type: string createdAt: type: string format: date updatedAt: type: string format: date source: type: string sourceKey: type: string sourceApplicationId: type: string creditRiskModel: type: string example: id: 1 uuid: 3441eb74-e5e6-483a-bb53-4201edf7210e email: no-reply@lendkey.com firstName: John lastName: Doe createdAt: '2021-09-21T19:21:53.726626200Z' updatedAt: '2021-09-21T19:21:53.726626200Z' source: unqork sourceKey: 8f8898ae-dda1-4bde-a627-44d6fb5977dd sourceApplicationId: 'null' creditRiskModel: 0f2f1ce6-7bed-4df4-8b04-aff593dd4d23 createLeadRequest: type: object properties: email: type: string firstName: type: string lastName: type: string source: type: string sourceKey: type: string sourceApplicationId: type: string creditRiskModel: type: string example: email: no-reply@lendkey.com firstName: John lastName: Doe source: unqork sourceKey: 8f8898ae-dda1-4bde-a627-44d6fb5977dd sourceApplicationId: 'null' creditRiskModel: 0f2f1ce6-7bed-4df4-8b04-aff593dd4d23 suberror: type: object properties: object: type: string field: type: string rejectedValue: type: string message: type: string example: object: Resource field: name rejectedValue: null message: must not be null error: type: object properties: id: type: string format: uuid status: type: string timestamp: type: string message: type: string debugMessage: type: string subErrors: type: array items: $ref: '#/components/schemas/suberror' example: id: null status: BAD_REQUEST timestamp: '2019-10-21 14:07:59' message: Validation error debugMessage: null subErrors: - object: Resource field: name rejectedValue: null message: must not be null responses: BadRequest: description: Invalid request, unable to process the request with the information provided. content: application/hal+json: schema: $ref: '#/components/schemas/error' example: id: b6c52a48-551a-42ef-b361-f642d25cfeb7 status: BAD_REQUEST timestamp: '2019-10-21 14:07:59' message: Describes what was invalid about the request, if possible. debugMessage: null UnexpectedError: description: An unexpected server error occurred. content: application/hal+json: schema: $ref: '#/components/schemas/error' example: id: b6c52a48-551a-42ef-b361-f642d25cfeb7 status: INTERNAL_SERVER_ERROR timestamp: '2019-10-21 14:07:59' message: An internal issue occurred. Please try again shortly. If the issue persists, contact us with all of the data in this error message. debugMessage: null