openapi: 3.2.0 info: title: Integration Auth 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: Auth paths: /v1/oauth2/token: post: tags: - Auth summary: Obtain an authorization token description: Performs client credentials authentication and returns an access token that is valid for 60 minutes. parameters: - in: header name: Authorization schema: type: string description: The word basic followed by a space and a base64-encoded string of clientId:clientSecret required: true requestBody: required: true content: application/x-www-form-urlencoded: schema: type: object properties: grant_type: type: string description: Value should be 'client_credentials' required: - grant_type responses: 200: description: OK content: application/hal+json: schema: $ref: '#/components/schemas/authenticationResponse' 400: $ref: '#/components/responses/BadRequest' 500: $ref: '#/components/responses/UnexpectedError' operationId: postV1Oauth2Token x-operation-id-source: derived components: schemas: authenticationResponse: type: object properties: expires_in: type: integer description: The number of milliseconds the access token will expire in. example: 3600 token_type: type: string description: The type of authentication token returned example: bearer access_token: type: string description: The access token to use example: A3IaUdTbwrZcYjeKKKgTsUDgrsmwbTRx 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