The Contacts API allows you to manage identified users and their attributes. Contact tracking is an Enterprise feature.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/formbricks/formbricks/llms.txt
Use this file to discover all available pages before exploring further.
Contact identification and management is only available for Enterprise customers. Free and Pro plans will receive a
403 Forbidden response.The Contact Object
Attributes
Unique identifier for the contact
ISO 8601 timestamp of when the contact was created
ISO 8601 timestamp of when the contact was last updated
The environment this contact belongs to
Your system’s unique identifier for this user
Custom attributes associated with this contact
List Contacts
Retrieve contacts from your environment.Response
Retrieve a Contact
Get a specific contact by ID.Path Parameters
The ID of the contact to retrieve
Identify a User (Client API)
Identify a user from your application to create or update a contact.Path Parameters
Your environment ID
Body Parameters
Your unique identifier for this user
Contact attributes to set or update
Response
Returns the created or updated contact object.Contact Attributes
Contact attributes are custom key-value pairs you can associate with contacts.Common Attributes
email- User’s email addressname- User’s full nameplan- Subscription plancompany- Company namerole- User role- Custom attributes specific to your application
Attribute Types
Attributes are stored as strings. The Contact Attribute Keys API allows you to define the schema for your attributes.Contact Attribute Keys
Manage the schema for contact attributes.List Attribute Keys
Create Attribute Key
Delete Attribute Key
Use Cases
Target Surveys by Attributes
Use contact attributes to target surveys to specific user segments:Track User Journey
Associate all responses from a user:Enrich Response Data
Contact attributes are included in response data:Best Practices
- Consistent User IDs: Use the same
userIdacross your application and Formbricks - Minimal Attributes: Only store attributes you’ll use for targeting or analysis
- Update Regularly: Keep attributes current by updating them when user data changes
- Privacy Compliance: Ensure you have permission to track and store user data
- Attribute Schema: Define attribute keys to maintain consistent data structure