---
title: "Create Attributes"
method: POST
path: "/client/attribute/create"
tags: ["Attributes"]
---

# Create Attributes

`POST /client/attribute/create`

Add custom attributes like (age, location, etc.) to store user data. Define the name, type, and default value.
Optional: Set a callback to get notified when creation is complete.

## Headers

- `api-key` string, required
- `Content-Type` string, required

## Request body

- object
  - `data` object[], required — A list of custom attributes you want to add, like age or gender. For each field, define its name, type (number, text, etc.), and other optional settings.
    - `attribute_name` string, required — Allowed Regex Pattern (A-Za-z0-9_)
    - `attribute_category` string, required — "custom" | "predicted" | "calculated" (predicted, calculated for derived attribute)
    - `data_type` string, required — "textline" | "date" | "int" | "decimal" | "longtext"
    - `map_to` string, required — System Attribute Name
    - `data_mask` string, required — true | false | "" (to mask data) (default: "")
    - `default_value` string, required
  - `notify_callback` object, required
    - `callback` object[], required
      - `url` string, required
      - `method` string, required — GET | POST
      - `headers` object, required
        - `Content-Type` string, required — application/json
        - `Authorization` string
      - `query_params` object
        - `param1` string, required
        - `param2` string, required
      - `body_params` object
        - `param3` string, required
        - `param4` string, required

## Response `200`

- object
  - `request_id` string, required
  - `description` string, required
  - `code` integer, required
  - `status` string, required
  - `data` string, required

## Other responses

- `400`
- `401`
- `500`

---

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