---
title: "Get a list of rags"
method: GET
path: "/rags"
tags: ["RAG"]
---

# Get a list of rags

`GET /rags`

Retrieves a paginated list of RAG knowledge bases for the authenticated customer.

## Query parameters

- `page_size` integer
- `page_token` string

## Response `200`

A list of rags.

- object
  - `next_page_token` string — Cursor token for the next page of results. Pass this value as the page_token parameter in the next request.
  - `result` RagManagerRag[]
    - `id` string, uuid — The unique identifier of the rag. Returned from the `POST /rags` response.
    - `customer_id` string, uuid — The customer ID that owns this rag.
    - `name` string — Human-readable name for the rag.
    - `description` string — Description of what this rag contains.
    - `tm_create` string, date-time — Timestamp when the rag was created.
    - `tm_update` string, date-time — Timestamp when the rag was last updated.
    - `status` 'pending' | 'processing' | 'ready' | 'error' — The document processing status. Indicates the current stage of document ingestion.
    - `sources` RagManagerRagSource[] — List of document sources in this rag with their ingestion status.
      - `id` string, uuid — The unique identifier of the source (document). Use this ID with `DELETE /rags/{rag-id}/sources/{source-id}` to remove the source.
      - `customer_id` string, uuid — The customer ID that owns this source. Returned from the `GET /customer` response.
      - `storage_file_id` string, uuid — The storage file ID if the source is an uploaded file. Returned from the `POST /storage_files` response.
      - `source_url` string, uri — The URL if the source is a web document.
      - `status` 'pending' | 'processing' | 'ready' | 'error' — The document processing status. Indicates the current stage of document ingestion.
      - `status_message` string — Additional details about the current ingestion status.

## Other responses

- `401` — Authentication required (UNAUTHENTICATED).
- `500` — Internal error (INTERNAL).

---

[API](https://skmtc.net/voipbin/apis/voipbin-api.md) · [All operations](https://skmtc.net/voipbin/apis/voipbin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voipbin/voipbin-api/revisions/79e779080bcc/schema)
