get https://api.flextract.dev/api/p/docs/
Returns a list of documents available to the authenticated user in the portal. This endpoint uses PhoneTokenAuthentication.
The response includes:
- Documents from folders accessible via folder-links
- Only active documents (not archived or deleted)
- Excludes duplicate documents
Filtering options:
file_type: Filter by file type (pdf, txt, csv, image, doc, docx, zip, other)folder_id: Filter by folder hashid
Response fields:
id: The hashid of the documentname: The name of the documentreference_id: The reference ID of the documentfile_type: The type of file (pdf, txt, etc.)uploaded_by: Name of who uploaded the fileuploaded_by_phone_number: Phone number that uploaded the file (if applicable)folder: Object with folder id and name (if associated)document_summary: Summary of the documentdocument_short_description: Short description of the documentclean_document_name: Clean name of the documentfile_syncs: File synchronization dataduplicate_file_record_id: ID of duplicate file record (if applicable)created_at: When the document was createdupdated_at: When the document was last updated
