v51

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-014102371.0 MB
RAG

Get a list of rags

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

get/rags

Query parameters

page_sizeinteger
Example:25

Number of results to return per page.

page_tokenstring

Cursor token for pagination. Use the next_page_token value from the previous response.

Response

A list of rags.

next_page_tokenstring

Cursor token for the next page of results. Pass this value as the page_token parameter in the next request.

Example response

{
  "result": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "customer_id": "7d4e8f2a-1b3c-4d5e-9f6a-8b7c6d5e4f3a",
      "name": "Customer Support KB",
      "description": "Knowledge base for customer support conversations",
      "tm_create": "2026-03-18T10:30:00Z",
      "tm_update": "2026-03-18T10:30:00Z",
      "status": "ready",
      "sources": [
        {
          "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
          "customer_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "storage_file_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
          "source_url": "https://example.com/docs/faq.html",
          "status": "ready",
          "status_message": "Document parsed and 42 chunks created"
        }
      ]
    }
  ]
}