Skip to main content
A Collection in R2R is a logical grouping mechanism that organizes and manages access to documents and their associated chunks. Collections serve as the core organizational unit for content management, access control, and collaboration across users and teams. They provide a structured way to categorize documents, enforce permissions, and enable seamless sharing and processing of related data within the R2R ecosystem.

Key Capabilities

Collections in R2R enable:
  • Organizational structure for managing documents.
  • Access control and permission management for secure data governance.
  • Group-based content sharing across teams or users.
  • Document categorization for better organization and retrieval.
  • User collaboration for joint access and workflow execution.

API Endpoints

MethodEndpointDescription
POST/collectionsCreate a new collection.
GET/collectionsList collections with pagination and filtering.
GET/collections/Retrieve details of a specific collection.
POST/collections/Update an existing collection.
DELETE/collections/Delete a specific collection.
GET/collections//documentsList documents within a collection.
POST/collections//documents/Add a document to a collection.
DELETE/collections//documents/Remove a document from a collection.
POST/collections//extractExtract entities and relationships from all unprocessed documents in a collection.
GET/collections//usersList users who have access to a collection.
POST/collections//users/Grant a user access to a collection.
DELETE/collections//users/Remove a user’s access to a collection.
GET/collections/name/Retrieve a collection by its name.