---
title: "List collections for RAG tuning"
method: POST
path: "/ragtune/listcollections"
tags: ["Ragtune"]
---

# List collections for RAG tuning

`POST /ragtune/listcollections`

## Request

- Base URL: `https://apipie.ai`
- URL: `https://apipie.ai/ragtune/listcollections`
- Auth: API key in header `Authorization`

Returns a list of collections associated with the user identified by the API key.
For more granular control or to implement your own RAG solution, refer to our `/vectors` route.

## Request body

- ListCollectionsRequest
  - `vector_provider` 'pinecone' | 'qdrant': Vector provider to fetch collections for

## Response `200`

List of collections

- object[]
  - `collection_name` string

## Other responses

- `500`: Internal server error

---

[API](https://skmtc.dev/apipie/apis/introduction.md) · [All operations](https://skmtc.dev/apipie/apis/introduction/llms.txt) · [OpenAPI document](https://skmtc.dev/apipie/apis/introduction/revisions/f8386be4eb3f?raw)
