---
updatedAt: 2026-08-27T13:52:09.000Z
agentTools:
  projectIndex: https://docs.youlend.com/llms.txt
---

# List all documents.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Onboarding",
    "description": "Through this API you can can initiate the process of onboarding a borrower with YouLend",
    "contact": {
      "name": "Mark Ufland",
      "email": "mark.ufland@youlend.com"
    },
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://partners.staging-youlendapi.com/onboarding"
    }
  ],
  "paths": {
    "/Leads/{leadId}/documents": {
      "get": {
        "tags": [
          "GET Details"
        ],
        "summary": "List all documents.",
        "parameters": [
          {
            "name": "leadId",
            "in": "path",
            "description": "The lead id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KycDocumentsStepModel"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/KycDocumentsStepModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "KycDocumentModel": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "description": "Gets or sets the document id.",
            "format": "uuid"
          },
          "documentName": {
            "type": "string",
            "description": "Gets or sets the document name.",
            "nullable": true
          },
          "documentType": {
            "type": "string",
            "description": "Gets or sets the document type (e.g. pdf, csv).",
            "nullable": true
          },
          "kycDocumentType": {
            "type": "string",
            "description": "Gets or sets the KYC document type (e.g. passport, proof of address).",
            "nullable": true
          },
          "dateTimeUploaded": {
            "type": "string",
            "description": "Gets or sets the upload date of the KYC document.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Model containing details about a KYC document."
      },
      "KycDocumentsStepModel": {
        "type": "object",
        "properties": {
          "companyDocuments": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/KycDocumentModel"
            },
            "description": "Gets or sets a dictionary mapping the document ids to YL.Web.Api.ThirdParty.Onboarding.Models.KycDocumentModel.",
            "nullable": true
          },
          "significantPersonDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SignificantPersonDocumentsModel"
            },
            "description": "Gets or sets a list of YL.Web.Api.ThirdParty.Onboarding.Models.SignificantPersonDocumentsModel.",
            "nullable": true
          },
          "bankStatements": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/KycDocumentModel"
            },
            "description": "Gets or sets a Dictionary of document ids to YL.Web.Api.ThirdParty.Onboarding.Models.KycDocumentModel>.",
            "nullable": true
          },
          "leadId": {
            "type": "string",
            "description": "Gets or sets the lead id.",
            "format": "uuid"
          },
          "country": {
            "type": "string",
            "description": "Gets or sets the country.",
            "nullable": true
          },
          "companyType": {
            "type": "string",
            "description": "Gets or sets the key merchant company type.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Model containing data about the KYC document step."
      },
      "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": {}
      },
      "SignificantPersonDocumentsModel": {
        "type": "object",
        "properties": {
          "personId": {
            "type": "string",
            "description": "Gets or sets the significant person id.",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Gets or sets the name of the significant person.",
            "nullable": true
          },
          "documents": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/KycDocumentModel"
            },
            "description": "Gets or sets the dictionary mapping document name to YL.Web.Api.ThirdParty.Onboarding.Models.KycDocumentModel.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Model for documents associated with a significant person."
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://youlend-stag.eu.auth0.com/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": []
    }
  ],
  "tags": [
    {
      "name": "GET Details"
    }
  ]
}
```