POST
/
contacts
curl --request POST \
  --url https://app.formbricks.com/api/contacts \
  --header 'Content-Type: application/json' \
  --data '{
  "userId": "<string>",
  "environmentId": "<string>"
}'
{
  "id": "<string>",
  "userId": "<string>",
  "createdAt": "2021-01-01T00:00:00.000Z",
  "updatedAt": "2021-01-01T00:00:00.000Z",
  "environmentId": "<string>"
}

Body

application/json
The contact to create

A contact to create

environmentId
string
required

The environment this contact belongs to

userId
string | null

Optional external user identifier

Response

201 - application/json
Contact created successfully.
id
string
required

Unique identifier for the contact

userId
string | null
required

Optional external user identifier

createdAt
string
required

When the contact was created

updatedAt
string
required

When the contact was last updated

environmentId
string
required

The environment this contact belongs to