---
agentTools:
  projectIndex: https://usegraph.readme.io/llms.txt
---

# List Documents

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Core API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.useoval.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/entity_document/{entity_type}/{entity_id}": {
      "get": {
        "summary": "List Documents",
        "description": "",
        "operationId": "list-documents",
        "parameters": [
          {
            "name": "entity_type",
            "in": "path",
            "schema": {
              "type": "string",
              "enum": [
                "person"
              ],
              "default": "person"
            },
            "required": true
          },
          {
            "name": "entity_id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": [\n        {\n            \"id\": \"2d443be5bd5511ef97d00edb5e3a61d3\",\n            \"entity_type\": \"person\",\n            \"person_id\": \"2c0090a9bd5511ef97d00edb5e3a61d3\",\n            \"business_id\": null,\n            \"type\": \"passport\",\n            \"url\": \"https://oval-staging.s3.amazonaws.com/kyc/8dbe79d36c1011ed8cc5dacad92d8272/person/3206f36aa5654185ba6707dbdcbf823b\",\n            \"file_type\": \"image/png\",\n            \"issuance_date\": null,\n            \"expiry_date\": null,\n            \"is_deleted\": false,\n            \"created_at\": \"2024-12-18T15:31:40Z\",\n            \"updated_at\": \"2024-12-18T22:09:38Z\"\n        }\n    ],\n    \"message\": \"Entity documents retrieved successfully\",\n    \"meta\": null,\n    \"status\": \"success\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "2d443be5bd5511ef97d00edb5e3a61d3"
                          },
                          "entity_type": {
                            "type": "string",
                            "example": "person"
                          },
                          "person_id": {
                            "type": "string",
                            "example": "2c0090a9bd5511ef97d00edb5e3a61d3"
                          },
                          "business_id": {},
                          "type": {
                            "type": "string",
                            "example": "passport"
                          },
                          "url": {
                            "type": "string",
                            "example": "https://oval-staging.s3.amazonaws.com/kyc/8dbe79d36c1011ed8cc5dacad92d8272/person/3206f36aa5654185ba6707dbdcbf823b"
                          },
                          "file_type": {
                            "type": "string",
                            "example": "image/png"
                          },
                          "issuance_date": {},
                          "expiry_date": {},
                          "is_deleted": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "created_at": {
                            "type": "string",
                            "example": "2024-12-18T15:31:40Z"
                          },
                          "updated_at": {
                            "type": "string",
                            "example": "2024-12-18T22:09:38Z"
                          }
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "example": "Entity documents retrieved successfully"
                    },
                    "meta": {},
                    "status": {
                      "type": "string",
                      "example": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "637d9e0aeb8873003ad62eac:6763401113f4f7005a8df49c"
}
```