Skip to main content
POST
Create a contact

Authorizations

x-api-key
string
header
required

Use your Formbricks x-api-key to authenticate.

Body

application/json

The single contact to create. Must include a top-level attributes object with an email attribute, and all attribute keys must already exist in the Workspace. Note - Environments are deprecated. Use Workspace/workspaceId terminology.

workspaceId
string
required
attributes
object
required
environmentId
string
deprecated

Deprecated alias for workspaceId.

Response

201 - application/json

Contact created successfully.

id
string
createdAt
string
workspaceId
string
environmentId
string
deprecated

Deprecated alias for workspaceId.

attributes
object