---
title: "Search for Collections"
method: POST
path: "/v1/collections/search"
tags: ["Collections"]
---

# Search for Collections

`POST /v1/collections/search`

## Request body

- object
  - `query` object, required
    - `ids` unknown[] — Limit the returned collections to specific collections IDs.
      - unknown
    - `name` string — Search collections by name (substring search)
    - `public` boolean — Limit the returned collections to public or not public collections.
    - `exclusion_list` unknown[] — Exclude specific collections IDs from the search results.
      - unknown
  - `sort` object
    - `String key/value pair for sorting based on a field and order.` string — Supported keys - `name`, `groups_count` and `public` Supported values - `asc`, `desc`
  - `meta` object
    - `page_number` string — Defines the number of page wanted
    - `per_page` string — The number of records to be returned

## Response `200`

OK

- object
  - `collections` object[]
    - `id` string, required
    - `name` string, required
    - `description` unknown, required
    - `organization_id` number, required
    - `public` boolean, required
    - `groups_count` number, required
    - `groups` object[], required
      - `id` number, required
  - `meta` object
    - `current_page` number
    - `next_page` number
    - `prev_page` number
    - `total_pages` number
    - `total_count` number
    - `page_size` number

---

[API](https://skmtc.net/accredible/apis/accredible-credential-api.md) · [All operations](https://skmtc.net/accredible/apis/accredible-credential-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/accredible/accredible-credential-api/revisions/56b317c13686/schema)
