---
title: "List all collections"
method: GET
path: "/_fabric/{fabric}/_api/collection"
tags: ["Collections"]
---

# List all collections

`GET /_fabric/{fabric}/_api/collection`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/collection/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch the list of all collections.

## Path parameters

- `fabric` string, string, required

## Query parameters

- `excludeSystem` boolean

## Response `200`

Successfully fetched collections.

- ApiCollectionGetHttpExamplesRc200
  - `code` integer: HTTP response code.
  - `error` boolean: Flag if there is an error in response. *False* for this response.
  - `result` ApiCollectionHttp200Help[]: An array of API keys with details as
    - `id` string: Id of the the collection.
    - `name` string: Name of the collection.
    - `status` number: Status of the collection.
    - `type` number: Type of the collection. - *2*: document collection - *3*: edge collection
    - `collectionModel` string: Type of collection model. - *DOC*: document model - *KV*: key/value model - *DYNAMO*: dynamo model
    - `isSpot` boolean: *True* if collection is a spot collection.
    - `isLocal` boolean: *True* if collection is a local collection, *False* if collection is a global collection
    - `hasStream` boolean: *True* if collection has a stream.
    - `waitForSync` boolean: **True* if all data must be synced to storage before operation returns.
    - `isSystem` boolean: *True* if collection is a system collection.
    - `globallyUniqueId` string: Collection's global unique Id.
    - `searchEnabled` boolean: *True* if collection is searchable.

## Other responses

- `404`: Failed to find specified fabric.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
