List Documents In Collection
GET https://api.credal.ai/api/v0/documentCollections/listDocumentsInCollection
List documents in a collection
Reference: https://docs.credal.ai/api-reference/api-reference/document-collections/list-documents-in-collection
Authentication
Section titled “Authentication”Authorizationheader (bearer token, required) — Bearer authentication of the formBearer <token>, where token is your auth token.
Request
Query parameters
Section titled “Query parameters”collectionId(UUID, required) — The ID of the document collection to list documents from.
Response
Section titled “Response”200
resourceIdentifiers(list of ResourceIdentifier, required)
Types
ResourceIdentifier
type:external-resource-idexternalResourceId(string, required)resourceType(enum, required)- Allowed values:
GOOGLE_DRIVE_ITEM,MICROSOFT_DRIVE_ITEM,ZENDESK_TICKET,ZENDESK_ARTICLE,ZENDESK_GROUP,ZENDESK_ARTICLE_SECTION,ZENDESK_ARTICLE_CATEGORY,CONFLUENCE_PAGE,CONFLUENCE_SPACE,JIRA_TICKET,JIRA_PROJECT,SALESFORCE_TASK,BOX_FILE,BOX_FOLDER,NOTION_PAGE,NOTION_DATABASE,SLACK_CHANNEL,MONGO_COLLECTION_SYNC,UNKNOWN
- Allowed values:
type:urlurl(string, required)
Examples
Response
{
"resourceIdentifiers": [
{
"type": "external-resource-id",
"externalResourceId": "170NrBm0Do7gdzvr54UvyslPVWkQFOA0lgNycFmdZJQr",
"resourceType": "GOOGLE_DRIVE_ITEM"
},
{
"type": "external-resource-id",
"externalResourceId": "398KAHdfkjsdf09r54UvyslPVWkQFOA0lOiu34in923",
"resourceType": "GOOGLE_DRIVE_ITEM"
}
]
}