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.
The contact's email address. At least one of email or cnvContactId is required. When both are provided, cnvContactId identifies the contact and email updates the contact's email address.
The Conversion contact ID. Use this to identify an existing contact by its internal ID instead of email. At least one of email or cnvContactId is required.
When true, prevents overwriting existing non-empty field values. New values are only written to fields that are currently empty or unset. Useful for enrichment workflows.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Conversion Docs","colors":{"primary":"#2C789F","light":"#3791C0","dark":"#225E7D"},"logo":{"light":"https://mintcdn.com/conversion/M0RNTMA370yH2H5Y/logo/light.svg?fit=max\u0026auto=format\u0026n=M0RNTMA370yH2H5Y\u0026q=85\u0026s=dd94915bb123e2ceb1ca67d31e896f3a","dark":"https://mintcdn.com/conversion/M0RNTMA370yH2H5Y/logo/dark.svg?fit=max\u0026auto=format\u0026n=M0RNTMA370yH2H5Y\u0026q=85\u0026s=2020c26ba331777bd667dcef815a57b2"},"favicon":"https://mintcdn.com/conversion/T2lj7tkL3i8HhLKA/favicon.svg?fit=max\u0026auto=format\u0026n=T2lj7tkL3i8HhLKA\u0026q=85\u0026s=d005c78403dd8b918a4768e913932fe4","api":{"playground":{"display":"interactive"}},"navbar":{"links":[],"primary":{"type":"button","label":"Dashboard","href":"https://app.conversion.ai"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/tryconversion","x":"https://x.com/tryconversion","instagram":"https://www.instagram.com/tryconversion","youtube":"https://www.youtube.com/@tryconversion"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"conversion","hasAudioNarration":false,"actualSubdomain":"conversion","customDomains":["docs.conversion.ai"],"gitSource":{"type":"github","owner":"tapp-ai","repo":"mega","deployBranch":"main","contentDirectory":"product-docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af63717ac5cf20351d85527","clientVersion":"0.0.4117","searchFilterCounts":[{"language":"default","tag":"Product Docs","count":227},{"language":"default","tag":"Workspace Settings","count":44},{"language":"default","tag":"Workflows","count":35},{"language":"default","tag":"Campaigns","count":34},{"language":"default","tag":"API Reference","count":32},{"language":"default","tag":"Nodes","count":25},{"language":"default","tag":"Data Syncing","count":23},{"language":"default","tag":"Forms","count":19},{"language":"default","tag":"Conversion AI","count":17},{"language":"default","tag":"Records","count":16}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/upsert-contact","slug":"/api-reference/upsert-contact","pageMetadata":{"title":"Upsert Contact","description":"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.","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/contacts","href":"/api-reference/upsert-contact","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Create a new contact or update an existing one. Contacts are identified by \", _jsx(_components.code, {\n children: \"email\"\n }), \" or \", _jsx(_components.code, {\n children: \"cnvContactId\"\n }), \". If the contact exists, its fields are updated; if not, a new contact is created.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Upsert Contact","description":"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.","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/contacts","href":"/api-reference/upsert-contact","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"upsertContact","summary":"Upsert Contact","description":"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.","requestBody":"1ef3ca10-f562-413d-8ec7-8f78b7fc3020","responses":{"200":"fca6c9e0-853c-4847-a987-8ea46ef43336","400":"d6a0cfa4-43fb-4ae6-b63d-b4ffd75783a8","401":"c1ace935-7049-4c7b-9a30-fb7ad7ebf346","404":"2420df1c-19ff-42fb-8d75-6b5e150e6d57","500":"73bab26b-228c-4a23-b2a8-31875d9bfbfb"},"method":"post","type":"path","servers":["e3ed283f-d0eb-4402-99e1-063950ef0c3a"],"security":["2a3d928d-44fb-4185-a55c-18ac68131732","7b695cb3-04d3-40ee-9fe0-469752c5abf3"],"path":"/v2/contacts","baseUrlOptions":["https://pub-api.conversion.ai/api"],"title":"Upsert Contact","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","description":"The contact's email address. At least one of `email` or `cnvContactId` is required. When both are provided, `cnvContactId` identifies the contact and `email` updates the contact's email address.","examples":["jane@example.com"],"uniqueKey":"email","typeLabel":"string\u003cemail>"},"cnvContactId":{"type":"string","format":"uuid","description":"The Conversion contact ID. Use this to identify an existing contact by its internal ID instead of email. At least one of `email` or `cnvContactId` is required.","examples":["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],"uniqueKey":"cnvContactId","typeLabel":"string\u003cuuid>"},"subscriptionStatus":{"type":"string","enum":["SUBSCRIBED","UNSUBSCRIBED","NO_STATUS"],"description":"The contact's email subscription status. System-managed statuses (`BOUNCED`, `COMPLAINED`, etc.) cannot be set through the API.","uniqueKey":"subscriptionStatus","typeLabel":"enum\u003cstring>"},"fields":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"fields.additionalProperties","typeLabel":"any"},"description":"A map of contact field keys to values. Keys must match existing field definitions in your Conversion account.","examples":[{"first_name":"Jane","last_name":"Smith","job_title":"VP of Marketing"}],"uniqueKey":"fields","typeLabel":"object"},"companyFields":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"companyFields.additionalProperties","typeLabel":"any"},"description":"A map of company field keys to values for the contact's associated company.","examples":[{"company_name":"Acme Corp","industry":"Technology"}],"uniqueKey":"companyFields","typeLabel":"object"},"updateOnly":{"type":"boolean","default":false,"description":"When `true`, restricts the operation to updates only. Returns a `contact_not_found` error if no existing contact matches the provided identifier.","uniqueKey":"updateOnly","typeLabel":"boolean"},"syncToCRM":{"type":"boolean","default":false,"description":"When `true`, syncs the contact to the connected CRM (e.g., Salesforce) if the contact does not already have an external CRM record.","uniqueKey":"syncToCRM","typeLabel":"boolean"},"preserveExistingFields":{"type":"boolean","default":false,"description":"When `true`, prevents overwriting existing non-empty field values. New values are only written to fields that are currently empty or unset. Useful for enrichment workflows.","uniqueKey":"preserveExistingFields","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"create-with-fields":{"title":"create-with-fields","value":{"email":"jane@example.com","subscriptionStatus":"SUBSCRIBED","fields":{"first_name":"Jane","last_name":"Smith","job_title":"VP of Marketing"},"companyFields":{"company_name":"Acme Corp"}}},"update-by-id":{"title":"update-by-id","value":{"cnvContactId":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","fields":{"job_title":"Director of Marketing"}}},"enrich":{"title":"enrich","value":{"email":"jane@example.com","preserveExistingFields":true,"fields":{"first_name":"Jane","last_name":"Smith","phone":"+1-555-0100"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"fca6c9e0-853c-4847-a987-8ea46ef43336":{"description":"Contact upserted successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["cnvContactId","contactCreated"],"properties":{"cnvContactId":{"type":"string","format":"uuid","description":"The Conversion contact ID of the created or updated contact.","isRequired":true,"uniqueKey":"data.cnvContactId","typeLabel":"string\u003cuuid>"},"contactCreated":{"type":"boolean","description":"`true` if a new contact was created, `false` if an existing contact was updated.","isRequired":true,"uniqueKey":"data.contactCreated","typeLabel":"boolean"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"created":{"title":"created","value":{"data":{"cnvContactId":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","contactCreated":true}}},"updated":{"title":"updated","value":{"data":{"cnvContactId":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","contactCreated":false}}}},"exampleType":"examples"}},"exampleType":"examples"},"d6a0cfa4-43fb-4ae6-b63d-b4ffd75783a8":{"description":"The request was malformed or contained invalid data.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A machine-readable error code.","examples":["invalid_email"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable error description.","examples":["invalid email format: not-an-email"],"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"missing-identifier":{"title":"missing-identifier","value":{"error":{"code":"missing_identifier","message":"either 'email' or 'cnvContactId' is required"}}},"invalid-email":{"title":"invalid-email","value":{"error":{"code":"invalid_email","message":"invalid email format: not-an-email"}}},"invalid-field":{"title":"invalid-field","value":{"error":{"code":"invalid_field","message":"field 'nonexistent_key' does not exist"}}},"invalid-subscription-status":{"title":"invalid-subscription-status","value":{"error":{"code":"invalid_subscription_status","message":"invalid subscription status value"}}}},"exampleType":"examples"}},"exampleType":"examples"},"c1ace935-7049-4c7b-9a30-fb7ad7ebf346":{"description":"Authentication failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A machine-readable error code.","examples":["invalid_email"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable error description.","examples":["invalid email format: not-an-email"],"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"unauthorized":{"title":"unauthorized","value":{"error":{"code":"unauthorized","message":"API key is required"}}}},"exampleType":"examples"}},"exampleType":"examples"},"2420df1c-19ff-42fb-8d75-6b5e150e6d57":{"description":"Contact not found (when `updateOnly` is true).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A machine-readable error code.","examples":["invalid_email"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable error description.","examples":["invalid email format: not-an-email"],"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"not-found":{"title":"not-found","value":{"error":{"code":"contact_not_found","message":"no contact found with the provided identifier"}}}},"exampleType":"examples"}},"exampleType":"examples"},"73bab26b-228c-4a23-b2a8-31875d9bfbfb":{"description":"An unexpected server error occurred.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A machine-readable error code.","examples":["invalid_email"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable error description.","examples":["invalid email format: not-an-email"],"isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"internal":{"title":"internal","value":{"error":{"code":"internal_error","message":"failed to upsert contact"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"2a3d928d-44fb-4185-a55c-18ac68131732":{"apiKey":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Your Conversion API key. Found in **Settings > Integrations** in the dashboard. Format: `sk_live_\u003ckey_id>_\u003csecret>`.","scopes":[],"schemeName":"apiKey"}},"7b695cb3-04d3-40ee-9fe0-469752c5abf3":{"apiKeyQuery":{"type":"apiKey","in":"query","name":"api_key","description":"Your Conversion API key, sent as a query parameter instead of the `X-API-Key` header. Prefer the header: URLs can end up in logs and browser history.","scopes":[],"schemeName":"apiKeyQuery"}}},"servers":{"e3ed283f-d0eb-4402-99e1-063950ef0c3a":{"url":"https://pub-api.conversion.ai/api"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Your Conversion API key. Found in **Settings > Integrations** in the dashboard. Format: `sk_live_\u003ckey_id>_\u003csecret>`.","scopes":[],"schemeName":"apiKey"},"schema":{"title":"X-API-Key","type":"string","description":"Your Conversion API key. Found in **Settings > Integrations** in the dashboard. Format: `sk_live_\u003ckey_id>_\u003csecret>`.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"X-API-Key"}],"title":"apiKey"},{"schemes":[{"scheme":{"type":"apiKey","in":"query","name":"api_key","description":"Your Conversion API key, sent as a query parameter instead of the `X-API-Key` header. Prefer the header: URLs can end up in logs and browser history.","scopes":[],"schemeName":"apiKeyQuery"},"schema":{"title":"api_key","type":"string","description":"Your Conversion API key, sent as a query parameter instead of the `X-API-Key` header. Prefer the header: URLs can end up in logs and browser history.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyQuery","name":"api_key"}],"title":"apiKeyQuery"}]},"originalFileLocation":"openapi.json"},"subdomain":"conversion","siteName":"Conversion Docs","title":"Upsert Contact - Conversion Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T00:57:19.645Z","originalFileLocation":"api-reference/upsert-contact.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"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.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Conversion Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/conversion/sLGaUqkRMoGSOJ-R/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/conversion/sLGaUqkRMoGSOJ-R/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/conversion/sLGaUqkRMoGSOJ-R/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/conversion/sLGaUqkRMoGSOJ-R/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/conversion/sLGaUqkRMoGSOJ-R/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/conversion/sLGaUqkRMoGSOJ-R/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/conversion/sLGaUqkRMoGSOJ-R/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/conversion/sLGaUqkRMoGSOJ-R/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/conversion/sLGaUqkRMoGSOJ-R/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upsert Contact - Conversion Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"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.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Conversion Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.conversion.ai/api-reference/upsert-contact\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://conversion.mintlify.site/_mintlify/api/og/v2?division=Contacts\u0026amp;title=Upsert+Contact\u0026amp;description=Create+a+new+contact+or+update+an+existing+one.+Contacts+are+identified+by+%60email%60+or+%60cnvContactId%60.+If+the+contact+exists%2C+its+fields+are+updated%3B+if+not%2C+a+n\u0026amp;theme=d8788a8349fc61d29bb2579b\u0026amp;signature=fc57e90c4969e25540b96284a348478c081fddc6653f7dc9790799c0ff92de40\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Upsert Contact - Conversion Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"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.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://conversion.mintlify.site/_mintlify/api/og/v2?division=Contacts\u0026amp;title=Upsert+Contact\u0026amp;description=Create+a+new+contact+or+update+an+existing+one.+Contacts+are+identified+by+%60email%60+or+%60cnvContactId%60.+If+the+contact+exists%2C+its+fields+are+updated%3B+if+not%2C+a+n\u0026amp;theme=d8788a8349fc61d29bb2579b\u0026amp;signature=fc57e90c4969e25540b96284a348478c081fddc6653f7dc9790799c0ff92de40\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/conversion/sLGaUqkRMoGSOJ-R/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Conversion Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2C789F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.conversion.ai/api-reference/upsert-contact\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/upsert-contact.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.conversion.ai/#organization\",\"name\":\"Conversion Docs\",\"url\":\"https://docs.conversion.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/conversion/M0RNTMA370yH2H5Y/logo/light.svg?fit=max\u0026auto=format\u0026n=M0RNTMA370yH2H5Y\u0026q=85\u0026s=dd94915bb123e2ceb1ca67d31e896f3a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.conversion.ai#website\",\"name\":\"Conversion Docs\",\"url\":\"https://docs.conversion.ai\",\"publisher\":{\"@id\":\"https://docs.conversion.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.conversion.ai/api-reference/upsert-contact#webpage\",\"url\":\"https://docs.conversion.ai/api-reference/upsert-contact\",\"name\":\"Upsert Contact\",\"description\":\"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.\",\"dateModified\":\"2026-11-06T00:57:19.645Z\",\"isPartOf\":{\"@id\":\"https://docs.conversion.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.conversion.ai/api-reference/upsert-contact#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.conversion.ai/api-reference/upsert-contact#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Conversion Docs\",\"item\":\"https://docs.conversion.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upsert Contact\",\"item\":\"https://docs.conversion.ai/api-reference/upsert-contact\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.conversion.ai/api-reference/upsert-contact#apireference\",\"headline\":\"Upsert Contact\",\"name\":\"Upsert Contact\",\"description\":\"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.\",\"url\":\"https://docs.conversion.ai/api-reference/upsert-contact\",\"mainEntityOfPage\":{\"@id\":\"https://docs.conversion.ai/api-reference/upsert-contact#webpage\"},\"dateModified\":\"2026-11-06T00:57:19.645Z\",\"publisher\":{\"@id\":\"https://docs.conversion.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.conversion.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Conversion Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Conversion Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/upsert-contact.md","siteName":"Conversion Docs","nav":{"global":null,"tabs":[{"tab":"Product Docs","pages":[{"title":"Product Docs","href":"/product-docs/introduction"}]},{"tab":"Conversion AI","pages":[{"title":"Conversion AI","href":"/product-docs/conversion-ai/introduction"}]},{"tab":"API Reference","groups":[{"group":"Getting Started","pages":[{"title":"API Overview","href":"/api-reference/overview"},{"title":"Authentication","description":"Authenticate your API requests using an API key.","href":"/api-reference/authentication"}]},{"group":"Contacts","pages":[{"title":"Upsert Contact","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/contacts","href":"/api-reference/upsert-contact"},{"title":"Batch Upsert Contacts","description":"Create or update up to 1,000 contacts in a single request, with a result for each contact. Optionally pass `audienceId` to add successfully upserted contacts to a static audience.","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/contacts/batch","href":"/api-reference/batch-upsert-contacts"},{"title":"Get Contact","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/contacts","href":"/api-reference/get-contact"}]},{"group":"Events","pages":[{"title":"Track Event","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/events","href":"/api-reference/track-event"},{"title":"Batch Track Events","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/events/batch","href":"/api-reference/batch-track-events"}]},{"group":"Workflows","pages":[{"title":"Trigger Workflow","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/workflows/{workflowId}/trigger","href":"/api-reference/trigger-workflow"}]},{"group":"Fields","pages":[{"title":"List Fields","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/fields","href":"/api-reference/list-fields"},{"title":"Create Field","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/fields","href":"/api-reference/create-field"},{"title":"Create Relationship Fields","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/fields/relationships","href":"/api-reference/create-relationship-fields"}]},{"group":"Custom Objects","pages":[{"title":"Batch Upsert Custom Object Records","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/custom-objects/{customObjectId}/records/batch","href":"/api-reference/batch-upsert-custom-object-records"}]},{"group":"Forms","pages":[{"title":"List Forms","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/forms","href":"/api-reference/list-forms"},{"title":"Get Form","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/forms/{formId}","href":"/api-reference/get-form"}]},{"group":"Audiences","pages":[{"title":"Add Contact to Audience","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/audiences/{audienceId}/contacts","href":"/api-reference/add-contact-to-audience"},{"title":"Remove Contact from Audience","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/audiences/{audienceId}/contacts","href":"/api-reference/remove-contact-from-audience"}]},{"group":"Campaigns","pages":[{"title":"List Campaigns","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/campaigns","href":"/api-reference/list-campaigns"},{"title":"Get Campaign","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/campaigns/{campaignId}","href":"/api-reference/get-campaign"},{"title":"Add Campaign Member","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/campaigns/{campaignId}/members","href":"/api-reference/add-campaign-member"},{"title":"Batch Add Campaign Members","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/campaigns/{campaignId}/members/batch","href":"/api-reference/batch-add-campaign-members"}]},{"group":"Exports","pages":[{"title":"Export Contacts","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/exports/contacts","href":"/api-reference/export-contacts"},{"title":"Export Email Events","deprecated":true,"version":null,"openapi":"/openapi.json post /v2/exports/email-events","href":"/api-reference/export-email-events"},{"title":"Export Custom Events","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/exports/custom-events","href":"/api-reference/export-custom-events"},{"title":"Export Contact Events","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/exports/contact-events","href":"/api-reference/export-contact-events"},{"title":"Export Campaigns","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/exports/campaigns","href":"/api-reference/export-campaigns"},{"title":"Export Campaign Types","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/exports/campaign-types","href":"/api-reference/export-campaign-types"},{"title":"Export Workflows","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/exports/workflows","href":"/api-reference/export-workflows"},{"title":"Export Audiences","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/exports/audiences","href":"/api-reference/export-audiences"},{"title":"Export Audience Members","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/exports/audience-members","href":"/api-reference/export-audience-members"},{"title":"Export Touchpoints","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/exports/touchpoints","href":"/api-reference/export-touchpoints"}]},{"group":"Privacy","pages":[{"title":"Full Delete Contact","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/full-delete","href":"/api-reference/full-delete-contact"}]},{"group":"Zapier","pages":[{"title":"Zapier Overview","sidebarTitle":"Overview","href":"/api-reference/zapier/overview"}]}]}]},"basePath":"","title":"Upsert Contact - Conversion Docs","buildId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","deploymentId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DDP9JXtj.js","utils-8yQyvEtx.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CBCFR8Sn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-rQaXkUHa.js","snippetPresets-J5KpBTgV.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BVxVH4Cj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BxdQ2vIi.js","shallow-BjV2tFiD.js","getApiPlaygroundDisplay-C_55tL4O.js","CodeSnippet-C0JpiCOC.js","CodeSnippets-w9Ps7djG.js","Page-DTNSD-0M.js","getPastedJson-BDfB-H8d.js","icon-g-kUkkO9.js","MethodPill-v4l6fq0h.js","DuplicateIcon-CvLo-CfU.js","createIcon-165clrrV.js","DynamicMarkdown-D3RQ-fEj.js","SectionHeading-vvo-3yLf.js","axios-vUo_bRtp.js","Markdown-CMT1uFWQ.js","clsx-C8f2yC9R.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CI2D8R2Y.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-k78Wrw_e.js"]}