Skip to main content
GET
/
:projectId
/
api
/
v7
/
collections
/
root
Fetch Root Collection
curl --request GET \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/collections/root

Documentation Index

Fetch the complete documentation index at: https://docs.replyke.com/llms.txt

Use this file to discover all available pages before exploring further.

Returns the root collection for the authenticated user. If no root collection exists yet, one is created automatically with the name "root".

Response

Returns a Collection object with parentId: null and isRoot: true.
This endpoint is the entry point for the collections system. Call it once on load to initialize the user’s collection tree. Sub-collections are fetched separately via the sub-collections endpoint.

Error Responses

{ "error": "Server error", "code": "collection/server-error" }