---
title: "Get collection"
method: GET
path: "/api/collections/{slug}"
tags: ["Collections"]
---

# Get collection

`GET /api/collections/{slug}`

Fetch a collection by slug.

## Path parameters

- `slug` string, required

## Headers

- `X-Reqres-Env` string

## Response `200`

Collection

- CollectionResponse
  - `data` Collection, required
    - `id` string, required
    - `project_id` string
    - `user_id` string
    - `name` string, required
    - `slug` string, required
    - `schema` object
    - `visibility` string
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `404` — Error response

---

[API](https://skmtc.net/reqres/apis/reqres-api.md) · [All operations](https://skmtc.net/reqres/apis/reqres-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/reqres/reqres-api/versions/e5ced6578853/schema)
