---
title: "Get All Collections"
method: GET
path: "/collections"
tags: ["Collection"]
---

# Get All Collections

`GET /collections`

## Request

- Base URL: `https://data.lucid.app`
- URL: `https://data.lucid.app/collections`
- Auth: OAuth 2
  - Authorization code: `https://lucid.app/oauth2/authorize`
  - Token URL: `https://api.lucid.co/oauth2/token` scopes: `data-service.admin`

This endpoint returns all collections that the user has access to. The results will be paginated. If the number of collections exceeds the pagination limit, links will be provided to get the next set of results or the previous set of results (if applicable). The range of returned values can be determined by optional start and end parameters. If the difference between the end and start values is greater than the pagination limit, the endpoint returns collections in the range from start to start + pagination limit. Items in the response are determined based on their creation order.

## Query parameters

- `start` integer
- `end` integer

## Response `200`

OK with paginated list of Collections

- object
  - `collections` object[]
    - `uri` string, required: URI of the collection
    - `dataSource` string, required: Link to get parent data source
    - `name` string, required: Name of the collection
    - `lastSync` string, required: Date the collection was last synced with upstream source
    - `versionTimestamp` string, required: Timestamp of the last time the collection, the collection's schema, the collection's contents, one of its collection properties, or anything in any of its metadata collections was changed. It can be used to tell if a copy of the data is out of date and needs to be refreshed.
    - `created` string, required: Date the collection was created
    - `lastModified` string, required: Date the collection was last modified
    - `items` string, required: Link to get items in the collection
    - `schema` string, required: Link to get schema for the collection
    - `properties` string, required: Link to get properties for the collection
    - `metadata` string, required: Link to get metadata for the collection
    - `metadataType` string: If a metadata collection, this specifies what tyep of metadata it contains
    - `parent` string: If a metadata collection, this link will get its parent collection
    - `syncStarted` string: Represents the sync status of the collection. When it is null, there is no sync happening. When it has a DateTime value, that value represents the start time for the sync that is currently happening.
    - `deleted` string: Date the collection was deleted
  - `total` integer
  - `prev` string
  - `next` string

---

[API](https://skmtc.dev/lucid/apis/lucid-data-api.md) - [All operations](https://skmtc.dev/lucid/apis/lucid-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lucid/apis/lucid-data-api/revisions/c14ed29dbeab?raw)
