The upsert endpoint is designed to allow Luadspeaker users the programmatic ability to add new customers or update existing customers.The upsert endpoint looks up a customer document using the supplied primary_key, and then adds or changes customer attribute values specified in the propertiesjson object in the request body.
In order to use this endpoint, a primary key must have first been selected via the Laudspeaker UI.
Authentication
string
required
Header for authenticating with Laudspeaker. Starts with Api-Key followed by the API key, for example Api-Key M4jxXt6diYz1Dds1YmhHe93KGPAUi24PlXgaiRXi.
Body
string
required
This field specifies the primary key value used to uniquely identify users.
json
This is where additional properties are added to the customer object. To delete a property, pass the key with value set to null.
Response
{ "id":"65a70f3c373d50b91ea57438"}
{ "error":"Primary Key not selected"}
string
required
The id of the customer object that was created or modified.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Laudspeaker","colors":{"primary":"#2b31be","light":"#8084d9","dark":"#fc8131"},"favicon":"/favicon.svg","logo":{"light":"https://mintcdn.com/laudspeaker/7lf1nHx5velQijQJ/logo/light.svg?fit=max\u0026auto=format\u0026n=7lf1nHx5velQijQJ\u0026q=85\u0026s=51b03616839e01761c288e16150c1527","dark":"https://mintcdn.com/laudspeaker/7lf1nHx5velQijQJ/logo/dark.svg?fit=max\u0026auto=format\u0026n=7lf1nHx5velQijQJ\u0026q=85\u0026s=74bd7a31041cbd5c8df9cbfd4a29f2e7"},"navbar":{"links":[{"label":"Get Started","href":"https://app.laudspeaker.com/signup"}],"primary":{"type":"github","href":"https://github.com/laudspeaker/laudspeaker"}},"footer":{"socials":{"twitter":"https://twitter.com/laudspeaker","linkedin":"https://www.linkedin.com/company/laudspeaker/about/","github":"https://github.com/Laudspeaker/Laudspeaker","slack":"https://laudspeakerusers.slack.com/join/shared_invite/zt-1li25huaq-BljJUA1Zm8dXvbZViAbMwg#/shared-invite/email"}},"navigation":{"global":{"anchors":[{"anchor":"GitHub","href":"https://github.com/Laudspeaker/Laudspeaker","icon":"github"},{"anchor":"Community","href":"https://laudspeakerusers.slack.com/join/shared_invite/zt-1li25huaq-BljJUA1Zm8dXvbZViAbMwg#/shared-invite/email","icon":"slack"},{"anchor":"Try Laudspeaker","href":"https://app.laudspeaker.com/","icon":"newspaper"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"laudspeaker","hasAudioNarration":false,"actualSubdomain":"laudspeaker","customDomains":["laudspeaker.com"],"gitSource":{"type":"github","owner":"laudspeaker","repo":"laudspeaker-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae91473490ed5cbb5606515:success","clientVersion":"0.0.4277","searchFilterCounts":[{"language":"default","tag":"Customer Engagement Suite","count":42},{"language":"default","tag":"Developer Guide","count":23},{"language":"default","tag":"Developer","count":23},{"language":"default","tag":"Product Manual","count":19},{"language":"default","tag":"Messaging Channels","count":16},{"language":"default","tag":"SDKs","count":9},{"language":"default","tag":"Email","count":8},{"language":"default","tag":"SMS","count":7},{"language":"default","tag":"Message Channels","count":6},{"language":"default","tag":"API Reference","count":5}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"site-roles","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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"developer/api/users/upsert","slug":"/developer/api/users/upsert","pageMetadata":{"title":"Upsert","description":"Adding or updating customers programmatically via the Laudspeaker API","api":"POST https://app.laudspeaker.com/api/customers/upsert","href":"/developer/api/users/upsert"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Adding or updating customers programmatically via the Laudspeaker API\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,ParamField,ResponseField,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`upsert`}),` endpoint is designed to allow Luadspeaker users the programmatic ability to add new customers or update existing customers.`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`upsert`}),` endpoint looks up a customer document using the supplied `,_jsx(_components.code,{children:`primary_key`}),`, and then adds or changes customer attribute values specified in the `,_jsx(_components.code,{children:`properties`}),` `,_jsx(_components.code,{children:`json`}),` object in the request body.`]}),`\n`,_jsxs(Warning,{children:[`In order to use this endpoint, a primary key must have first been selected via the `,_jsx(_components.a,{href:`https://app.laudspeaker.com/`,children:`Laudspeaker UI`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,initialValue:`Api-Key \u003cLAUDSPEAKER_API_KEY>`,placeholder:`Api-Key \u003cLAUDSPEAKER_API_KEY>`,id:`param-authorization`,children:_jsxs(_components.p,{children:[`Header for authenticating with Laudspeaker. Starts with `,_jsx(_components.code,{children:`Api-Key`}),` followed by the API key, for example `,_jsx(_components.code,{children:`Api-Key M4jxXt6diYz1Dds1YmhHe93KGPAUi24PlXgaiRXi`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`primary_key`,type:`string`,required:true,placeholder:`email`,id:`param-primary-key`,children:_jsx(_components.p,{children:`This field specifies the primary key value used to uniquely identify users.`})}),`\n`,_jsx(ParamField,{body:`properties`,type:`json`,optional:true,id:`param-properties`,children:_jsxs(_components.p,{children:[`This is where additional properties are added to the customer object. To delete a property, pass the key with value set to `,_jsx(_components.code,{children:`null`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,`\n`,_jsx(ResponseField,{name:`id`,type:`string`,required:`true`,id:`param-id`,children:_jsx(_components.p,{children:`The id of the customer object that was created or modified.`})}),`\n`,_jsx(Heading,{level:`3`,id:`examples`,children:`Examples`}),`\n`,_jsx(Heading,{level:`4`,id:`creating-an-empty-customer-document`,children:`Creating an empty customer document`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`8`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`curl --request POST \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --url https://app.laudspeaker.com/api/customers/upsert \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --header 'Authorization: Api-Key M4jxXt6diYz1Dds1YmhHe93KGPAUi24PlXgaiRXi' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --header 'Content-Type: application/json' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --data '{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"primary_key\": \"johnsmith@example.com\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})}),`\n`,_jsx(Heading,{level:`4`,id:`updating-an-existing-customer-document`,children:`Updating an existing customer document`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`curl --request POST \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --url https://app.laudspeaker.com/api/customers/upsert \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --header 'Authorization: Api-Key M4jxXt6diYz1Dds1YmhHe93KGPAUi24PlXgaiRXi' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --header 'Content-Type: application/json' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --data '{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"primary_key\": \"johnsmith@example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"properties\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"firstName\": \"John\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"lastName\": \"Smith\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})}),`\n`,_jsx(Heading,{level:`4`,id:`deleting-a-field-from-an-existing-customer-document`,children:`Deleting a field from an existing customer document`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`curl --request POST \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --url https://app.laudspeaker.com/api/customers/upsert \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --header 'Authorization: Api-Key M4jxXt6diYz1Dds1YmhHe93KGPAUi24PlXgaiRXi' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --header 'Content-Type: application/json' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --data '{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"primary_key\": \"johnsmith@example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"properties\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"firstName\": \"John\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"lastName\": null`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Upsert","description":"Adding or updating customers programmatically via the Laudspeaker API","api":"POST https://app.laudspeaker.com/api/customers/upsert","href":"/developer/api/users/upsert"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,ParamField,ResponseExample,ResponseField,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`upsert`}),` endpoint is designed to allow Luadspeaker users the programmatic ability to add new customers or update existing customers.`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`upsert`}),` endpoint looks up a customer document using the supplied `,_jsx(_components.code,{children:`primary_key`}),`, and then adds or changes customer attribute values specified in the `,_jsx(_components.code,{children:`properties`}),` `,_jsx(_components.code,{children:`json`}),` object in the request body.`]}),`\n`,_jsxs(Warning,{children:[`In order to use this endpoint, a primary key must have first been selected via the `,_jsx(_components.a,{href:`https://app.laudspeaker.com/`,children:`Laudspeaker UI`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,initialValue:`Api-Key \u003cLAUDSPEAKER_API_KEY>`,placeholder:`Api-Key \u003cLAUDSPEAKER_API_KEY>`,id:`param-authorization`,children:_jsxs(_components.p,{children:[`Header for authenticating with Laudspeaker. Starts with `,_jsx(_components.code,{children:`Api-Key`}),` followed by the API key, for example `,_jsx(_components.code,{children:`Api-Key M4jxXt6diYz1Dds1YmhHe93KGPAUi24PlXgaiRXi`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`primary_key`,type:`string`,required:true,placeholder:`email`,id:`param-primary-key`,children:_jsx(_components.p,{children:`This field specifies the primary key value used to uniquely identify users.`})}),`\n`,_jsx(ParamField,{body:`properties`,type:`json`,optional:true,id:`param-properties`,children:_jsxs(_components.p,{children:[`This is where additional properties are added to the customer object. To delete a property, pass the key with value set to `,_jsx(_components.code,{children:`null`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"65a70f3c373d50b91ea57438\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Primary Key not selected\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,required:`true`,id:`param-id`,children:_jsx(_components.p,{children:`The id of the customer object that was created or modified.`})}),`\n`,_jsx(Heading,{level:`3`,id:`examples`,children:`Examples`}),`\n`,_jsx(Heading,{level:`4`,id:`creating-an-empty-customer-document`,children:`Creating an empty customer document`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`8`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`curl --request POST \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --url https://app.laudspeaker.com/api/customers/upsert \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --header 'Authorization: Api-Key M4jxXt6diYz1Dds1YmhHe93KGPAUi24PlXgaiRXi' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --header 'Content-Type: application/json' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --data '{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"primary_key\": \"johnsmith@example.com\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})}),`\n`,_jsx(Heading,{level:`4`,id:`updating-an-existing-customer-document`,children:`Updating an existing customer document`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`curl --request POST \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --url https://app.laudspeaker.com/api/customers/upsert \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --header 'Authorization: Api-Key M4jxXt6diYz1Dds1YmhHe93KGPAUi24PlXgaiRXi' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --header 'Content-Type: application/json' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --data '{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"primary_key\": \"johnsmith@example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"properties\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"firstName\": \"John\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"lastName\": \"Smith\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})}),`\n`,_jsx(Heading,{level:`4`,id:`deleting-a-field-from-an-existing-customer-document`,children:`Deleting a field from an existing customer document`}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`curl --request POST \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --url https://app.laudspeaker.com/api/customers/upsert \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --header 'Authorization: Api-Key M4jxXt6diYz1Dds1YmhHe93KGPAUi24PlXgaiRXi' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --header 'Content-Type: application/json' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --data '{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"primary_key\": \"johnsmith@example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"properties\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"firstName\": \"John\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"lastName\": null`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Upsert","description":"Adding or updating customers programmatically via the Laudspeaker API","api":"POST https://app.laudspeaker.com/api/customers/upsert","href":"/developer/api/users/upsert"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Authentication","slug":"authentication","depth":3,"children":[]},{"title":"Body","slug":"body","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]},{"title":"Examples","slug":"examples","depth":3,"children":[]},{"title":"Creating an empty customer document","slug":"creating-an-empty-customer-document","depth":4,"children":[]},{"title":"Updating an existing customer document","slug":"updating-an-existing-customer-document","depth":4,"children":[]},{"title":"Deleting a field from an existing customer document","slug":"deleting-a-field-from-an-existing-customer-document","depth":4,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"65a70f3c373d50b91ea57438\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Primary Key not selected\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Upsert","path":"/api/customers/upsert","servers":[{"url":"https://app.laudspeaker.com"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"Header for authenticating with Laudspeaker. Starts with `Api-Key` followed by the API key, for example `Api-Key M4jxXt6diYz1Dds1YmhHe93KGPAUi24PlXgaiRXi` .","required":true,"placeholder":"Api-Key \u003cLAUDSPEAKER_API_KEY>"}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"primary_key":[{"type":"string","description":"This field specifies the primary key value used to uniquely identify users.","required":true,"placeholder":"email"}],"properties":[{"type":"any","description":"This is where additional properties are added to the customer object. To delete a property, pass the key with value set to `null` ."}]}}],"examples":{"example":{"value":{"primary_key":"\u003cstring>","properties":"\u003cany>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"id":[{"type":"string","description":"The id of the customer object that was created or modified."}]}}],"examples":{"example":{"value":{"id":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"laudspeaker","siteName":"Laudspeaker","title":"Upsert - Laudspeaker","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T22:47:38.176Z","originalFileLocation":"developer/api/users/upsert.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=\"Adding or updating customers programmatically via the Laudspeaker API\">\u003cmeta data-mint-head name=\"application-name\" content=\"Laudspeaker\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/laudspeaker/A_SsE4dI_4z7wpK2/_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=\"/docs/mintlify-assets/_mintlify/favicons/laudspeaker/A_SsE4dI_4z7wpK2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/laudspeaker/A_SsE4dI_4z7wpK2/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/laudspeaker/A_SsE4dI_4z7wpK2/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/laudspeaker/A_SsE4dI_4z7wpK2/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/laudspeaker/A_SsE4dI_4z7wpK2/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/laudspeaker/A_SsE4dI_4z7wpK2/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/laudspeaker/A_SsE4dI_4z7wpK2/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/laudspeaker/A_SsE4dI_4z7wpK2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upsert - Laudspeaker\">\u003cmeta data-mint-head property=\"og:description\" content=\"Adding or updating customers programmatically via the Laudspeaker API\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Laudspeaker\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://laudspeaker.com/docs/developer/api/users/upsert\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://laudspeaker.mintlify.site/docs/_mintlify/api/og/v2?division=Users\u0026amp;title=Upsert\u0026amp;description=Adding+or+updating+customers+programmatically+via+the+Laudspeaker+API\u0026amp;theme=3c656307de7e1b951023ef30\u0026amp;signature=b431374e6e852558ee1f2097c47b7c5fea6958a427acb9b33b0dc84633eb87a7\">\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 - Laudspeaker\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Adding or updating customers programmatically via the Laudspeaker API\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://laudspeaker.mintlify.site/docs/_mintlify/api/og/v2?division=Users\u0026amp;title=Upsert\u0026amp;description=Adding+or+updating+customers+programmatically+via+the+Laudspeaker+API\u0026amp;theme=3c656307de7e1b951023ef30\u0026amp;signature=b431374e6e852558ee1f2097c47b7c5fea6958a427acb9b33b0dc84633eb87a7\">\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=\"/docs/mintlify-assets/_mintlify/favicons/laudspeaker/A_SsE4dI_4z7wpK2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Laudspeaker\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2b31be\">\u003clink data-mint-head rel=\"canonical\" href=\"https://laudspeaker.com/docs/developer/api/users/upsert\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/developer/api/users/upsert.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://laudspeaker.com/#organization\",\"name\":\"Laudspeaker\",\"url\":\"https://laudspeaker.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/laudspeaker/7lf1nHx5velQijQJ/logo/light.svg?fit=max\u0026auto=format\u0026n=7lf1nHx5velQijQJ\u0026q=85\u0026s=51b03616839e01761c288e16150c1527\"}},{\"@type\":\"WebSite\",\"@id\":\"https://laudspeaker.com/docs#website\",\"name\":\"Laudspeaker\",\"url\":\"https://laudspeaker.com/docs\",\"publisher\":{\"@id\":\"https://laudspeaker.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://laudspeaker.com/docs/developer/api/users/upsert#webpage\",\"url\":\"https://laudspeaker.com/docs/developer/api/users/upsert\",\"name\":\"Upsert\",\"description\":\"Adding or updating customers programmatically via the Laudspeaker API\",\"dateModified\":\"2026-01-06T22:47:38.176Z\",\"isPartOf\":{\"@id\":\"https://laudspeaker.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://laudspeaker.com/docs/developer/api/users/upsert#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://laudspeaker.com/docs/developer/api/users/upsert#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Developer\",\"item\":\"https://laudspeaker.com/docs/developer/setup/setting-up-schema-and-channels\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API Reference\",\"item\":\"https://laudspeaker.com/docs/developer/api/events/send-event\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Upsert\",\"item\":\"https://laudspeaker.com/docs/developer/api/users/upsert\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://laudspeaker.com/docs/developer/api/users/upsert#apireference\",\"headline\":\"Upsert\",\"name\":\"Upsert\",\"description\":\"Adding or updating customers programmatically via the Laudspeaker API\",\"url\":\"https://laudspeaker.com/docs/developer/api/users/upsert\",\"mainEntityOfPage\":{\"@id\":\"https://laudspeaker.com/docs/developer/api/users/upsert#webpage\"},\"dateModified\":\"2026-01-06T22:47:38.176Z\",\"publisher\":{\"@id\":\"https://laudspeaker.com/#organization\"},\"isPartOf\":{\"@id\":\"https://laudspeaker.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Laudspeaker\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Laudspeaker\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/developer/api/users/upsert.md","siteName":"Laudspeaker","nav":{"global":{"anchors":[{"anchor":"GitHub","href":"https://github.com/Laudspeaker/Laudspeaker","icon":"github"},{"anchor":"Community","href":"https://laudspeakerusers.slack.com/join/shared_invite/zt-1li25huaq-BljJUA1Zm8dXvbZViAbMwg#/shared-invite/email","icon":"slack"},{"anchor":"Try Laudspeaker","href":"https://app.laudspeaker.com/","icon":"newspaper"}]},"tabs":[{"tab":"Customer Engagement Suite","pages":[{"title":"Customer Engagement Suite","href":"/overview/introduction"}]},{"tab":"Developer Guide","groups":[{"group":"Developer","pages":[{"group":"Quickstart","icon":"bolt-lightning","pages":[{"title":"Setting up Laudspeaker","icon":"hammer","href":"/developer/setup/setting-up-schema-and-channels"},{"title":"Sending events to Laudspeaker","icon":"bolt","href":"/developer/setup/setting-up-events"},{"title":"Sending your first mobile push messages","icon":"mobile","href":"/developer/setup/setting-up-mobile-push"},{"title":"Details about User Properties ","icon":"people-group","href":"/developer/setup/user-schema-specifics"},{"title":"Importing Users","icon":"user","href":"/developer/setup/Importing-Users"}]},{"group":"API Reference","icon":"code","pages":[{"group":"Events","pages":[{"title":"Send an Event","api":"POST https://app.laudspeaker.com/api/events/batch/","href":"/developer/api/events/send-event"}]},{"group":"Identify","pages":[{"title":"Identify a user","description":"Identifying users, and using external events as triggers in journeys.","api":"POST https://app.laudspeaker.com/api/events/batch/","href":"/developer/api/identify/identify"}]},{"group":"Users","pages":[{"title":"Upsert","api":"POST https://app.laudspeaker.com/api/customers/upsert","href":"/developer/api/users/upsert"},{"title":"Delete","description":"Deleting customers programmatically via the Laudspeaker API","api":"POST https://api.laudspeaker.com/customers/delete","href":"/developer/api/users/delete"},{"title":"Read","api":"POST https://api.laudspeaker.com/customers/read","href":"/developer/api/users/read"}]}]},{"group":"SDKs","icon":"cube","pages":[{"group":"Android","pages":[{"title":"Android SDK Overview","href":"/developer/sdks/android"},{"title":"Add Push Notifications","href":"/developer/sdks/android/adding-push"},{"title":"Tracking Events","href":"/developer/sdks/android/tracking-events"}]},{"group":"iOS","pages":[{"title":"iOS SDK Overview","href":"/developer/sdks/ios"},{"title":"Adding Standard Push Notifications","href":"/developer/sdks/ios/adding-standard-push"},{"title":"Adding Rich Push Notifications","href":"/developer/sdks/ios/adding-rich-push"},{"title":"Tracking Events","href":"/developer/sdks/ios/tracking-events"}]},{"title":"React Native","href":"/developer/sdks/react-native"},{"title":"Flutter","href":"/developer/sdks/flutter"},{"title":"React.js","href":"/developer/sdks/react"}]},{"group":"Migrations","pages":[{"title":"Graduating from Braze","href":"/developer/graduating-from-Braze"},{"title":"Graduating from Firebase","href":"/developer/graduating-from-Firebase"}]},{"title":"Contributing to Laudspeaker","href":"/developer/contributing-to-laudspeaker"},{"title":"How Laudspeaker works","href":"/developer/how-laudspeaker-works"},{"title":"Webhooks","href":"/developer/webhooks"},{"group":"Deploy","pages":[{"title":"Deployment Options","href":"/developer/deploy/options"}]}]}]}]},"basePath":"","title":"Upsert - Laudspeaker","deploymentId":"dpl_5rhUmeYihYWreyVvacFyguXMfbnu","buildId":"dpl_5rhUmeYihYWreyVvacFyguXMfbnu","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BB3iq3yK.js","snippetPresets-DbFdVJ7D.js","utils-B-BHRhal.js","style-to-object-BY3JEAdk.js","utils-CJmbXtRX.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-BbaAqP3r.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Dmv43rlk.js","_Uint8Array-BffVmDDz.js","isObject-FP1Yky1u.js","ApiExamples-DlokAgQ-.js","usePlaygroundInputsStore-CiDAydYA.js","shallow-Brqg7z7D.js","isEqual-B1w6LgOp.js","CodeSnippets-BwsRxASN.js","CodeSnippet-Bq9KgTLV.js","getApiPlaygroundDisplay-BTEHL5zc.js","Page-C4BWK2IQ.js","DynamicMarkdown-Nh25b3fQ.js","SectionHeading-DcwFs6JK.js","icon-BWxAeO4b.js","MethodPill-CPsmPAdF.js","getPastedJson-C-c6WiDD.js","Check2Icon-Dp5kTiU5.js","axios-CsQoIw0U.js"]}