---
title: "Search for Attribute Keys"
method: POST
path: "/v1/attribute_keys/search"
tags: ["Attributes"]
---

# Search for Attribute Keys

`POST /v1/attribute_keys/search`

You can search for Attribute Keys by various search criteria.

## Request body

- object
  - `name` string — A name for the custom attribute key.
  - `kind` string — The kind of custom attribute key. Must be one of the following - [text, date, email, image].
  - `department_id` number — Only return custom attribute keys of the given Department.
  - `page_size` number — The pagination response size, default of 50.
  - `page` number — The pagination page.

## Response `200`

OK

- object
  - `attribute_keys` object[]
    - `id` number
    - `name` string
    - `kind` string
    - `department_id` number
  - `meta` object
    - `current_page` number
    - `next_page` unknown
    - `prev_page` unknown
    - `total_pages` number
    - `total_count` number

## Changes

- **2025-07-04** `a93800de3a85` — 5 warning, 2 info
  - deleted the `query` request parameter `department_id`
  - deleted the `query` request parameter `kind`
  - deleted the `query` request parameter `name`
  - deleted the `query` request parameter `page`
  - …3 more
- **2025-06-30** `98201e8dd1b4` — 1 warning, 1 info
  - deleted the `header` request parameter `Authorization`
  - the endpoint scheme security `ApiKeyAuth` was added to the API

[Change history](https://skmtc.dev/accredible/apis/accredible-credential-api/changes/v1/attribute_keys/search/post.md)

---

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