curl --request POST \
--url https://pub-api.conversion.ai/api/v2/contacts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"email": "jane@example.com",
"subscriptionStatus": "SUBSCRIBED",
"fields": {
"first_name": "Jane",
"last_name": "Smith",
"job_title": "VP of Marketing"
},
"companyFields": {
"company_name": "Acme Corp"
}
}
'{
"data": {
"cnvContactId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"contactCreated": true
}
}Contacts
Upsert Contact
Create a new contact or update an existing one. Contacts are identified by email or cnvContactId. If the contact exists, its fields are updated; if not, a new contact is created.
POST
/
v2
/
contacts
curl --request POST \
--url https://pub-api.conversion.ai/api/v2/contacts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"email": "jane@example.com",
"subscriptionStatus": "SUBSCRIBED",
"fields": {
"first_name": "Jane",
"last_name": "Smith",
"job_title": "VP of Marketing"
},
"companyFields": {
"company_name": "Acme Corp"
}
}
'{
"data": {
"cnvContactId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"contactCreated": true
}
}Authorizations
apiKeyapiKeyQuery
Body
application/json
Was this page helpful?