API endpoints for managing documents
Documents represent files associated with business cases, consumer cases, and other resources in the GridLogs platform. This API allows you to create, retrieve, update, and delete document metadata records.
Creates a new document metadata record.
Title of the document
Description of the document
Key of the file in storage (obtained from Uploads API)
Type of file (e.g., PDF, IMAGE, DOCX)
Type of document (e.g., ID, CERTIFICATE, PROOF_OF_ADDRESS)
ID of the associated business case
ID of the associated consumer case
Unique identifier for the document
Title of the document
Description of the document
Key of the file in storage
Type of file
Type of document
ID of the associated business case
ID of the associated consumer case
Creation timestamp
Last update timestamp
Returns a paginated list of documents.
Page number for pagination (default: 1)
Number of items per page (default: 10)
Filter by document type
Filter by file type
Filter by business case ID
Filter by consumer case ID
Search term to filter results by title or description
Array of document objects
Pagination metadata
Total number of documents
Current page number
Number of items per page
Total number of pages
Retrieves a specific document by ID.
Document ID
Returns a document object with all its properties.
Updates a specific document metadata record.
Document ID
Updated title of the document
Updated description of the document
Updated type of document
Returns the updated document object.
Deletes a specific document metadata record. Note that this does not delete the underlying file, which must be deleted separately using the Uploads API.
Document ID
Returns the deleted document object.