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
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" }