{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Thnks Documentation","description":"Provide helpful documentation around Thnks integrations.","colors":{"primary":"#00B8C7","light":"#00B8C7","dark":"#00B8C7"},"logo":{"light":"https://mintcdn.com/thnks-fb02c1f6/XpzhRilTD05GRz7p/logo/THNKS_PrimaryLogo_Navy.svg?fit=max\u0026auto=format\u0026n=XpzhRilTD05GRz7p\u0026q=85\u0026s=be3e33e60e4cc3522373d63386e7f106","dark":"https://mintcdn.com/thnks-fb02c1f6/XpzhRilTD05GRz7p/logo/THNKS_PrimaryLogo_Teal.svg?fit=max\u0026auto=format\u0026n=XpzhRilTD05GRz7p\u0026q=85\u0026s=0436a69b4f846c8aa6a2b590807c2a38"},"favicon":"https://mintcdn.com/thnks-fb02c1f6/XpzhRilTD05GRz7p/logo/thnks_favicon.png?fit=max\u0026auto=format\u0026n=XpzhRilTD05GRz7p\u0026q=85\u0026s=972a24711945d20945b41dd5a7febe4a","api":{"mdx":{"auth":{"method":"key","name":"Authorization"},"server":"https://api.thnks.com/api/v1"}},"navbar":{"links":[{"href":"mailto:support@thnks.com","label":"Support"}],"primary":{"type":"button","label":"Get Started","href":"https://thnks.com/platform/plans"}},"footer":{"socials":{"x":"https://twitter.com/alwayssaythnks","linkedin":"https://www.linkedin.com/company/thnks"}},"seo":{"metatags":{"google-site-verification":"su8vTodsK4IYxDXNbapbLpO5wJNrqns6hJEPc6r1rbI"},"indexing":"navigable"},"integrations":{"ga4":{"measurementId":"G-J1MSJZ54JW"},"intercom":{"appId":"iwfxzmxt"},"posthog":{"apiKey":"phc_Kql3s3L53OL8e5vad6g7Q5M2Pu6yDvuuXf3pbkW7qTq"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"thnks-fb02c1f6","hasAudioNarration":false,"actualSubdomain":"thnks-fb02c1f6","customDomains":["docs.thnks.com"],"gitSource":{"type":"github","owner":"jacobtbatt","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aff539476e1397cafb1a27f","clientVersion":"0.0.4248","searchFilterCounts":[{"language":"default","tag":"Documentation","count":21},{"language":"default","tag":"Salesforce AppExchange","count":8},{"language":"default","tag":"Start An Integration","count":8},{"language":"default","tag":"API Reference","count":4},{"language":"default","tag":"Thnks Endpoints","count":3},{"language":"default","tag":"Get Started","count":2},{"language":"default","tag":"API Documentation","count":1},{"language":"default","tag":"Browser Extension","count":1},{"language":"default","tag":"SAP Concur","count":1},{"language":"default","tag":"Single Sign On (SSO)","count":1}]},"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":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoint/create_redemption_url","slug":"/api-reference/endpoint/create_redemption_url","pageMetadata":{"title":"Create a Thnks Redemption URL via Webhook","api":"POST /webhooks/gift_requests","description":null,"href":"/api-reference/endpoint/create_redemption_url"},"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`,p:`p`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Use this Thnks webhook to automatically generate a unique Thnks Redemption URL for embedding in non-Thnks managed campaigns.`}),`\n`,_jsx(ParamField,{header:`Content-Type`,default:`application/json`,type:`string`,id:`param-content-type`,children:_jsxs(_components.p,{children:[`This should always be `,_jsx(_components.code,{children:`application/json`})]})}),`\n`,_jsx(ParamField,{body:`gift_id`,type:`integer`,required:`true`,id:`param-gift-id`,children:_jsx(_components.p,{children:`Variable containing Thnks id of the item(s) the Customer wants to send`})}),`\n`,_jsx(ParamField,{body:`utm_campaign_id`,type:`string`,id:`param-utm-campaign-id`,children:_jsx(_components.p,{children:`Optional campaign identifier for tracking attribution in non-Thnks managed campaigns`})}),`\n`,_jsx(ParamField,{body:`recipients`,type:`array`,id:`param-recipients`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`email`,type:`string`,required:`true`,id:`param-email`,children:_jsx(_components.p,{children:`Variable containing email address of the recipient`})}),_jsx(ParamField,{body:`first_name`,type:`string`,id:`param-first-name`,children:_jsx(_components.p,{children:`Variable containing first name of the recipient (optional)`})}),_jsx(ParamField,{body:`last_name`,type:`string`,id:`param-last-name`,children:_jsx(_components.p,{children:`Variable containing last name of the recipient (optional)`})}),_jsx(ParamField,{body:`message`,type:`string`,required:`true`,id:`param-message`,children:_jsxs(_components.p,{children:[`Variable containing the Thnks message. Use `,_jsx(_components.code,{children:`\"Hello,\\\\nThank you\"`}),` instead of `,_jsx(_components.code,{children:`\"Hello, Thank You\"`}),` for a multiline Thnks`]})})]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`On success, the API returns a `,_jsx(_components.code,{children:`200`}),` response with the following JSON body.`]}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message-1`,children:_jsxs(_components.p,{children:[`Success message. Returns `,_jsx(_components.code,{children:`\"GiftRequest created successfully.\"`}),` when the gift request is created.`]})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`id`,type:`integer`,id:`param-id`,children:_jsx(_components.p,{children:`The unique ID of the created gift request`})}),_jsx(ResponseField,{name:`recipients`,type:`array`,id:`param-recipients-1`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`recipient_transaction_id`,type:`integer`,id:`param-recipient-transaction-id`,children:_jsx(_components.p,{children:`The unique ID of the recipient transaction`})}),_jsx(ResponseField,{name:`email`,type:`string`,id:`param-email-1`,children:_jsx(_components.p,{children:`Email address of the recipient`})}),_jsx(ResponseField,{name:`phone_number`,type:`string`,id:`param-phone-number`,children:_jsx(_components.p,{children:`Phone number of the recipient. Returns an empty string when not provided.`})}),_jsx(ResponseField,{name:`gift_redemption_url`,type:`string`,id:`param-gift-redemption-url`,children:_jsx(_components.p,{children:`Unique Thnks Redemption URL for the recipient to accept the Thnks`})}),_jsx(ResponseField,{name:`gift_donation_url`,type:`string`,id:`param-gift-donation-url`,children:_jsx(_components.p,{children:`URL for the recipient to donate the gift value to charity instead of redeeming it`})})]})})]})})]})}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":"Create a Thnks Redemption URL via Webhook","api":"POST /webhooks/gift_requests","description":null,"href":"/api-reference/endpoint/create_redemption_url"}}},"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`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Use this Thnks webhook to automatically generate a unique Thnks Redemption URL for embedding in non-Thnks managed campaigns.`}),`\n`,_jsx(ParamField,{header:`Content-Type`,default:`application/json`,type:`string`,id:`param-content-type`,children:_jsxs(_components.p,{children:[`This should always be `,_jsx(_components.code,{children:`application/json`})]})}),`\n`,_jsx(ParamField,{body:`gift_id`,type:`integer`,required:`true`,id:`param-gift-id`,children:_jsx(_components.p,{children:`Variable containing Thnks id of the item(s) the Customer wants to send`})}),`\n`,_jsx(ParamField,{body:`utm_campaign_id`,type:`string`,id:`param-utm-campaign-id`,children:_jsx(_components.p,{children:`Optional campaign identifier for tracking attribution in non-Thnks managed campaigns`})}),`\n`,_jsx(ParamField,{body:`recipients`,type:`array`,id:`param-recipients`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`email`,type:`string`,required:`true`,id:`param-email`,children:_jsx(_components.p,{children:`Variable containing email address of the recipient`})}),_jsx(ParamField,{body:`first_name`,type:`string`,id:`param-first-name`,children:_jsx(_components.p,{children:`Variable containing first name of the recipient (optional)`})}),_jsx(ParamField,{body:`last_name`,type:`string`,id:`param-last-name`,children:_jsx(_components.p,{children:`Variable containing last name of the recipient (optional)`})}),_jsx(ParamField,{body:`message`,type:`string`,required:`true`,id:`param-message`,children:_jsxs(_components.p,{children:[`Variable containing the Thnks message. Use `,_jsx(_components.code,{children:`\"Hello,\\\\nThank you\"`}),` instead of `,_jsx(_components.code,{children:`\"Hello, Thank You\"`}),` for a multiline Thnks`]})})]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`On success, the API returns a `,_jsx(_components.code,{children:`200`}),` response with the following JSON body.`]}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message-1`,children:_jsxs(_components.p,{children:[`Success message. Returns `,_jsx(_components.code,{children:`\"GiftRequest created successfully.\"`}),` when the gift request is created.`]})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`id`,type:`integer`,id:`param-id`,children:_jsx(_components.p,{children:`The unique ID of the created gift request`})}),_jsx(ResponseField,{name:`recipients`,type:`array`,id:`param-recipients-1`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`recipient_transaction_id`,type:`integer`,id:`param-recipient-transaction-id`,children:_jsx(_components.p,{children:`The unique ID of the recipient transaction`})}),_jsx(ResponseField,{name:`email`,type:`string`,id:`param-email-1`,children:_jsx(_components.p,{children:`Email address of the recipient`})}),_jsx(ResponseField,{name:`phone_number`,type:`string`,id:`param-phone-number`,children:_jsx(_components.p,{children:`Phone number of the recipient. Returns an empty string when not provided.`})}),_jsx(ResponseField,{name:`gift_redemption_url`,type:`string`,id:`param-gift-redemption-url`,children:_jsx(_components.p,{children:`Unique Thnks Redemption URL for the recipient to accept the Thnks`})}),_jsx(ResponseField,{name:`gift_donation_url`,type:`string`,id:`param-gift-donation-url`,children:_jsx(_components.p,{children:`URL for the recipient to donate the gift value to charity instead of redeeming it`})})]})})]})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`15`,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:`15`,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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"GiftRequest created successfully.\"`}),_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:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`123`}),_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:` \"recipients\"`}),_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"recipient_transaction_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`456`}),_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:` \"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"some@test.com\"`}),_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:` \"phone_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:` \"gift_redemption_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://...\"`}),_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:` \"gift_donation_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://...\"`})]}),`\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(_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":"Create a Thnks Redemption URL via Webhook","api":"POST /webhooks/gift_requests","description":null,"href":"/api-reference/endpoint/create_redemption_url"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"Response","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=\"15\">\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\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"GiftRequest created successfully.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">123\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"recipients\"\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:#116329;--shiki-dark:#9CDCFE\"> \"recipient_transaction_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">456\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"email\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"some@test.com\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"phone_number\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"gift_redemption_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"gift_donation_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://...\"\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:#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":"Create a Thnks Redemption URL via Webhook","path":"/webhooks/gift_requests","servers":[{"url":"https://api.thnks.com/api/v1"}],"method":"post","request":{"security":[{"title":"API Key Auth","parameters":{"header":{"Authorization":{"type":"apiKey"}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{"Content-Type":{"schema":[{"type":"string","description":"This should always be `application/json`"}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"gift_id":[{"type":"integer","description":"Variable containing Thnks id of the item(s) the Customer wants to send"}],"utm_campaign_id":[{"type":"string","description":"Optional campaign identifier for tracking attribution in non-Thnks managed campaigns"}],"recipients":[{"type":"array","items":[{"type":"object","properties":{"email":[{"type":"string","description":"Variable containing email address of the recipient"}],"first_name":[{"type":"string","description":"Variable containing first name of the recipient (optional)"}],"last_name":[{"type":"string","description":"Variable containing last name of the recipient (optional)"}],"message":[{"type":"string","description":"Variable containing the Thnks message. Use `\"Hello,\\nThank you\"` instead of `\"Hello, Thank You\"` for a multiline Thnks"}]}}]}]}}],"examples":{"example":{"value":{"gift_id":123,"utm_campaign_id":"\u003cstring>","recipients":[{"email":"\u003cstring>","first_name":"\u003cstring>","last_name":"\u003cstring>","message":"\u003cstring>"}]}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"message":[{"type":"string","description":"Success message. Returns `\"GiftRequest created successfully.\"` when the gift request is created."}],"data":[{"type":"object","properties":{"id":[{"type":"integer","description":"The unique ID of the created gift request"}],"recipients":[{"type":"array","items":[{"type":"object","properties":{"recipient_transaction_id":[{"type":"integer","description":"The unique ID of the recipient transaction"}],"email":[{"type":"string","description":"Email address of the recipient"}],"phone_number":[{"type":"string","description":"Phone number of the recipient. Returns an empty string when not provided."}],"gift_redemption_url":[{"type":"string","description":"Unique Thnks Redemption URL for the recipient to accept the Thnks"}],"gift_donation_url":[{"type":"string","description":"URL for the recipient to donate the gift value to charity instead of redeeming it"}]}}]}]}}]}}],"examples":{"example":{"value":{"message":"\u003cstring>","data":{"id":123,"recipients":[{"recipient_transaction_id":123,"email":"\u003cstring>","phone_number":"\u003cstring>","gift_redemption_url":"\u003cstring>","gift_donation_url":"\u003cstring>"}]}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"thnks-fb02c1f6","siteName":"Thnks Documentation","title":"Create a Thnks Redemption URL via Webhook - Thnks Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T19:36:09.689Z","originalFileLocation":"api-reference/endpoint/create_redemption_url.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=\"application-name\" content=\"Thnks Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/thnks-fb02c1f6/zJlWQmsVzNC8MzBP/_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/thnks-fb02c1f6/zJlWQmsVzNC8MzBP/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/thnks-fb02c1f6/zJlWQmsVzNC8MzBP/_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/thnks-fb02c1f6/zJlWQmsVzNC8MzBP/_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/thnks-fb02c1f6/zJlWQmsVzNC8MzBP/_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/thnks-fb02c1f6/zJlWQmsVzNC8MzBP/_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/thnks-fb02c1f6/zJlWQmsVzNC8MzBP/_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/thnks-fb02c1f6/zJlWQmsVzNC8MzBP/_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/thnks-fb02c1f6/zJlWQmsVzNC8MzBP/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a Thnks Redemption URL via Webhook - Thnks Documentation\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Thnks Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.thnks.com/api-reference/endpoint/create_redemption_url\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://thnks-fb02c1f6.mintlify.site/_mintlify/api/og/v2?division=Thnks+Endpoints\u0026amp;title=Create+a+Thnks+Redemption+URL+via+Webhook\u0026amp;theme=f2cbf77113731dab5262af09\u0026amp;signature=1fc7d710e3e122a99bd598c9fad5b3581edcb84eba48a9f998622379e9519752\">\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=\"Create a Thnks Redemption URL via Webhook - Thnks Documentation\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://thnks-fb02c1f6.mintlify.site/_mintlify/api/og/v2?division=Thnks+Endpoints\u0026amp;title=Create+a+Thnks+Redemption+URL+via+Webhook\u0026amp;theme=f2cbf77113731dab5262af09\u0026amp;signature=1fc7d710e3e122a99bd598c9fad5b3581edcb84eba48a9f998622379e9519752\">\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/thnks-fb02c1f6/zJlWQmsVzNC8MzBP/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Thnks Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00B8C7\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"su8vTodsK4IYxDXNbapbLpO5wJNrqns6hJEPc6r1rbI\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.thnks.com/api-reference/endpoint/create_redemption_url\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/create_redemption_url.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.thnks.com/#organization\",\"name\":\"Thnks Documentation\",\"url\":\"https://docs.thnks.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/thnks-fb02c1f6/XpzhRilTD05GRz7p/logo/THNKS_PrimaryLogo_Navy.svg?fit=max\u0026auto=format\u0026n=XpzhRilTD05GRz7p\u0026q=85\u0026s=be3e33e60e4cc3522373d63386e7f106\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.thnks.com#website\",\"name\":\"Thnks Documentation\",\"url\":\"https://docs.thnks.com\",\"publisher\":{\"@id\":\"https://docs.thnks.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.thnks.com/api-reference/endpoint/create_redemption_url#webpage\",\"url\":\"https://docs.thnks.com/api-reference/endpoint/create_redemption_url\",\"name\":\"Create a Thnks Redemption URL via Webhook\",\"dateModified\":\"2026-11-04T19:36:09.689Z\",\"isPartOf\":{\"@id\":\"https://docs.thnks.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.thnks.com/api-reference/endpoint/create_redemption_url#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.thnks.com/api-reference/endpoint/create_redemption_url#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Thnks Endpoints\",\"item\":\"https://docs.thnks.com/api-reference/endpoint/create_gift_request\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a Thnks Redemption URL via Webhook\",\"item\":\"https://docs.thnks.com/api-reference/endpoint/create_redemption_url\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.thnks.com/api-reference/endpoint/create_redemption_url#apireference\",\"headline\":\"Create a Thnks Redemption URL via Webhook\",\"name\":\"Create a Thnks Redemption URL via Webhook\",\"url\":\"https://docs.thnks.com/api-reference/endpoint/create_redemption_url\",\"mainEntityOfPage\":{\"@id\":\"https://docs.thnks.com/api-reference/endpoint/create_redemption_url#webpage\"},\"dateModified\":\"2026-11-04T19:36:09.689Z\",\"publisher\":{\"@id\":\"https://docs.thnks.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.thnks.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Thnks Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Thnks Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/create_redemption_url.md","siteName":"Thnks Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"}]},{"group":"Thnks Endpoints","pages":[{"title":"Send a Thnks via Webhook","api":"POST https://api.thnks.com/api/v1/gift_requests","description":null,"href":"/api-reference/endpoint/create_gift_request"},{"title":"Create a Thnks Redemption URL via Webhook","api":"POST /webhooks/gift_requests","href":"/api-reference/endpoint/create_redemption_url"},{"title":"Status Webhooks","description":null,"href":"/status-webhooks"}]}]}]},"basePath":"","title":"Create a Thnks Redemption URL via Webhook - Thnks Documentation","deploymentId":"dpl_2pTxFtyBudBMYZiCw1MyvoA1wxpd","buildId":"dpl_2pTxFtyBudBMYZiCw1MyvoA1wxpd","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BtG4DSkw.js","snippetPresets-C1k1xDhp.js","utils-PMJoEt4Y.js","style-to-object-BY3JEAdk.js","utils-DW3Pr7Jq.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DIISLO2w.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BErNCZCm.js","_Uint8Array-f0PCu9f_.js","isObject-FP1Yky1u.js","ApiExamples-OjY-8mqu.js","usePlaygroundInputsStore-B2HS2hUb.js","shallow-DVFuuIDQ.js","isEqual-DG0UKiQC.js","CodeSnippets-Cy6FBgwN.js","CodeSnippet-D1PtG8ed.js","getApiPlaygroundDisplay-Dkx2eNtL.js","Page-C8Cg25if.js","DynamicMarkdown-BvJIe00T.js","SectionHeading-B0rKYV8d.js","icon-yclzBff4.js","MethodPill-DxA11cCF.js","getPastedJson-CpkIDpMk.js","DuplicateIcon-CFCQNJ-D.js","axios-CsQoIw0U.js"]}