{ "errors": { "ecm_push_id": ["The ecm push id field is required."] }}
{ "errors": { "ecm_push_id": ["The ecm_push_id is invalid."] }}
When Ecomail sends a push notification, it adds a click token named ecm_push_id to the FCM message data payload, next to deep_link. Post that token back to this endpoint when the recipient taps the notification, and Ecomail attributes the click to the campaign or automation that sent it.For web recipients with an https deep link, Ecomail also adds the token to the link the browser opens (webpush.fcm_options.link) as the ecm_push_id query parameter.
Ecomail only adds ecm_push_id when the notification has a deep link and the recipient is a known subscriber. A notification without a deep link carries no token, and there is nothing to report.
Ecomail counts each token once. A token sent again, in a later request or twice in one batch, adds no click, so you can safely retry a request that failed. You can batch up to 500 tokens in a single request.
Click tokens read from the ecm_push_id value in the notification’s data payload, or from the ecm_push_id query parameter of the link opened on the web. Send an array of 1 to 500 tokens, or a single token as a plain string. Each token can be up to 2048 characters.
{ "errors": { "ecm_push_id": ["The ecm push id field is required."] }}
{ "errors": { "ecm_push_id": ["The ecm_push_id is invalid."] }}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ecomail API","colors":{"primary":"#0F7B5F","light":"#12B886","dark":"#0D6B52"},"logo":{"light":"https://mintcdn.com/ecomail/qDze0E0xIaXJdAhk/logo/light.svg?fit=max\u0026auto=format\u0026n=qDze0E0xIaXJdAhk\u0026q=85\u0026s=7075922c6fe6d5e18e2edcaf136c8651","dark":"https://mintcdn.com/ecomail/qDze0E0xIaXJdAhk/logo/dark.svg?fit=max\u0026auto=format\u0026n=qDze0E0xIaXJdAhk\u0026q=85\u0026s=5f2b49857188ca4ff3ebb52eb3f8f1db"},"favicon":"https://mintcdn.com/ecomail/Xiiei-AD2s8SmVXm/favicon-32x32.png?fit=max\u0026auto=format\u0026n=Xiiei-AD2s8SmVXm\u0026q=85\u0026s=02961282d0e4fdbe8d438dcbb6432b3a","api":{"mdx":{"auth":{"method":"key","name":"key"},"server":"https://api2.ecomailapp.cz"}},"navbar":{"links":[{"href":"mailto:support@ecomail.cz","label":"Support"}],"primary":{"type":"button","label":"Sign in","href":"https://ecomail.app"}},"footer":{"socials":{"website":"https://ecomail.app"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ecomail","hasAudioNarration":false,"actualSubdomain":"ecomail","customDomains":["docs.ecomail.cz"],"gitSource":{"type":"github","owner":"tlapi","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6aeb0ac4c8520f7b8ee1fec2","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"API reference","count":77},{"language":"default","tag":"Lists","count":13},{"language":"default","tag":"Campaigns","count":10},{"language":"default","tag":"Ecomail AI","count":10},{"language":"default","tag":"Automations","count":6},{"language":"default","tag":"Subscribers","count":6},{"language":"default","tag":"Transactions","count":6},{"language":"default","tag":"Recommenders","count":5},{"language":"default","tag":"Discount coupons","count":4},{"language":"default","tag":"Smart delivery","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"llms-txt-v2","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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/push/register-click","slug":"/api-reference/push/register-click","pageMetadata":{"title":"Register a push click","api":"POST https://api2.ecomailapp.cz/push/click","description":"Report push notification click tokens so taps are attributed to the campaign or automation that sent them.","href":"/api-reference/push/register-click"},"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: \"Report push notification click tokens so taps are attributed to the campaign or automation that sent them.\"\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={code:`code`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note,ParamField}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`When Ecomail sends a push notification, it adds a click token named `,_jsx(_components.code,{children:`ecm_push_id`}),` to the FCM message `,_jsx(_components.code,{children:`data`}),` payload, next to `,_jsx(_components.code,{children:`deep_link`}),`. Post that token back to this endpoint when the recipient taps the notification, and Ecomail attributes the click to the campaign or automation that sent it.`]}),`\n`,_jsxs(_components.p,{children:[`For `,_jsx(_components.code,{children:`web`}),` recipients with an `,_jsx(_components.code,{children:`https`}),` deep link, Ecomail also adds the token to the link the browser opens (`,_jsx(_components.code,{children:`webpush.fcm_options.link`}),`) as the `,_jsx(_components.code,{children:`ecm_push_id`}),` query parameter.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Ecomail only adds `,_jsx(_components.code,{children:`ecm_push_id`}),` when the notification has a deep link and the recipient is a known subscriber. A notification without a deep link carries no token, and there is nothing to report.`]})}),`\n`,_jsx(_components.p,{children:`Ecomail counts each token once. A token sent again, in a later request or twice in one batch, adds no click, so you can safely retry a request that failed. You can batch up to 500 tokens in a single request.`}),`\n`,_jsx(ParamField,{body:`ecm_push_id`,type:`array|string`,required:true,id:`param-ecm-push-id`,children:_jsxs(_components.p,{children:[`Click tokens read from the `,_jsx(_components.code,{children:`ecm_push_id`}),` value in the notification’s `,_jsx(_components.code,{children:`data`}),` payload, or from the `,_jsx(_components.code,{children:`ecm_push_id`}),` query parameter of the link opened on the web. Send an array of 1 to 500 tokens, or a single token as a plain string. Each token can be up to 2048 characters.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`responses`,children:`Responses`}),`\n`,_jsx(_components.p,{children:`The status code tells you how many of the tokens Ecomail accepted:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`204`}),` — every token was accepted. The response has no body.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`200`}),` — some tokens were rejected. The accepted ones are still registered, and `,_jsx(_components.code,{children:`rejected`}),` says how many were not.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`422`}),` — none of the tokens were accepted, or the `,_jsx(_components.code,{children:`ecm_push_id`}),` field itself failed validation. Nothing was registered.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`A token is rejected when it is malformed, was not issued by Ecomail, or belongs to a different account than the API key you used.`})]})}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":"Register a push click","api":"POST https://api2.ecomailapp.cz/push/click","description":"Report push notification click tokens so taps are attributed to the campaign or automation that sent them.","href":"/api-reference/push/register-click"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,RequestExample,ResponseExample}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`When Ecomail sends a push notification, it adds a click token named `,_jsx(_components.code,{children:`ecm_push_id`}),` to the FCM message `,_jsx(_components.code,{children:`data`}),` payload, next to `,_jsx(_components.code,{children:`deep_link`}),`. Post that token back to this endpoint when the recipient taps the notification, and Ecomail attributes the click to the campaign or automation that sent it.`]}),`\n`,_jsxs(_components.p,{children:[`For `,_jsx(_components.code,{children:`web`}),` recipients with an `,_jsx(_components.code,{children:`https`}),` deep link, Ecomail also adds the token to the link the browser opens (`,_jsx(_components.code,{children:`webpush.fcm_options.link`}),`) as the `,_jsx(_components.code,{children:`ecm_push_id`}),` query parameter.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Ecomail only adds `,_jsx(_components.code,{children:`ecm_push_id`}),` when the notification has a deep link and the recipient is a known subscriber. A notification without a deep link carries no token, and there is nothing to report.`]})}),`\n`,_jsx(_components.p,{children:`Ecomail counts each token once. A token sent again, in a later request or twice in one batch, adds no click, so you can safely retry a request that failed. You can batch up to 500 tokens in a single request.`}),`\n`,_jsx(ParamField,{body:`ecm_push_id`,type:`array|string`,required:true,id:`param-ecm-push-id`,children:_jsxs(_components.p,{children:[`Click tokens read from the `,_jsx(_components.code,{children:`ecm_push_id`}),` value in the notification’s `,_jsx(_components.code,{children:`data`}),` payload, or from the `,_jsx(_components.code,{children:`ecm_push_id`}),` query parameter of the link opened on the web. Send an array of 1 to 500 tokens, or a single token as a plain string. Each token can be up to 2048 characters.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`responses`,children:`Responses`}),`\n`,_jsx(_components.p,{children:`The status code tells you how many of the tokens Ecomail accepted:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`204`}),` — every token was accepted. The response has no body.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`200`}),` — some tokens were rejected. The accepted ones are still registered, and `,_jsx(_components.code,{children:`rejected`}),` says how many were not.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`422`}),` — none of the tokens were accepted, or the `,_jsx(_components.code,{children:`ecm_push_id`}),` field itself failed validation. Nothing was registered.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`A token is rejected when it is malformed, was not issued by Ecomail, or belongs to a different account than the API key you used.`}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`8`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api2.ecomailapp.cz/push/click`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ecm_push_id\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"eyJpdiI6IkV4YW1wbGVJdiIsInZhbHVlIjoiRXhhbXBsZUVuY3J5cHRlZENsaWNrVG9rZW4ifQ==\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`PHP`,numberOfLines:`15`,language:`php`,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:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` curl_init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CURLOPT_URL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api2.ecomailapp.cz/push/click'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CURLOPT_RETURNTRANSFER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CURLOPT_POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CURLOPT_HTTPHEADER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'key: YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_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:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CURLOPT_POSTFIELDS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`json_encode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`([`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'ecm_push_id'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'eyJpdiI6IkV4YW1wbGVJdiIsInZhbHVlIjoiRXhhbXBsZUVuY3J5cHRlZENsaWNrVG9rZW4ifQ=='`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` curl_exec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`204`,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:_jsx(_components.code,{language:`json`})})}),_jsx(CodeBlock,{filename:`200 Some tokens rejected`,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:` \"rejected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`422 Missing field`,numberOfLines:`5`,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:`5`,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:` \"errors\"`}),_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:` \"ecm_push_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The ecm push id field is required.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`422 Invalid token`,numberOfLines:`5`,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:`5`,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:` \"errors\"`}),_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:` \"ecm_push_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The ecm_push_id is invalid.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}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":"Register a push click","api":"POST https://api2.ecomailapp.cz/push/click","description":"Report push notification click tokens so taps are attributed to the campaign or automation that sent them.","href":"/api-reference/push/register-click"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Responses","slug":"responses","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","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=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"8\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api2.ecomailapp.cz/push/click\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"key: YOUR_API_KEY\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"ecm_push_id\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"eyJpdiI6IkV4YW1wbGVJdiIsInZhbHVlIjoiRXhhbXBsZUVuY3J5cHRlZENsaWNrVG9rZW4ifQ==\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"PHP","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=\"php\">\u003ccode language=\"php\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> curl_init\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_setopt\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">CURLOPT_URL\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'https://api2.ecomailapp.cz/push/click'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_setopt\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">CURLOPT_RETURNTRANSFER\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_setopt\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">CURLOPT_POST\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_setopt\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">CURLOPT_HTTPHEADER\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'key: YOUR_API_KEY'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_setopt\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">CURLOPT_POSTFIELDS\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">json_encode\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">([\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'ecm_push_id'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'eyJpdiI6IkV4YW1wbGVJdiIsInZhbHVlIjoiRXhhbXBsZUVuY3J5cHRlZENsaWNrVG9rZW4ifQ=='\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]));\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> curl_exec\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_close\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"204","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\">\u003c/code>\u003c/pre>"},{"filename":"200 Some tokens rejected","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\"> \"rejected\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\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":"422 Missing field","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=\"5\">\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\"> \"errors\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ecm_push_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"The ecm push id field is required.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\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":"422 Invalid token","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=\"5\">\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\"> \"errors\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ecm_push_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"The ecm_push_id is invalid.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\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":"Register a push click","path":"/push/click","servers":[{"url":"https://api2.ecomailapp.cz"}],"method":"post","request":{"security":[{"title":"API Key Auth","parameters":{"header":{"key":{"type":"apiKey"}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"ecm_push_id":[{"type":"object","properties":{},"description":"Click tokens read from the `ecm_push_id` value in the notification’s `data` payload, or from the `ecm_push_id` query parameter of the link opened on the web. Send an array of 1 to 500 tokens, or a single token as a plain string. Each token can be up to 2048 characters.","required":true}]}}],"examples":{"example":{"value":{"ecm_push_id":{}}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"ecomail","siteName":"Ecomail API","title":"Register a push click - Ecomail API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-02T15:17:38.904Z","originalFileLocation":"api-reference/push/register-click.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=\"Report push notification click tokens so taps are attributed to the campaign or automation that sent them.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ecomail API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ecomail/_nC-Ii1GfhaTmJjE/_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/ecomail/_nC-Ii1GfhaTmJjE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ecomail/_nC-Ii1GfhaTmJjE/_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/ecomail/_nC-Ii1GfhaTmJjE/_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/ecomail/_nC-Ii1GfhaTmJjE/_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/ecomail/_nC-Ii1GfhaTmJjE/_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/ecomail/_nC-Ii1GfhaTmJjE/_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/ecomail/_nC-Ii1GfhaTmJjE/_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/ecomail/_nC-Ii1GfhaTmJjE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Register a push click - Ecomail API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Report push notification click tokens so taps are attributed to the campaign or automation that sent them.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ecomail API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ecomail.cz/api-reference/push/register-click\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ecomail.mintlify.site/_mintlify/api/og/v2?division=Push+notifications\u0026amp;title=Register+a+push+click\u0026amp;description=Report+push+notification+click+tokens+so+taps+are+attributed+to+the+campaign+or+automation+that+sent+them.\u0026amp;theme=37f4d4f94071fa24511468c7\u0026amp;signature=437588a92785700aade519fdda455a5fbdf10f010723d46cafe2f58801d669b4\">\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=\"Register a push click - Ecomail API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Report push notification click tokens so taps are attributed to the campaign or automation that sent them.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ecomail.mintlify.site/_mintlify/api/og/v2?division=Push+notifications\u0026amp;title=Register+a+push+click\u0026amp;description=Report+push+notification+click+tokens+so+taps+are+attributed+to+the+campaign+or+automation+that+sent+them.\u0026amp;theme=37f4d4f94071fa24511468c7\u0026amp;signature=437588a92785700aade519fdda455a5fbdf10f010723d46cafe2f58801d669b4\">\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/ecomail/_nC-Ii1GfhaTmJjE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ecomail API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F7B5F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ecomail.cz/api-reference/push/register-click\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/push/register-click.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ecomail.cz/#organization\",\"name\":\"Ecomail API\",\"url\":\"https://docs.ecomail.cz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ecomail/qDze0E0xIaXJdAhk/logo/light.svg?fit=max\u0026auto=format\u0026n=qDze0E0xIaXJdAhk\u0026q=85\u0026s=7075922c6fe6d5e18e2edcaf136c8651\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ecomail.cz#website\",\"name\":\"Ecomail API\",\"url\":\"https://docs.ecomail.cz\",\"publisher\":{\"@id\":\"https://docs.ecomail.cz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ecomail.cz/api-reference/push/register-click#webpage\",\"url\":\"https://docs.ecomail.cz/api-reference/push/register-click\",\"name\":\"Register a push click\",\"description\":\"Report push notification click tokens so taps are attributed to the campaign or automation that sent them.\",\"dateModified\":\"2026-11-02T15:17:38.904Z\",\"isPartOf\":{\"@id\":\"https://docs.ecomail.cz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ecomail.cz/api-reference/push/register-click#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ecomail.cz/api-reference/push/register-click#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ecomail API\",\"item\":\"https://docs.ecomail.cz\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Register a push click\",\"item\":\"https://docs.ecomail.cz/api-reference/push/register-click\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.ecomail.cz/api-reference/push/register-click#apireference\",\"headline\":\"Register a push click\",\"name\":\"Register a push click\",\"description\":\"Report push notification click tokens so taps are attributed to the campaign or automation that sent them.\",\"url\":\"https://docs.ecomail.cz/api-reference/push/register-click\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ecomail.cz/api-reference/push/register-click#webpage\"},\"dateModified\":\"2026-11-02T15:17:38.904Z\",\"publisher\":{\"@id\":\"https://docs.ecomail.cz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ecomail.cz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ecomail API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Ecomail API","nav":{"global":null,"tabs":[{"tab":"API reference","groups":[{"group":"Getting started","pages":[{"title":"Introduction","href":"/api-reference/introduction"}]},{"group":"Automations","pages":[{"title":"List all automations","api":"GET https://api2.ecomailapp.cz/pipelines","href":"/api-reference/automations/list-all"},{"title":"Get automation actions","api":"GET https://api2.ecomailapp.cz/pipelines/{id}/actions","href":"/api-reference/automations/get-actions"},{"title":"Get automation action detail","api":"GET https://api2.ecomailapp.cz/pipelines/{id}/actions/{actionId}","href":"/api-reference/automations/get-action-detail"},{"title":"Trigger automation","api":"POST https://api2.ecomailapp.cz/pipelines/{pipeline_id}/trigger","href":"/api-reference/automations/trigger"},{"title":"Get automation stats","api":"GET https://api2.ecomailapp.cz/pipelines/{pipeline_id}/stats","href":"/api-reference/automations/get-stats"},{"title":"Get automation stats detail","api":"GET https://api2.ecomailapp.cz/pipelines/{pipeline_id}/stats-detail","href":"/api-reference/automations/get-stats-detail"}]},{"group":"Campaigns","pages":[{"title":"List all campaigns","api":"GET https://api2.ecomailapp.cz/campaigns","href":"/api-reference/campaigns/list-all"},{"title":"Add new campaign","api":"POST https://api2.ecomailapp.cz/campaigns","href":"/api-reference/campaigns/add-new"},{"title":"Get campaign detail","api":"GET https://api2.ecomailapp.cz/campaigns/{campaign_id}","href":"/api-reference/campaigns/get-detail"},{"title":"Update campaign","api":"PUT https://api2.ecomailapp.cz/campaigns/{campaign_id}","href":"/api-reference/campaigns/update"},{"title":"Send campaign","api":"POST https://api2.ecomailapp.cz/campaigns/{campaign_id}/send","href":"/api-reference/campaigns/send"},{"title":"Send test campaign","api":"POST https://api2.ecomailapp.cz/campaigns/{campaign_id}/send-test","href":"/api-reference/campaigns/send-test"},{"title":"Get campaign stats","api":"GET https://api2.ecomailapp.cz/campaigns/{campaign_id}/stats","href":"/api-reference/campaigns/get-stats"},{"title":"Get campaign stats detail","api":"GET https://api2.ecomailapp.cz/campaigns/{id}/stats-detail","href":"/api-reference/campaigns/get-stats-detail"},{"title":"Get segment stats","api":"GET https://api2.ecomailapp.cz/campaigns/segment/{segmentId}/stats","href":"/api-reference/campaigns/get-segment-stats"},{"title":"Get campaign log","api":"GET https://api2.ecomailapp.cz/campaigns/{campaignId}/log","href":"/api-reference/campaigns/get-log"}]},{"group":"Discount coupons","pages":[{"title":"Import discount coupons","api":"POST https://api2.ecomailapp.cz/coupons/import","href":"/api-reference/coupons/import"},{"title":"Create or overwrite discount coupons","api":"PUT https://api2.ecomailapp.cz/coupons/import","href":"/api-reference/coupons/put-import"},{"title":"Delete discount coupons","api":"DELETE https://api2.ecomailapp.cz/coupons/delete","href":"/api-reference/coupons/delete"},{"title":"List coupon folders","api":"GET https://api2.ecomailapp.cz/coupons/folders","href":"/api-reference/coupons/folders"}]},{"group":"Domains","pages":[{"title":"List all domains","api":"GET https://api2.ecomailapp.cz/domains","href":"/api-reference/domains/list-all"},{"title":"Create a new domain","api":"POST https://api2.ecomailapp.cz/domains","href":"/api-reference/domains/create"},{"title":"Delete a domain","api":"DELETE https://api2.ecomailapp.cz/domains/{domain}","href":"/api-reference/domains/delete"}]},{"group":"Feeds","pages":[{"title":"List all feeds","api":"GET https://api2.ecomailapp.cz/feeds","href":"/api-reference/feeds/list-all"},{"title":"Refresh product feed","api":"GET https://api2.ecomailapp.cz/feeds/{feed_id}/refresh","href":"/api-reference/feeds/refresh-product"},{"title":"Refresh data feed","api":"GET https://api2.ecomailapp.cz/data-feeds/{feed_id}/refresh","href":"/api-reference/feeds/refresh-data"}]},{"group":"Lists","pages":[{"title":"View all lists","api":"GET https://api2.ecomailapp.cz/lists","href":"/api-reference/lists/list-all"},{"title":"Add new list","api":"POST https://api2.ecomailapp.cz/lists","href":"/api-reference/lists/add-new"},{"title":"Show list detail","api":"GET https://api2.ecomailapp.cz/lists/{list_id}","href":"/api-reference/lists/show"},{"title":"Update list","api":"PUT https://api2.ecomailapp.cz/lists/{list_id}","href":"/api-reference/lists/update"},{"title":"Get segments","api":"GET https://api2.ecomailapp.cz/lists/{list_id}/segments","href":"/api-reference/lists/get-segments"},{"title":"Get subscribers","api":"GET https://api2.ecomailapp.cz/lists/{list_id}/subscribers","href":"/api-reference/lists/get-subscribers"},{"title":"Get subscriber from list","api":"GET https://api2.ecomailapp.cz/lists/{list_id}/subscriber/{email}","href":"/api-reference/lists/get-subscriber"},{"title":"Get subscriber by phone","api":"GET https://api2.ecomailapp.cz/lists/{list_id}/subscriber-by-phone/{phone}","href":"/api-reference/lists/get-subscriber-by-phone"},{"title":"Add new subscriber to list","api":"POST https://api2.ecomailapp.cz/lists/{list_id}/subscribe","href":"/api-reference/lists/subscribe"},{"title":"Add bulk subscribers","api":"POST https://api2.ecomailapp.cz/lists/{list_id}/subscribe-bulk","href":"/api-reference/lists/subscribe-bulk"},{"title":"Unsubscribe subscriber from list","api":"DELETE https://api2.ecomailapp.cz/lists/{list_id}/unsubscribe","href":"/api-reference/lists/unsubscribe"},{"title":"Update subscriber","api":"PUT https://api2.ecomailapp.cz/lists/{list_id}/update-subscriber","href":"/api-reference/lists/update-subscriber"},{"title":"Update bulk subscribers","api":"PUT https://api2.ecomailapp.cz/lists/{list_id}/update-subscribers-bulk","description":"Update multiple existing subscribers in a specific list in a single request.","href":"/api-reference/lists/update-subscribers-bulk"}]},{"group":"Push notifications","pages":[{"title":"Register a push click","api":"POST https://api2.ecomailapp.cz/push/click","href":"/api-reference/push/register-click"}]},{"group":"Recommenders","pages":[{"title":"List all recommenders","api":"GET https://api2.ecomailapp.cz/recommenders","description":"Retrieve all Spark recommenders configured for your account.","href":"/api-reference/recommenders/list-all"},{"title":"Create recommender","api":"POST https://api2.ecomailapp.cz/recommenders","href":"/api-reference/recommenders/create"},{"title":"Get recommender","api":"GET https://api2.ecomailapp.cz/recommenders/{recommender_id}","href":"/api-reference/recommenders/show"},{"title":"Update recommender","api":"PUT https://api2.ecomailapp.cz/recommenders/{recommender_id}","href":"/api-reference/recommenders/update"},{"title":"Delete recommender","api":"DELETE https://api2.ecomailapp.cz/recommenders/{recommender_id}","href":"/api-reference/recommenders/delete"}]},{"group":"Search","pages":[{"title":"Find contact","api":"POST https://api2.ecomailapp.cz/search","href":"/api-reference/search/find-contact"}]},{"group":"Smart delivery","pages":[{"title":"List smart delivery rules","api":"GET https://api2.ecomailapp.cz/smart-delivery/rules","href":"/api-reference/smart-delivery/list-all"},{"title":"Create smart delivery rule","api":"POST https://api2.ecomailapp.cz/smart-delivery/rules","href":"/api-reference/smart-delivery/create"},{"title":"Update smart delivery rule","api":"PUT https://api2.ecomailapp.cz/smart-delivery/rules/{id}","href":"/api-reference/smart-delivery/update"},{"title":"Delete smart delivery rule","api":"DELETE https://api2.ecomailapp.cz/smart-delivery/rules/{id}","href":"/api-reference/smart-delivery/delete"}]},{"group":"Subscribers","pages":[{"title":"Get subscriber","api":"GET https://api2.ecomailapp.cz/subscribers/{email}","href":"/api-reference/subscribers/get"},{"title":"Get transactions","api":"GET https://api2.ecomailapp.cz/subscribers/{email}/transactions","href":"/api-reference/subscribers/transactions"},{"title":"Get events for subscriber","api":"GET https://api2.ecomailapp.cz/subscribers/{email}/events","href":"/api-reference/subscribers/events"},{"title":"Get email log","api":"GET https://api2.ecomailapp.cz/subscribers/{email}/email-log","href":"/api-reference/subscribers/email-log"},{"title":"Get automation log","api":"GET https://api2.ecomailapp.cz/subscribers/{email}/automation-log","href":"/api-reference/subscribers/automation-log"},{"title":"Delete subscriber","api":"DELETE https://api2.ecomailapp.cz/subscribers/{email}/delete","href":"/api-reference/subscribers/delete"}]},{"group":"Templates","pages":[{"title":"List all templates","api":"GET https://api2.ecomailapp.cz/templates","href":"/api-reference/templates/list-all"},{"title":"Create a new template","api":"POST https://api2.ecomailapp.cz/templates","href":"/api-reference/templates/create"},{"title":"Get template","api":"GET https://api2.ecomailapp.cz/templates/{template_id}","href":"/api-reference/templates/get"},{"title":"Update template","api":"PUT https://api2.ecomailapp.cz/templates/{template_id}","href":"/api-reference/templates/update"}]},{"group":"Tracker events","pages":[{"title":"Create an event","api":"POST https://api2.ecomailapp.cz/tracker/events","href":"/api-reference/tracker/create-event"},{"title":"Get event by ID","api":"GET https://api2.ecomailapp.cz/tracker/events/{id}","href":"/api-reference/tracker/get-event"}]},{"group":"Transactional emails","pages":[{"title":"Send transactional email","api":"POST https://api2.ecomailapp.cz/transactional/send-message","href":"/api-reference/transactional/send-message"},{"title":"Send transactional template","api":"POST https://api2.ecomailapp.cz/transactional/send-template","href":"/api-reference/transactional/send-template"},{"title":"Transactional email stats","api":"GET https://api2.ecomailapp.cz/transactional/stats","href":"/api-reference/transactional/stats"},{"title":"Double opt-in stats","api":"GET https://api2.ecomailapp.cz/transactional/stats/doi","href":"/api-reference/transactional/doi-stats"}]},{"group":"Transactions","pages":[{"title":"Create a transaction","api":"POST https://api2.ecomailapp.cz/tracker/transaction","href":"/api-reference/transactions/create"},{"title":"Create bulk transactions","api":"POST https://api2.ecomailapp.cz/tracker/transaction-bulk","href":"/api-reference/transactions/create-bulk"},{"title":"Get transactions","api":"GET https://api2.ecomailapp.cz/tracker/transaction","href":"/api-reference/transactions/get"},{"title":"Update a transaction","api":"PUT https://api2.ecomailapp.cz/tracker/transaction/{order_id}","href":"/api-reference/transactions/update"},{"title":"Delete a transaction","api":"DELETE https://api2.ecomailapp.cz/tracker/transaction/{order_id}/delete","href":"/api-reference/transactions/delete"},{"title":"Delete bulk transactions","api":"DELETE https://api2.ecomailapp.cz/tracker/transaction/delete-bulk","href":"/api-reference/transactions/delete-bulk"}]},{"group":"Webhooks","pages":[{"title":"Set webhook URL","api":"POST https://api2.ecomailapp.cz/account/settings/webhook","href":"/api-reference/webhooks/set-url"},{"title":"Get webhook URL","api":"GET https://api2.ecomailapp.cz/account/settings/webhook","href":"/api-reference/webhooks/get-url"},{"title":"Delete webhook URL","api":"DELETE https://api2.ecomailapp.cz/account/settings/webhook","href":"/api-reference/webhooks/delete-url"},{"title":"Webhook events","href":"/api-reference/webhooks/events"}]}]},{"tab":"Template language","pages":[{"title":"Template language","href":"/template-language/links"}]},{"tab":"Ecomail AI","pages":[{"title":"Ecomail AI","href":"/ecomail-ai/overview"}]}]},"basePath":"","title":"Register a push click - Ecomail API","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","Page-D9ithiIZ.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js"]}