POST
/
contact-attribute-keys
curl --request POST \
  --url https://app.formbricks.com/api/contact-attribute-keys \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "email",
  "name": "Email Address",
  "description": "The user'\''s email address",
  "type": "custom",
  "environmentId": "<string>"
}'

Body

application/json
The contact attribute key to create

Input data for creating or updating a contact attribute

key
string
required

The attribute identifier used in the system

name
string | null
required

Display name for the attribute

description
string | null
required

Description of the attribute

type
enum<string>
required

Whether this is a default or custom attribute

Available options:
default,
custom
environmentId
string
required

The ID of the environment this attribute belongs to