An overview of the Benji Platform webhooks, allowing you to receive real-time updates on users, campaigns, and reward transactions.
Overview
The Benji Platform webhooks allow you to receive updates in near real-time on activities in your partnership ecosystem. The following webhook entities are supported:
Users: Updates on a user’s partner connect status and lifecycle on the Benji Platform.
Campaigns: Updates to relevant campaigns and their lifecycle on the Benji Platform.
Transactions: Updates on reward transaction statuses and lifecycle.
Webhook Format
All webhooks contain the following JSON body parameters:
string
required
The name of the event
integer
Integer representing an enum of one of the following entity type values:
Show possible entity type values
USER (1) : Indicating a user entity
CAMPAIGN (2) : Indicating a campaign entity
TRANSACTION (3) : Indicating a reward transaction entity
string
The ID of the entity
Webhook Authentication
In order to optionally authenticate and validate that the webhook was received from the Benji Platform, Benji provides a header value representing a signature that you can then validate.
The signature is essentially the webhook body, signed with the salt provided in the response from the subscribe endpoint, using an HMAC SHA-256 (HS256) algorithm.
To authenticate the webhook, you can go through the following steps:
Store the salt returned in the subscribe API call.
When receiving a webhook:
Extract the timestamp from the x-benji-timestamp header value.
Create the signature input by concatenating: timestamp and body.
Generate a signature using HMAC SHA-256 with your stored salt: HMAC-SHA256(salt, concatenated timestamp and body string).
Extract the provided signature from the x-benji-signature header value.
Compare your signed body and the signature provided, and continue processing the webhook only if the signatures match.
The webhook will also contain a header including the datetime in GMT format of the event. Typically, you can use this field to validate that this webhook is not a replay event.
string
Signature described above
string
String representing the datetime in GMT format of the event
A typical webhook flow requires the following steps:
Subscribe to an event and register your webhook endpoint. The Benji Platform will send any updates to this event to this endpoint using a POST request.
Listen to any webhooks on your registered webhook event endpoint.
Call the Benji Platform API to retrieve additional information on the entity based on the event and the entity_type parameters in the webhook.
Supported events
The following events and their corresponding entity types are supported:
User Events
Show User Events
user_partner_authentication_created : Indicating a user has successfully connected with a partner through the Benji Platform
Typically after receiving a user entity webhook event, you will interact with the get user status endpoint using the entity_id from the webhook to receive additional user data.
Campaign Events
Show Campaign Events
campaign_updated : Indicating a campaign that you are associated with has been updated
campaign_activated : Indicating a campaign you are associated with has been activated (either manually or by reaching its scheduled date)
campaign_ended : Indicating a campaign has ended (either manually or by surpassing its end date)
Typically after receiving a campaign entity webhook event, you will interact with the get campaign endpoint using the entity_id from the webhook to receive additional campaign data.
transaction_status_updated : Indicating a transaction has been updated, typically meaning a status change on the transaction
Typically after receiving a transaction entity webhook event, you will interact with the get reward transaction endpoint using the entity_id from the webhook to receive additional transaction data.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Benji","colors":{"primary":"#9900ff","light":"#07C983","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/benji/E3tFqos-Cc64Y5MH/logo/benji-docs-logo.svg?fit=max\u0026auto=format\u0026n=E3tFqos-Cc64Y5MH\u0026q=85\u0026s=60b7d848ffe4ab0c66efcfcbf573e3be","dark":"https://mintcdn.com/benji/E3tFqos-Cc64Y5MH/logo/benji-docs-logo.svg?fit=max\u0026auto=format\u0026n=E3tFqos-Cc64Y5MH\u0026q=85\u0026s=60b7d848ffe4ab0c66efcfcbf573e3be"},"favicon":"https://mintcdn.com/benji/E3tFqos-Cc64Y5MH/favicon.svg?fit=max\u0026auto=format\u0026n=E3tFqos-Cc64Y5MH\u0026q=85\u0026s=0d4db635c5349274277a1e3f4575d6c3","api":{"mdx":{"auth":{"method":"key","name":"x-api-key"},"server":["https://mintlify.com/api","https://mintlify.com/api2"]}},"appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"mailto:support@withbenji.com","label":"Support"}],"primary":{"type":"button","label":"Go to Pilot","href":"https://pilot-staging.withbenji.com/login"}},"footer":{"socials":{"website":"https://withbenji.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"benji","hasAudioNarration":false,"actualSubdomain":"benji","customDomains":["docs.withbenji.com"],"gitSource":{"type":"github","owner":"benji-money","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6adfb18f141a85a6119e97a5","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Platform","count":13},{"language":"default","tag":"Benji Integrations","count":12},{"language":"default","tag":"Pilot","count":11},{"language":"default","tag":"API Reference","count":9},{"language":"default","tag":"Benji Connect","count":8},{"language":"default","tag":"Partnerships","count":5},{"language":"default","tag":"Benji Connect SDK","count":4},{"language":"default","tag":"Square","count":4},{"language":"default","tag":"Webhooks","count":3},{"language":"default","tag":"Getting Started","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/webhooks/overview","slug":"/api-reference/webhooks/overview","pageMetadata":{"title":"Benji Platform Webhooks Overview","description":"An overview of the Benji Platform webhooks, allowing you to receive real-time updates on users, campaigns, and reward transactions.","sidebarTitle":"Overview","href":"/api-reference/webhooks/overview"},"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: \"An overview of the Benji Platform webhooks, allowing you to receive real-time updates on users, campaigns, and reward transactions.\"\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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`The Benji Platform webhooks allow you to receive updates in near real-time on activities in your partnership ecosystem. The following webhook entities are supported:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Users`}),`: Updates on a user’s partner connect status and lifecycle on the Benji Platform.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Campaigns`}),`: Updates to relevant campaigns and their lifecycle on the Benji Platform.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Transactions`}),`: Updates on reward transaction statuses and lifecycle.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`webhook-format`,children:`Webhook Format`}),`\n`,_jsxs(_components.p,{children:[`All webhooks contain the following JSON body parameters:\n`,_jsx(ParamField,{body:`event`,type:`string`,required:true,children:`The name of the event`})]}),`\n`,_jsxs(ParamField,{body:`entity_type`,type:`integer`,id:`param-entity-type`,children:[_jsx(_components.p,{children:`Integer representing an enum of one of the following entity type values:`}),_jsx(Expandable,{title:`possible entity type values`,type:`enum`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`USER (1)`}),` : Indicating a user entity `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CAMPAIGN (2)`}),` : Indicating a campaign entity `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`TRANSACTION (3)`}),` : Indicating a reward transaction entity`]}),`\n`]})})]}),`\n`,_jsx(ParamField,{body:`entity_id`,type:`string`,id:`param-entity-id`,children:`The ID of the entity`}),`\n`,_jsx(Heading,{level:`3`,id:`webhook-authentication`,children:`Webhook Authentication`}),`\n`,_jsxs(_components.p,{children:[`In order to optionally authenticate and validate that the webhook was received from the Benji Platform, Benji provides a header value representing a signature that you can then validate.\nThe signature is essentially the webhook body, signed with the salt provided in the response from the `,_jsx(_components.a,{href:`/api-reference/webhooks/subscribe`,children:`subscribe endpoint`}),`, using an HMAC SHA-256 (HS256) algorithm.\nTo authenticate the webhook, you can go through the following steps:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Store the salt returned in the subscribe API call.`}),`\n`,_jsxs(_components.li,{children:[`When receiving a webhook:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Extract the timestamp from the x-benji-timestamp header value.`}),`\n`,_jsxs(_components.li,{children:[`Create the signature input by concatenating: `,_jsx(_components.strong,{children:`timestamp`}),` and `,_jsx(_components.strong,{children:`body`}),`.`]}),`\n`,_jsx(_components.li,{children:`Generate a signature using HMAC SHA-256 with your stored salt: HMAC-SHA256(salt, concatenated timestamp and body string).`}),`\n`]}),`\n`]}),`\n`,_jsx(_components.li,{children:`Extract the provided signature from the x-benji-signature header value.`}),`\n`,_jsx(_components.li,{children:`Compare your signed body and the signature provided, and continue processing the webhook only if the signatures match.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The webhook will also contain a header including the datetime in GMT format of the event. Typically, you can use this field to validate that this webhook is not a `,_jsx(_components.strong,{children:`replay`}),` event.`]}),`\n`,_jsx(ParamField,{header:`x-benji-signature`,type:`string`,id:`param-x-benji-signature`,children:`Signature described above`}),`\n`,_jsx(ParamField,{header:`x-benji-timestamp`,type:`string`,id:`param-x-benji-timestamp`,children:`String representing the datetime in GMT format of the event`}),`\n`,_jsx(Heading,{level:`3`,id:`webhook-body-sample`,children:`Webhook body sample`}),`\n`,_jsx(CodeBlock,{filename:``,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:` \"event\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reward_transaction_updated\"`}),_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:` \"entity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_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:` \"entity_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"55af7b67-bf3c-4fbf-81bc-05db9426ca96\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`webhook-flow`,children:`Webhook Flow`}),`\n`,_jsx(_components.p,{children:`A typical webhook flow requires the following steps:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.a,{href:`/api-reference/webhooks/subscribe`,children:`Subscribe to an event`})}),` and register your webhook endpoint. The Benji Platform will send any updates to this event to this endpoint using a `,_jsx(_components.strong,{children:`POST`}),` request.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Listen to any webhooks`}),` on your registered webhook event endpoint.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Call the Benji Platform API`}),` to retrieve additional information on the entity based on the event and the entity_type parameters in the webhook.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`supported-events`,children:`Supported events`}),`\n`,_jsx(_components.p,{children:`The following events and their corresponding entity types are supported:`}),`\n`,_jsx(Heading,{level:`4`,id:`user-events`,children:`User Events`}),`\n`,_jsx(Expandable,{title:`User Events`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`user_partner_authentication_created : Indicating a user has successfully connected with a partner through the Benji Platform`}),`\n`]})}),`\n`,_jsxs(Tip,{children:[`Typically after receiving a user entity webhook event, you will interact with the `,_jsx(_components.a,{href:`/api-reference/endpoint/status/get`,children:`get user status`}),` endpoint using the entity_id from the webhook to receive additional user data.`]}),`\n`,_jsx(Heading,{level:`4`,id:`campaign-events`,children:`Campaign Events`}),`\n`,_jsx(Expandable,{title:`Campaign Events`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`campaign_updated : Indicating a campaign that you are associated with has been updated`}),`\n`,_jsx(_components.li,{children:`campaign_activated : Indicating a campaign you are associated with has been activated (either manually or by reaching its scheduled date)`}),`\n`,_jsx(_components.li,{children:`campaign_ended : Indicating a campaign has ended (either manually or by surpassing its end date)`}),`\n`]})}),`\n`,_jsxs(Tip,{children:[`Typically after receiving a campaign entity webhook event, you will interact with the `,_jsx(_components.a,{href:`/api-reference/endpoint/campaigns/get`,children:`get campaign`}),` endpoint using the entity_id from the webhook to receive additional campaign data.`]}),`\n`,_jsx(Heading,{level:`4`,id:`transaction-events`,children:`Transaction Events`}),`\n`,_jsx(Expandable,{title:`Transaction Events`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`transaction_authenticated : Indicating a `,_jsx(_components.a,{href:`/api-reference/endpoint/transactions/authenticate`,children:`transaction authentication token`}),` has been created`]}),`\n`,_jsxs(_components.li,{children:[`transaction_created : Indicating a `,_jsx(_components.a,{href:`/api-reference/endpoint/transactions/create`,children:`transaction has been created`})]}),`\n`,_jsx(_components.li,{children:`transaction_status_updated : Indicating a transaction has been updated, typically meaning a status change on the transaction`}),`\n`]})}),`\n`,_jsxs(Tip,{children:[`Typically after receiving a transaction entity webhook event, you will interact with the `,_jsx(_components.a,{href:`/api-reference/endpoint/transactions/get`,children:`get reward transaction`}),` endpoint using the entity_id from the webhook to receive additional transaction data.`]})]})}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":"Benji Platform Webhooks Overview","description":"An overview of the Benji Platform webhooks, allowing you to receive real-time updates on users, campaigns, and reward transactions.","sidebarTitle":"Overview","href":"/api-reference/webhooks/overview"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[{"title":"Webhook Format","slug":"webhook-format","depth":3,"children":[]},{"title":"Webhook Authentication","slug":"webhook-authentication","depth":3,"children":[]},{"title":"Webhook body sample","slug":"webhook-body-sample","depth":3,"children":[]},{"title":"Webhook Flow","slug":"webhook-flow","depth":3,"children":[]},{"title":"Supported events","slug":"supported-events","depth":3,"children":[]},{"title":"User Events","slug":"user-events","depth":4,"children":[]},{"title":"Campaign Events","slug":"campaign-events","depth":4,"children":[]},{"title":"Transaction Events","slug":"transaction-events","depth":4,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"benji","siteName":"Benji","title":"Benji Platform Webhooks Overview - Benji","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-26T19:59:09.022Z","originalFileLocation":"api-reference/webhooks/overview.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"An overview of the Benji Platform webhooks, allowing you to receive real-time updates on users, campaigns, and reward transactions.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Benji\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/benji/dbMCKxLdMt2ho1P-/_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/benji/dbMCKxLdMt2ho1P-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/benji/dbMCKxLdMt2ho1P-/_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/benji/dbMCKxLdMt2ho1P-/_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/benji/dbMCKxLdMt2ho1P-/_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/benji/dbMCKxLdMt2ho1P-/_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/benji/dbMCKxLdMt2ho1P-/_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/benji/dbMCKxLdMt2ho1P-/_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/benji/dbMCKxLdMt2ho1P-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Benji Platform Webhooks Overview - Benji\">\u003cmeta data-mint-head property=\"og:description\" content=\"An overview of the Benji Platform webhooks, allowing you to receive real-time updates on users, campaigns, and reward transactions.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Benji\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.withbenji.com/api-reference/webhooks/overview\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://benji.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=Benji+Platform+Webhooks+Overview\u0026amp;description=An+overview+of+the+Benji+Platform+webhooks%2C+allowing+you+to+receive+real-time+updates+on+users%2C+campaigns%2C+and+reward+transactions.\u0026amp;theme=c6069e65afe5566508648c56\u0026amp;signature=e28dff6ed8205a22073ee4f15d0387370da733cfdca450281e46311fd4bb9433\">\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=\"Benji Platform Webhooks Overview - Benji\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"An overview of the Benji Platform webhooks, allowing you to receive real-time updates on users, campaigns, and reward transactions.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://benji.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=Benji+Platform+Webhooks+Overview\u0026amp;description=An+overview+of+the+Benji+Platform+webhooks%2C+allowing+you+to+receive+real-time+updates+on+users%2C+campaigns%2C+and+reward+transactions.\u0026amp;theme=c6069e65afe5566508648c56\u0026amp;signature=e28dff6ed8205a22073ee4f15d0387370da733cfdca450281e46311fd4bb9433\">\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/benji/dbMCKxLdMt2ho1P-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Benji\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9900ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.withbenji.com/api-reference/webhooks/overview\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/webhooks/overview.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.withbenji.com/#organization\",\"name\":\"Benji\",\"url\":\"https://docs.withbenji.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/benji/E3tFqos-Cc64Y5MH/logo/benji-docs-logo.svg?fit=max\u0026auto=format\u0026n=E3tFqos-Cc64Y5MH\u0026q=85\u0026s=60b7d848ffe4ab0c66efcfcbf573e3be\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.withbenji.com#website\",\"name\":\"Benji\",\"url\":\"https://docs.withbenji.com\",\"publisher\":{\"@id\":\"https://docs.withbenji.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.withbenji.com/api-reference/webhooks/overview#webpage\",\"url\":\"https://docs.withbenji.com/api-reference/webhooks/overview\",\"name\":\"Benji Platform Webhooks Overview\",\"description\":\"An overview of the Benji Platform webhooks, allowing you to receive real-time updates on users, campaigns, and reward transactions.\",\"dateModified\":\"2026-10-26T19:59:09.022Z\",\"isPartOf\":{\"@id\":\"https://docs.withbenji.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.withbenji.com/api-reference/webhooks/overview#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.withbenji.com/api-reference/webhooks/overview#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Benji\",\"item\":\"https://docs.withbenji.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Benji Platform Webhooks Overview\",\"item\":\"https://docs.withbenji.com/api-reference/webhooks/overview\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.withbenji.com/api-reference/webhooks/overview#article\",\"headline\":\"Benji Platform Webhooks Overview\",\"name\":\"Benji Platform Webhooks Overview\",\"description\":\"An overview of the Benji Platform webhooks, allowing you to receive real-time updates on users, campaigns, and reward transactions.\",\"url\":\"https://docs.withbenji.com/api-reference/webhooks/overview\",\"mainEntityOfPage\":{\"@id\":\"https://docs.withbenji.com/api-reference/webhooks/overview#webpage\"},\"dateModified\":\"2026-10-26T19:59:09.022Z\",\"publisher\":{\"@id\":\"https://docs.withbenji.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.withbenji.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Benji\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Benji\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/webhooks/overview.md","siteName":"Benji","nav":{"global":null,"tabs":[{"tab":"Platform","pages":[{"title":"Platform","href":"/pilot/overview"}]},{"tab":"Benji Connect","pages":[{"title":"Benji Connect","href":"/connect/overview"}]},{"tab":"Benji Integrations","pages":[{"title":"Benji Integrations","href":"/integrations/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"API Authentication","sidebarTitle":"Authentication","href":"/api-reference/authentication"}]},{"group":"Member API","pages":[{"title":"Get User","sidebarTitle":"Get User","api":"GET https://api-staging.withbenji.com/users/{id}","href":"/api-reference/endpoint/users/get"}]},{"group":"Reward API","pages":[{"title":"Get Reward Transaction","sidebarTitle":"Get Transaction","api":"GET https://api-staging.withbenji.com/transactions/{id}","href":"/api-reference/endpoint/transactions/get"}]},{"group":"Partnerships","pages":[{"title":"Get Partnership","sidebarTitle":"Get Partnership","api":"GET https://api-staging.withbenji.com/partnerships/{id}","href":"/api-reference/endpoint/partnerships/get"},{"title":"Send Trigger Event","description":"Process a trigger event for a partnership to initiate campaign reward evaluation","sidebarTitle":"Send Trigger","api":"POST https://api-staging.withbenji.com/partnerships/{partnership_id}/triggers","href":"/api-reference/endpoint/triggers/send"}]},{"group":"Webhooks","pages":[{"title":"Benji Platform Webhooks Overview","sidebarTitle":"Overview","href":"/api-reference/webhooks/overview"},{"title":"Subscribe to a webhook event","description":"Subscribe to a specific event or all entity events on the Benji Platform","sidebarTitle":"Subscribe","api":"POST https://notificationservice-staging.withbenji.com/webhooks/subscribe","href":"/api-reference/webhooks/subscribe"},{"title":"Update a webhook subscription","sidebarTitle":"Update","api":"PUT https://notificationservice-staging.withbenji.com/webhooks/subscribe","href":"/api-reference/webhooks/update"}]}]}]},"basePath":"","title":"Benji Platform Webhooks Overview - Benji","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}