---
updatedAt: 2025-06-05T21:41:06.000Z
agentTools:
  projectIndex: https://apidocs.officient.io/llms.txt
---

# List documents

This API call lists up all documents related to a specific object

Required scope: documents.read

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "officient-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.officient.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/1.0/documents/{object_type}/{object_id}/list": {
      "get": {
        "summary": "List documents",
        "description": "This API call lists up all documents related to a specific object",
        "operationId": "list-documents",
        "parameters": [
          {
            "name": "object_type",
            "in": "path",
            "description": "pick one: employee, asset, car",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "object_id",
            "in": "path",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "page",
            "in": "query",
            "description": "Controls pagination (0, 1, 2, ..) to view all results. 30 items per page.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": [\n        {\n            \"id\": 45262,\n            \"filename\": \"scan_license.jpg\",\n            \"filesize_bytes\": 10650,\n            \"document_type\": \"Drivers licenses\",\n            \"date_uploaded\": \"2019-01-06\",\n            \"visible_in_selfservice\": 0,\n        },\n        {\n            \"id\": 45261,\n            \"filename\": \"Report ABC.pdf\",\n            \"filesize_bytes\": 16534,\n            \"document_type\": \"Attesten\",\n            \"visible_in_selfservice\": 1\n        }\n    ]\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```