GET
/
contact-attribute-keys
curl --request GET \
  --url https://app.formbricks.com/api/contact-attribute-keys
[
  {
    "id": "<string>",
    "createdAt": "2021-01-01T00:00:00.000Z",
    "updatedAt": "2021-01-01T00:00:00.000Z",
    "isUnique": false,
    "key": "email",
    "name": "Email Address",
    "description": "The user's email address",
    "type": "custom",
    "environmentId": "<string>"
  }
]

Query Parameters

limit
number
default:
10
Required range: 1 < x < 100
skip
number
default:
0
Required range: x > 0
sortBy
enum<string>
default:
createdAt
Available options:
createdAt,
updatedAt
order
enum<string>
default:
desc
Available options:
asc,
desc
startDate
string
endDate
string

Response

200 - application/json
Contact attribute keys retrieved successfully.
id
string
required

The ID of the contact attribute key

createdAt
string
required

The date and time the contact attribute key was created

updatedAt
string
required

The date and time the contact attribute key was last updated

isUnique
boolean
required

Whether the attribute must have unique values across contacts

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