List collections

**Endpoint:** http://{{API_URL}}/external/api/collections/list

**Method:** `GET`

**Description:** This endpoint lists all the collections present in DB

Example response:

{

"collections": [

{

"_id": "1",

"name": "knowledgearticles",

"description": "Knowledge articles from servicenow",

"source": "ITSM",

"created_at": null,

"update_at": null,

"doc_type": "GEN_AI_COLLECTION"

},

{

"_id": "2",

"name": "closedtickets3",

"description": "closed tickets from servicenow",

"source": "ITSM",

"created_at": null,

"update_at": null,

"doc_type": "GEN_AI_COLLECTION"

},

{

"_id": "3",

"name": "testcollection",

"description": "for testing",

"source": "test",

"created_at": "2025-05-13T12:57:24.515Z",

"update_at": null,

"doc_type": "GEN_AI_COLLECTION",

"updated_at": "2025-05-13T12:57:24.515Z"

},

}