GET /api/documents
Returns a list of all documents uploaded by the authenticated user, ordered by creation date (newest first).Authentication
This endpoint requires authentication using Laravel Sanctum. Include the bearer token in the Authorization header.Headers
Bearer token obtained from login endpoint
Set to
application/jsonResponse
Returns an array of document objects.Unique identifier for the document
ID of the user who owns the document
Original filename of the uploaded document
MIME type of the document (e.g.,
application/pdf, text/plain)Storage path of the document file
Processing status of the document. Possible values:
pending, processing, completed, failedID of the vector representation in the vector database (null until processing completes)
ISO 8601 timestamp when the document was created
ISO 8601 timestamp when the document was last updated
Example request
Example response
200 - Success
401 - Unauthorized