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
| Method | Endpoint | Description |
|---|---|---|
| POST | /collections | Create a new collection. |
| GET | /collections | List 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//documents | List documents within a collection. |
| POST | /collections//documents/ | Add a document to a collection. |
| DELETE | /collections//documents/ | Remove a document from a collection. |
| POST | /collections//extract | Extract entities and relationships from all unprocessed documents in a collection. |
| GET | /collections//users | List 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. |