Skip to main content
GET
/
api
/
v3
/
documents
List Documents
curl --request GET \
  --url https://api.nugen.in/api/v3/documents \
  --header 'Authorization: Bearer <token>'
{
  "documents": [
    {
      "id": [
        "doc-abc123",
        "doc-def456"
      ],
      "filename": [
        "product_catalog.docx",
        "training_manual.txt"
      ],
      "type": [
        "text/plain"
      ],
      "size": [
        2548736,
        1024000,
        512000
      ],
      "upload_date": [
        "2024-01-15T10:30:00Z"
      ],
      "status": "Processing",
      "categories": [
        [
          "customer_support",
          "documentation"
        ],
        [
          "products",
          "sales"
        ],
        [
          "legal",
          "compliance"
        ]
      ],
      "uploader": [
        "user@example.com",
        "admin@example.com"
      ],
      "processing_progress": [
        100,
        65,
        0,
        null
      ]
    }
  ],
  "categories": [
    {
      "name": [
        "financial",
        "customer_support",
        "legal",
        "2024-q1"
      ],
      "count": [
        5,
        12,
        8
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Returns a comprehensive list of all documents uploaded by the authenticated user, including their metadata, processing status, and available document categories with counts

documents
DocumentInfo · object[]
required

List of all documents uploaded by the user, including metadata and processing status

categories
DocumentCategory · object[]
required

List of all document categories with document counts for filtering and organization