---
title: "Create a custom attribute"
method: POST
path: "/custom-attributes"
tags: ["Custom Attributes"]
---

# Create a custom attribute

`POST /custom-attributes`

Creates a new custom contact attribute.

## Request body

- union
  - CREATECONTACTATTRIBUTETEXT
    - `name` string — The name of the custom attribute
    - `resource` 'contact'
    - `type` 'text'
  - CREATECONTACTATTRIBUTENUMBER
    - `name` string — The name of the custom attribute
    - `resource` 'contact'
    - `type` 'number'
  - CREATECONTACTATTRIBUTEDATEONLY
    - `name` string — The name of the custom attribute
    - `resource` 'contact'
    - `type` 'dateonly'
  - CREATECONTACTATTRIBUTEDATETIME
    - `name` string — The name of the custom attribute
    - `resource` 'contact'
    - `type` 'datetime'
  - CREATECONTACTATTRIBUTESINGLESELECT
    - `name` string — The name of the custom attribute
    - `option_values` string[] — The available option values for the single select attribute
    - `resource` 'contact'
    - `type` 'single_select'
  - CREATECONTACTATTRIBUTEMULTISELECT
    - `name` string — The name of the custom attribute
    - `option_values` string[] — The available option values for the multi select attribute
    - `resource` 'contact'
    - `type` 'multi_select'

## Response `200`

OK

- union
  - CONTACTATTRIBUTERESPONSETEXT
    - `id` string — The unique identifier of the custom attribute
    - `name` string — The name of the custom attribute
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - CONTACTATTRIBUTERESPONSENUMBER
    - `id` string — The unique identifier of the custom attribute
    - `name` string — The name of the custom attribute
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - CONTACTATTRIBUTERESPONSEDATEONLY
    - `id` string — The unique identifier of the custom attribute
    - `name` string — The name of the custom attribute
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - CONTACTATTRIBUTERESPONSEDATETIME
    - `id` string — The unique identifier of the custom attribute
    - `name` string — The name of the custom attribute
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - CONTACTATTRIBUTERESPONSESINGLESELECT
    - `id` string — The unique identifier of the custom attribute
    - `name` string — The name of the custom attribute
    - `option_values` PAContactAttributeSelectOptionDTO[] — The available option values of the single select custom attribute
      - `id` string — The unique identifier of the attribute option
      - `value` string — The display value of the attribute option
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - CONTACTATTRIBUTERESPONSEMULTISELECT
    - `id` string — The unique identifier of the custom attribute
    - `name` string — The name of the custom attribute
    - `option_values` PAContactAttributeSelectOptionDTO[] — The available option values of the multi select custom attribute
      - `id` string — The unique identifier of the attribute option
      - `value` string — The display value of the attribute option
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

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