Contacts
Create or update a contact
Creates a new contact or updates an existing one.
If a contact with the given email or userId already exists, it will be updated.
Otherwise, a new contact will be created.
At least one of email or userId must be provided for identification.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
email | string | One of email/userId | Contact email address |
userId | string | One of email/userId | External user ID from your system |
name | string | No | Contact display name |
profilePicture | string | No | Profile picture URL |
companies | array | No | Companies the contact belongs to |
customFields | object | No | Custom field values |
subscribedToChangelog | boolean | No | Whether subscribed to changelog |
locale | string | No | Contact locale/language |
phone | string | No | Contact phone number |
roles | array | No | Role (User Tag) names to assign |
userHash | string | No | HMAC hash for identity verification |
createdAt | string | No | When the contact was created (ISO 8601) |
Company Object
Each company in the companies array can have:
id(required) - External company ID from your systemname(required) - Company namemonthlySpend- Monthly spend/revenuecustomFields- Custom field valuesindustry- Industrywebsite- Company website URLplan- Current plan/subscriptioncompanySize- Number of employeescreatedAt- When the company was created
Response
Returns the created or updated contact object.
- 201 Created - A new contact was created
- 200 OK - An existing contact was updated
Example Request
{
"email": "john@example.com",
"name": "John Doe",
"userId": "usr_12345",
"companies": [
{
"id": "company_123",
"name": "Acme Inc",
"monthlySpend": 500,
"plan": "enterprise"
}
],
"customFields": {
"plan": "pro",
"signupSource": "website"
},
"subscribedToChangelog": true
}Example Response
{
"object": "contact",
"id": "676f0f6765bdaa7d7d760f88",
"email": "john@example.com",
"name": "John Doe",
"userId": "usr_12345",
"type": "customer",
"companies": [...],
"customFields": {...},
...
}Version Availability
This endpoint is only available in API version 2026-01-01.nova and newer.
Body
application/json
When the contact was created in your system (ISO 8601)
Example:
2024-01-15T10:30:00ZCustom field values on the contact. Values can be string, number, boolean, null, or array of primitives.
Contact email address. Used for identification if userId is not provided.
Maximum string length:
500Example:
john@example.comHMAC-SHA256 hash of userId or email for identity verification
Maximum string length:
256Example:
a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6Response
application/json
Created
Profile picture URL
Example:
https://global.featurebase-attachments.com/c/static/legacy/anon_23.png