---
title: "Create a New Custom Attribute Key"
method: POST
path: "/v1/attribute_keys"
tags: ["Attributes"]
---

# Create a New Custom Attribute Key

`POST /v1/attribute_keys`

You may create a Custom Attribute Key using this action. It takes a JSON object containing the name and kind of the attribute key.

## Request body

- object
  - `name` string, required — A name for the custom attribute key.
  - `kind` string, required — The kind of custom attribute key. Must be one of the following - [text, date, email, image]
  - `department_id` number, required — Department the custom attribute key should belong to.

## Response `200`

OK

- object
  - `attribute_key` object
    - `id` number
    - `name` string
    - `kind` string
    - `department_id` 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/versions/56b317c13686/schema)
