Document Collections

List Documents In Collection

POST
List all documents in a document collection.

Query parameters

documentCollectionIdUUIDRequired

Response

This endpoint returns an object
documents
list of objects
The list of documents in the document collection.
POST
$curl -X POST "https://api.credal.ai/api/v0/documentCollections/listDocumentsInCollection?documentCollectionId=82e4b12a-6990-45d4-8ebd-85c00e030c24" \
> -H "Authorization: Bearer <apiKey>"
Response
1{
2 "documents": [
3 {
4 "documentId": "4676d85d-6e8b-4503-8a71-bb2a8e763858",
5 "metadata": {
6 "documentName": "ABC Corp - Follow-up transcript",
7 "documentUrl": "https://docs.google.com/document/d/398KAHdfkjsdf09r54UvyslPVWkQFOA0lOiu34in923",
8 "customerName": "ABC Corp",
9 "meetingDate": "2022-12-06T12:02:41.023Z"
10 }
11 },
12 {
13 "documentId": "82e4b12a-6990-45d4-8ebd-85c00e030c24",
14 "metadata": {
15 "documentName": "XYZ Corp - Initial meeting transcript",
16 "documentUrl": "https://docs.google.com/document/d/170NrBm0Do7gdzvr54UvyslPVWkQFOA0lgNycFmdZJQr",
17 "customerName": "XYZ Corp",
18 "meetingDate": "2023-11-06T23:03:42.056Z"
19 }
20 }
21 ]
22}