---
title: "Get All Metadata Collections"
method: GET
path: "/collections/{collectionId}/metadata"
tags: ["Collection"]
---

# Get All Metadata Collections

`GET /collections/{collectionId}/metadata`

## Request

- Base URL: `https://data.lucid.app`
- URL: `https://data.lucid.app/collections/{collectionId}/metadata`
- 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 a list of Collections for any metadata collections that exist on the requested collection. The return will only occur if the user has access to the data source. Each metadata collection will have a link to its parent collection in the parent field.

## Path parameters

- `collectionId` integer, required

## Response `200`

OK with Array[Collection]

- 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

---

[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)
