Register a new webhook endpoint. Optionally configure how FlowIQ authenticates to your server (auth_type + auth_config), extra static headers, and a signing secret. Use platform=instagram or messenger for those channels, subscriptions for subscription events and tickets for ticket events.
Event type: message_received, message_sent, sent_message, message_delivered, message_read, message_failed, call, or all. For platform: "subscriptions", a subscription event or all; for platform: "tickets", a ticket event or all
Use platform: "subscriptions" to receive subscription events (created, renewed, paused, cancelled, changed, payment failed). See Subscription Webhooks for the events and payload.
Use platform: "tickets" to receive ticket events (raised, changed, assigned, resolved, reopened, deleted). See Ticket Events for the events and payload.
Instagram supports message_received, sent_message, message_sent, message_delivered, message_read, message_failed and all. Receipt events fire only when the state is recorded. call is WhatsApp-only. See Instagram Events for payloads.
Messenger
Use platform: "messenger" to receive Facebook Messenger events. Registration, authentication and signatures work the same as WhatsApp.
Messenger supports message_received, sent_message, message_sent, message_delivered, message_read, message_failed and all. Receipt events fire only when the state is recorded. call is WhatsApp-only. See Messenger Events for payloads.Web chat (platform: "web") supports message_received, sent_message and all; web chat has no receipts or calls. See Web Events for payloads.
Authentication
By default deliveries are sent with no credentials. Set auth_type and auth_config to have FlowIQ authenticate to your server on every delivery.
auth_type
Required auth_config fields
Optional fields
What FlowIQ sends
bearer
token
Authorization: Bearer <token>
basic
username, password
Authorization: Basic <base64(username:password)>
api_key
value
header_name (default X-API-Key)
<header_name>: <value>
oauth2_client_credentials
token_url, client_id, client_secret
scope, audience, client_auth
Authorization: Bearer <access_token> from your token endpoint
OAuth2 client credentials. FlowIQ requests a token from token_url with grant_type=client_credentials (plus scope / audience if set), sending the client credentials as HTTP Basic auth. Set client_auth to "body" if your server expects client_id and client_secret in the form body instead. Tokens are cached and refreshed shortly before expires_in runs out.
If FlowIQ can’t build the configured authentication (for example your token endpoint is down or rejects the credentials), that delivery is skipped. It is never sent without the credentials you configured.
Returned when auth_type is unknown or its required auth_config fields are missing:
{ "error": "Invalid auth configuration", "message": "auth_config.token is required for auth_type 'bearer'"}
Use type: "all" to receive every event type through a single webhook subscription.
Webhooks can’t be edited through the API. To change one, delete it and create it again, or edit it in the FlowIQ dashboard.
Authorizations
Authorization
string
header
required
Your FlowIQ API key (from Settings → Profile → API Keys), sent as a bearer token. Format: Bearer fiq_YOUR_API_KEY
Body
application/json
url
string
required
HTTPS endpoint to receive events
Example:
"https://your-server.com/webhook"
type
enum<string>
required
Event type to subscribe to. call is WhatsApp-only; Instagram receipt events fire only when that state is recorded. With platform subscriptions, a subscription event; with platform tickets, a ticket event (see Ticket Events).
Available options:
message_received,
message_sent,
sent_message,
message_delivered,
message_read,
message_failed,
call,
ticket.created,
ticket.updated,
ticket.status_changed,
ticket.assigned,
ticket.resolved,
ticket.reopened,
ticket.deleted,
all
Example:
"message_received"
platform
enum<string>
default:whatsapp
whatsapp (default), web, instagram, messenger, subscriptions, tickets or flows.
Available options:
whatsapp,
web,
instagram,
messenger,
subscriptions,
tickets,
flows
Example:
"whatsapp"
auth_type
enum<string>
default:none
How FlowIQ authenticates to your server on every delivery
Signing secret. When set, each delivery carries X-Flowiq-Signature: sha256=<hex HMAC-SHA256 of the raw body>.
Response
Webhook created successfully. Credentials and the signing secret are never returned.
success
boolean
message
string
webhook
object
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"FlowIQ API Documentation","colors":{"primary":"#C4520F","light":"#F36E21","dark":"#C4520F"},"logo":{"light":"https://mintcdn.com/flowapt/QUdYGUKLfZc69ji2/light-top-left.png?fit=max\u0026auto=format\u0026n=QUdYGUKLfZc69ji2\u0026q=85\u0026s=15f1f6f316bbdf2d7518f3a9d2332758","dark":"https://mintcdn.com/flowapt/QUdYGUKLfZc69ji2/dark-top-left.png?fit=max\u0026auto=format\u0026n=QUdYGUKLfZc69ji2\u0026q=85\u0026s=67fbd1065c93902594f3149a6f454259"},"favicon":"https://mintcdn.com/flowapt/YLAUShXn-JEVOqCc/favicon.png?fit=max\u0026auto=format\u0026n=YLAUShXn-JEVOqCc\u0026q=85\u0026s=16459ff4684135640c651a7182c643a7","api":{"openapi":["flowiq-api-reference/openapi.json","flowiq-api-reference/openapi-send-text.json","flowiq-api-reference/openapi-send-image.json","flowiq-api-reference/openapi-send-video.json","flowiq-api-reference/openapi-send-audio.json","flowiq-api-reference/openapi-send-document.json","flowiq-api-reference/openapi-send-location.json","flowiq-api-reference/openapi-send-contacts.json","flowiq-api-reference/openapi-send-interactive-buttons.json","flowiq-api-reference/openapi-send-interactive-list.json","flowiq-api-reference/openapi-send-reaction.json","flowiq-api-reference/openapi-send-typing.json","flowiq-api-reference/openapi-send-read.json","flowiq-api-reference/openapi-send-template.json","flowiq-api-reference/openapi-broadcast-analytics.json","flowiq-api-reference/openapi-instagram.json","flowiq-api-reference/openapi-instagram-send-text.json","flowiq-api-reference/openapi-instagram-send-image.json","flowiq-api-reference/openapi-instagram-send-video.json","flowiq-api-reference/openapi-instagram-send-audio.json","flowiq-api-reference/openapi-messenger.json","flowiq-api-reference/openapi-messenger-send-text.json","flowiq-api-reference/openapi-messenger-send-image.json","flowiq-api-reference/openapi-messenger-send-video.json","flowiq-api-reference/openapi-messenger-send-audio.json","flowiq-api-reference/openapi-messenger-send-file.json"]},"navbar":{"links":[{"href":"mailto:dev@flowapt.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.flowiq.live"}},"footer":{"socials":{"x":"https://x.com/byflowapt","linkedin":"https://linkedin.com/company/flowapt"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"square-terminal","href":"https://app.flowiq.live"},{"anchor":"Support","icon":"envelope","href":"mailto:dev@flowapt.com"},{"anchor":"Flowapt","icon":"globe","href":"https://flowapt.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"flowapt","hasAudioNarration":false,"actualSubdomain":"flowapt","customDomains":["docs.flowapt.com"],"gitSource":{"type":"github","owner":"mattflowapt","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10b8609ffae5051c4019ac"},"entitlements":{},"buildId":"6b1123a4e71f374a14b7e645","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"Send Messages","count":21},{"language":"default","tag":"WhatsApp","count":17},{"language":"default","tag":"Calling","count":12},{"language":"default","tag":"Flows","count":12},{"language":"default","tag":"Subscriptions","count":7},{"language":"default","tag":"Webhooks","count":7},{"language":"default","tag":"Messenger","count":7},{"language":"default","tag":"Manage flows","count":6},{"language":"default","tag":"Instagram","count":6},{"language":"default","tag":"Answer and end","count":4}]},"assistantConfig":{},"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"flowiq-api-reference/endpoint/create-webhook","slug":"/flowiq-api-reference/endpoint/create-webhook","pageMetadata":{"title":"Create Webhook","openapi":"POST /set-webhooks","description":"Register a new webhook endpoint. Optionally configure how FlowIQ authenticates to your server (`auth_type` + `auth_config`), extra static `headers`, and a signing `secret`. Use platform=instagram or messenger for those channels, subscriptions for subscription events and tickets for ticket events.","href":"/flowiq-api-reference/endpoint/create-webhook"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Register a new webhook endpoint. Optionally configure how FlowIQ authenticates to your server (\", _jsx(_components.code, {\n children: \"auth_type\"\n }), \" + \", _jsx(_components.code, {\n children: \"auth_config\"\n }), \"), extra static \", _jsx(_components.code, {\n children: \"headers\"\n }), \", and a signing \", _jsx(_components.code, {\n children: \"secret\"\n }), \". Use platform=instagram or messenger for those channels, subscriptions for subscription events and tickets for ticket events.\"]\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`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Note,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`basic-usage`,children:`Basic Usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,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://api.flowiq.live/set-webhooks\"`}),_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:` \"Authorization: Bearer fiq_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:` '{\"url\": \"https://your-server.com/webhook\", \"type\": \"message_received\"}'`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`url`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`HTTPS endpoint to receive events`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`Event type: `,_jsx(_components.code,{children:`message_received`}),`, `,_jsx(_components.code,{children:`message_sent`}),`, `,_jsx(_components.code,{children:`sent_message`}),`, `,_jsx(_components.code,{children:`message_delivered`}),`, `,_jsx(_components.code,{children:`message_read`}),`, `,_jsx(_components.code,{children:`message_failed`}),`, `,_jsx(_components.code,{children:`call`}),`, or `,_jsx(_components.code,{children:`all`}),`. For `,_jsx(_components.code,{children:`platform: \"subscriptions\"`}),`, a `,_jsx(_components.a,{href:`/flowiq-api-reference/subscription-webhooks#events`,children:`subscription event`}),` or `,_jsx(_components.code,{children:`all`}),`; for `,_jsx(_components.code,{children:`platform: \"tickets\"`}),`, a `,_jsx(_components.a,{href:`/flowiq-api-reference/ticket-webhooks#events`,children:`ticket event`}),` or `,_jsx(_components.code,{children:`all`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`platform`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`whatsapp`}),` (default), `,_jsx(_components.code,{children:`web`}),`, `,_jsx(_components.code,{children:`instagram`}),`, `,_jsx(_components.code,{children:`messenger`}),`, `,_jsx(_components.code,{children:`subscriptions`}),` or `,_jsx(_components.code,{children:`tickets`}),`. See `,_jsx(_components.a,{href:`/flowiq-api-reference/webhooks`,children:`Events`}),`, `,_jsx(_components.a,{href:`/flowiq-api-reference/subscription-webhooks`,children:`Subscription Webhooks`}),` and `,_jsx(_components.a,{href:`/flowiq-api-reference/ticket-webhooks`,children:`Ticket Events`}),` for what each platform fires`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`auth_type`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`How FlowIQ authenticates to your server: `,_jsx(_components.code,{children:`none`}),` (default), `,_jsx(_components.code,{children:`bearer`}),`, `,_jsx(_components.code,{children:`basic`}),`, `,_jsx(_components.code,{children:`api_key`}),`, or `,_jsx(_components.code,{children:`oauth2_client_credentials`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`auth_config`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Credentials for the chosen `,_jsx(_components.code,{children:`auth_type`}),` (see below). Required unless `,_jsx(_components.code,{children:`auth_type`}),` is `,_jsx(_components.code,{children:`none`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`headers`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Object of extra static headers sent with every delivery, e.g. `,_jsx(_components.code,{children:`{\"X-Tenant\": \"shop-1\"}`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`secret`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Signing secret. When set, every delivery carries an `,_jsx(_components.code,{children:`X-Flowiq-Signature`}),` header you can verify (`,_jsx(_components.a,{href:`/flowiq-api-reference/webhooks#verifying-signatures`,children:`how`}),`)`]})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://your-server.com/webhook\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message_received\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`subscriptions`,children:`Subscriptions`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`platform: \"subscriptions\"`}),` to receive subscription events (created, renewed, paused, cancelled, changed, payment failed). See `,_jsx(_components.a,{href:`/flowiq-api-reference/subscription-webhooks`,children:`Subscription Webhooks`}),` for the events and payload.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://your-server.com/flowiq/subscriptions\"`}),_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:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscriptions\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"all\"`}),_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:` \"secret\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a-long-random-string\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`tickets`,children:`Tickets`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`platform: \"tickets\"`}),` to receive ticket events (raised, changed, assigned, resolved, reopened, deleted). See `,_jsx(_components.a,{href:`/flowiq-api-reference/ticket-webhooks`,children:`Ticket Events`}),` for the events and payload.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://your-server.com/flowiq/tickets\"`}),_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:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tickets\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ticket.created\"`}),_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:` \"secret\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a-long-random-string\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`instagram`,children:`Instagram`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`platform: \"instagram\"`}),` to receive Instagram events. Registration, authentication and signatures work the same as WhatsApp.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,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:`9`,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://api.flowiq.live/set-webhooks\"`}),_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:` \"Authorization: Bearer fiq_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:` \"url\": \"https://your-server.com/webhooks/instagram\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"platform\": \"instagram\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"all\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"secret\": \"a-long-random-string\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Instagram supports `,_jsx(_components.code,{children:`message_received`}),`, `,_jsx(_components.code,{children:`sent_message`}),`, `,_jsx(_components.code,{children:`message_sent`}),`, `,_jsx(_components.code,{children:`message_delivered`}),`, `,_jsx(_components.code,{children:`message_read`}),`, `,_jsx(_components.code,{children:`message_failed`}),` and `,_jsx(_components.code,{children:`all`}),`. Receipt events fire only when the state is recorded. `,_jsx(_components.code,{children:`call`}),` is WhatsApp-only. See `,_jsx(_components.a,{href:`/flowiq-api-reference/webhooks#instagram-events`,children:`Instagram Events`}),` for payloads.`]}),`\n`,_jsx(Heading,{level:`2`,id:`messenger`,children:`Messenger`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`platform: \"messenger\"`}),` to receive Facebook Messenger events. Registration, authentication and signatures work the same as WhatsApp.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,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:`9`,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://api.flowiq.live/set-webhooks\"`}),_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:` \"Authorization: Bearer fiq_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:` \"url\": \"https://your-server.com/webhooks/messenger\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"platform\": \"messenger\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"all\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"secret\": \"a-long-random-string\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Messenger supports `,_jsx(_components.code,{children:`message_received`}),`, `,_jsx(_components.code,{children:`sent_message`}),`, `,_jsx(_components.code,{children:`message_sent`}),`, `,_jsx(_components.code,{children:`message_delivered`}),`, `,_jsx(_components.code,{children:`message_read`}),`, `,_jsx(_components.code,{children:`message_failed`}),` and `,_jsx(_components.code,{children:`all`}),`. Receipt events fire only when the state is recorded. `,_jsx(_components.code,{children:`call`}),` is WhatsApp-only. See `,_jsx(_components.a,{href:`/flowiq-api-reference/webhooks#messenger-events`,children:`Messenger Events`}),` for payloads.`]}),`\n`,_jsxs(_components.p,{children:[`Web chat (`,_jsx(_components.code,{children:`platform: \"web\"`}),`) supports `,_jsx(_components.code,{children:`message_received`}),`, `,_jsx(_components.code,{children:`sent_message`}),` and `,_jsx(_components.code,{children:`all`}),`; web chat has no receipts or calls. See `,_jsx(_components.a,{href:`/flowiq-api-reference/webhooks#web-events`,children:`Web Events`}),` for payloads.`]}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`By default deliveries are sent with no credentials. Set `,_jsx(_components.code,{children:`auth_type`}),` and `,_jsx(_components.code,{children:`auth_config`}),` to have FlowIQ authenticate to your server on every delivery.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`auth_type`})}),_jsxs(_components.th,{children:[`Required `,_jsx(_components.code,{children:`auth_config`}),` fields`]}),_jsx(_components.th,{children:`Optional fields`}),_jsx(_components.th,{children:`What FlowIQ sends`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`bearer`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`token`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Authorization: Bearer \u003ctoken>`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`basic`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`username`}),`, `,_jsx(_components.code,{children:`password`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Authorization: Basic \u003cbase64(username:password)>`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`api_key`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`value`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`header_name`}),` (default `,_jsx(_components.code,{children:`X-API-Key`}),`)`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\u003cheader_name>: \u003cvalue>`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`oauth2_client_credentials`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`token_url`}),`, `,_jsx(_components.code,{children:`client_id`}),`, `,_jsx(_components.code,{children:`client_secret`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`scope`}),`, `,_jsx(_components.code,{children:`audience`}),`, `,_jsx(_components.code,{children:`client_auth`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Authorization: Bearer \u003caccess_token>`}),` from your token endpoint`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`OAuth2 client credentials.`}),` FlowIQ requests a token from `,_jsx(_components.code,{children:`token_url`}),` with `,_jsx(_components.code,{children:`grant_type=client_credentials`}),` (plus `,_jsx(_components.code,{children:`scope`}),` / `,_jsx(_components.code,{children:`audience`}),` if set), sending the client credentials as HTTP Basic auth. Set `,_jsx(_components.code,{children:`client_auth`}),` to `,_jsx(_components.code,{children:`\"body\"`}),` if your server expects `,_jsx(_components.code,{children:`client_id`}),` and `,_jsx(_components.code,{children:`client_secret`}),` in the form body instead. Tokens are cached and refreshed shortly before `,_jsx(_components.code,{children:`expires_in`}),` runs out.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`If FlowIQ can’t build the configured authentication (for example your token endpoint is down or rejects the credentials), that delivery is `,_jsx(_components.strong,{children:`skipped`}),`. It is never sent without the credentials you configured.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`examples`,children:`Examples`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Bearer token`,numberOfLines:`6`,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:`6`,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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://your-server.com/webhook\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"all\"`}),_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:` \"auth_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bearer\"`}),_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:` \"auth_config\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_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:`API key header`,numberOfLines:`6`,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:`6`,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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://your-server.com/webhook\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"all\"`}),_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:` \"auth_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"api_key\"`}),_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:` \"auth_config\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"header_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"X-Api-Key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_KEY\"`}),_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:`OAuth2 + signing`,numberOfLines:`12`,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:`12`,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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://your-server.com/webhook\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"all\"`}),_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:` \"auth_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"oauth2_client_credentials\"`}),_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:` \"auth_config\"`}),_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:` \"token_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://auth.your-server.com/oauth/token\"`}),_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:` \"client_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_CLIENT_ID\"`}),_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:` \"client_secret\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_CLIENT_SECRET\"`}),_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:` \"scope\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"webhooks.write\"`})]}),`\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:` \"secret\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a-long-random-string\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`201 Created`}),`. Credentials and the signing secret are never returned.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,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:`12`,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:` \"success\"`}),_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:`#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:`\"Webhook 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:` \"webhook\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0df9d480-f181-466b-ae8d-85216c16e8dd\"`}),_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://your-server.com/webhook\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message_received\"`}),_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:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"whatsapp\"`}),_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:` \"auth_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"none\"`}),_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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-08T00:00:00.000+02:00\"`})]}),`\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`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`error-incomplete-authentication-400`,children:`Error: Incomplete Authentication (400)`}),`\n`,_jsxs(_components.p,{children:[`Returned when `,_jsx(_components.code,{children:`auth_type`}),` is unknown or its required `,_jsx(_components.code,{children:`auth_config`}),` fields are missing:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid auth configuration\"`}),_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:`\"auth_config.token is required for auth_type 'bearer'\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`type: \"all\"`}),` to receive every event type through a single webhook subscription.`]})}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Webhooks can’t be edited through the API. To change one, delete it and create it again, or edit it in the FlowIQ dashboard.`})})]})}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 Webhook","openapi":"POST /set-webhooks","description":"Register a new webhook endpoint. Optionally configure how FlowIQ authenticates to your server (`auth_type` + `auth_config`), extra static `headers`, and a signing `secret`. Use platform=instagram or messenger for those channels, subscriptions for subscription events and tickets for ticket events.","href":"/flowiq-api-reference/endpoint/create-webhook"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Basic Usage","slug":"basic-usage","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Subscriptions","slug":"subscriptions","depth":2,"children":[]},{"title":"Tickets","slug":"tickets","depth":2,"children":[]},{"title":"Instagram","slug":"instagram","depth":2,"children":[]},{"title":"Messenger","slug":"messenger","depth":2,"children":[]},{"title":"Authentication","slug":"authentication","depth":2,"children":[{"title":"Examples","slug":"examples","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Error: Incomplete Authentication (400)","slug":"error-incomplete-authentication-400","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createWebhook","tags":["Webhooks"],"summary":"Create Webhook","description":"Register a new webhook endpoint. Optionally configure how FlowIQ authenticates to your server (`auth_type` + `auth_config`), extra static `headers`, and a signing `secret`. Use platform=instagram or messenger for those channels, subscriptions for subscription events and tickets for ticket events.","requestBody":"bce52b94-1f5a-465f-ba4d-59b81a791090","responses":{"201":"ee207509-2cb8-47d1-88ed-a2ff20410cf3","400":"a6adaaca-736a-458d-9d7e-1e68ce94df09"},"security":["5a9d072f-ff89-44f3-92b2-b913ab4ed7fe"],"method":"post","type":"path","servers":["9a1511d3-35a5-41a5-968e-3c6fb74456bf"],"path":"/set-webhooks","baseUrlOptions":["https://api.flowiq.live"],"title":"Create Webhook","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url","type"],"properties":{"url":{"type":"string","description":"HTTPS endpoint to receive events","example":"https://your-server.com/webhook","isRequired":true,"uniqueKey":"url","typeLabel":"string"},"type":{"type":"string","description":"Event type to subscribe to. call is WhatsApp-only; Instagram receipt events fire only when that state is recorded. With platform subscriptions, a subscription event; with platform tickets, a ticket event (see Ticket Events).","enum":["message_received","message_sent","sent_message","message_delivered","message_read","message_failed","call","ticket.created","ticket.updated","ticket.status_changed","ticket.assigned","ticket.resolved","ticket.reopened","ticket.deleted","all"],"example":"message_received","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"platform":{"type":"string","description":"`whatsapp` (default), `web`, `instagram`, `messenger`, `subscriptions`, `tickets` or `flows`.","enum":["whatsapp","web","instagram","messenger","subscriptions","tickets","flows"],"default":"whatsapp","example":"whatsapp","uniqueKey":"platform","typeLabel":"enum\u003cstring>"},"auth_type":{"type":"string","description":"How FlowIQ authenticates to your server on every delivery","enum":["none","bearer","basic","api_key","oauth2_client_credentials"],"default":"none","uniqueKey":"auth_type","typeLabel":"enum\u003cstring>"},"auth_config":{"oneOf":[{"type":"object","description":"Credentials for `auth_type`. `bearer`: `token`. `basic`: `username`, `password`. `api_key`: `value`, optional `header_name` (default `X-API-Key`). `oauth2_client_credentials`: `token_url`, `client_id`, `client_secret`, optional `scope`, `audience`, `client_auth` (`basic` default, or `body`).","properties":{"token":{"type":"string","uniqueKey":"auth_config.oneOf.0.token","typeLabel":"string"},"username":{"type":"string","uniqueKey":"auth_config.oneOf.0.username","typeLabel":"string"},"password":{"type":"string","uniqueKey":"auth_config.oneOf.0.password","typeLabel":"string"},"header_name":{"type":"string","default":"X-API-Key","uniqueKey":"auth_config.oneOf.0.header_name","typeLabel":"string"},"value":{"type":"string","uniqueKey":"auth_config.oneOf.0.value","typeLabel":"string"},"token_url":{"type":"string","uniqueKey":"auth_config.oneOf.0.token_url","typeLabel":"string"},"client_id":{"type":"string","uniqueKey":"auth_config.oneOf.0.client_id","typeLabel":"string"},"client_secret":{"type":"string","uniqueKey":"auth_config.oneOf.0.client_secret","typeLabel":"string"},"scope":{"type":"string","uniqueKey":"auth_config.oneOf.0.scope","typeLabel":"string"},"audience":{"type":"string","uniqueKey":"auth_config.oneOf.0.audience","typeLabel":"string"},"client_auth":{"type":"string","enum":["basic","body"],"default":"basic","uniqueKey":"auth_config.oneOf.0.client_auth","typeLabel":"enum\u003cstring>"}},"example":{"token":"YOUR_TOKEN"},"uniqueKey":"auth_config.oneOf.0","typeLabel":"object"},{"type":"null","description":"Credentials for `auth_type`. `bearer`: `token`. `basic`: `username`, `password`. `api_key`: `value`, optional `header_name` (default `X-API-Key`). `oauth2_client_credentials`: `token_url`, `client_id`, `client_secret`, optional `scope`, `audience`, `client_auth` (`basic` default, or `body`).","properties":{"token":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"header_name":{"type":"string","default":"X-API-Key"},"value":{"type":"string"},"token_url":{"type":"string"},"client_id":{"type":"string"},"client_secret":{"type":"string"},"scope":{"type":"string"},"audience":{"type":"string"},"client_auth":{"type":"string","enum":["basic","body"],"default":"basic"}},"example":{"token":"YOUR_TOKEN"},"uniqueKey":"auth_config.oneOf.1","typeLabel":"null"}],"uniqueKey":"auth_config","typeLabel":"object | null"},"headers":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","uniqueKey":"headers.oneOf.0.additionalProperties","typeLabel":"string"},"description":"Extra static headers sent with every delivery","example":{"X-Tenant":"shop-1"},"uniqueKey":"headers.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","uniqueKey":"headers.oneOf.1.additionalProperties","typeLabel":"string"},"description":"Extra static headers sent with every delivery","example":{"X-Tenant":"shop-1"},"uniqueKey":"headers.oneOf.1","typeLabel":"null"}],"uniqueKey":"headers","typeLabel":"object | null"},"secret":{"oneOf":[{"type":"string","description":"Signing secret. When set, each delivery carries `X-Flowiq-Signature: sha256=\u003chex HMAC-SHA256 of the raw body>`.","uniqueKey":"secret.oneOf.0","typeLabel":"string"},{"type":"null","description":"Signing secret. When set, each delivery carries `X-Flowiq-Signature: sha256=\u003chex HMAC-SHA256 of the raw body>`.","uniqueKey":"secret.oneOf.1","typeLabel":"null"}],"uniqueKey":"secret","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"basic":{"title":"basic","summary":"No authentication","value":{"url":"https://your-server.com/webhook","type":"message_received"}},"bearer-signed":{"title":"bearer-signed","summary":"Bearer token + signing secret","value":{"url":"https://your-server.com/webhook","type":"all","auth_type":"bearer","auth_config":{"token":"YOUR_TOKEN"},"secret":"a-long-random-string"}},"instagram":{"title":"instagram","summary":"Instagram","value":{"url":"https://your-server.com/webhooks/instagram","type":"all","platform":"instagram","secret":"a-long-random-string"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"ee207509-2cb8-47d1-88ed-a2ff20410cf3":{"description":"Webhook created successfully. Credentials and the signing secret are never returned.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"webhook":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"webhook.id","typeLabel":"string\u003cuuid>"},"url":{"type":"string","uniqueKey":"webhook.url","typeLabel":"string"},"type":{"type":"string","uniqueKey":"webhook.type","typeLabel":"string"},"platform":{"type":"string","uniqueKey":"webhook.platform","typeLabel":"string"},"auth_type":{"type":"string","uniqueKey":"webhook.auth_type","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","uniqueKey":"webhook.created_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"webhook","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":true,"message":"Webhook created successfully","webhook":{"id":"0df9d480-f181-466b-ae8d-85216c16e8dd","url":"https://your-server.com/webhook","type":"message_received","platform":"whatsapp","auth_type":"none","created_at":"2026-03-08T00:00:00.000+02:00"}},"examples":{"Example":{"title":"Example","value":{"success":true,"message":"Webhook created successfully","webhook":{"id":"0df9d480-f181-466b-ae8d-85216c16e8dd","url":"https://your-server.com/webhook","type":"message_received","platform":"whatsapp","auth_type":"none","created_at":"2026-03-08T00:00:00.000+02:00"}}}},"exampleType":"examples"}},"exampleType":"examples"},"a6adaaca-736a-458d-9d7e-1e68ce94df09":{"description":"Missing `url` / `type`, an unknown event type, or an incomplete authentication configuration","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the request was successful","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","description":"Error message","example":"Invalid or missing API key","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Detailed error message","example":"Invalid or missing API key","uniqueKey":"message","typeLabel":"string"},"details":{"type":"string","description":"Additional error details (optional)","example":"Shopify order not found","uniqueKey":"details","typeLabel":"string"}},"required":["success","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"missing-fields":{"title":"missing-fields","summary":"Missing Fields","value":{"error":"Missing required fields","message":"url and type are required"}},"invalid-auth":{"title":"invalid-auth","summary":"Incomplete Authentication","value":{"error":"Invalid auth configuration","message":"auth_config.token is required for auth_type 'bearer'"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"5a9d072f-ff89-44f3-92b2-b913ab4ed7fe":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Your FlowIQ API key (from Settings → Profile → API Keys), sent as a bearer token. Format: `Bearer fiq_YOUR_API_KEY`","bearerFormat":"fiq_ API key","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"9a1511d3-35a5-41a5-968e-3c6fb74456bf":{"url":"https://api.flowiq.live","description":"FlowIQ Production API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your FlowIQ API key (from Settings → Profile → API Keys), sent as a bearer token. Format: `Bearer fiq_YOUR_API_KEY`","bearerFormat":"fiq_ API key","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your FlowIQ API key (from Settings → Profile → API Keys), sent as a bearer token. Format: `Bearer fiq_YOUR_API_KEY`","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"flowiq-api-reference/openapi.json"},"subdomain":"flowapt","siteName":"FlowIQ API Documentation","title":"Create Webhook - FlowIQ API Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-15T23:49:41.410Z","originalFileLocation":"flowiq-api-reference/endpoint/create-webhook.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=\"Register a new webhook endpoint. Optionally configure how FlowIQ authenticates to your server (auth_type + auth_config), extra static headers, and a signing secret. Use platform=instagram or messenger for those channels, subscriptions for subscription events and tickets for ticket events.\">\u003cmeta data-mint-head name=\"application-name\" content=\"FlowIQ API 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/flowapt/WfinyEZfsUDoAQO_/_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/flowapt/WfinyEZfsUDoAQO_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/flowapt/WfinyEZfsUDoAQO_/_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/flowapt/WfinyEZfsUDoAQO_/_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/flowapt/WfinyEZfsUDoAQO_/_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/flowapt/WfinyEZfsUDoAQO_/_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/flowapt/WfinyEZfsUDoAQO_/_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/flowapt/WfinyEZfsUDoAQO_/_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/flowapt/WfinyEZfsUDoAQO_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Webhook - FlowIQ API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Register a new webhook endpoint. Optionally configure how FlowIQ authenticates to your server (auth_type + auth_config), extra static headers, and a signing secret. Use platform=instagram or messenger for those channels, subscriptions for subscription events and tickets for ticket events.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"FlowIQ API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.flowapt.com/flowiq-api-reference/endpoint/create-webhook\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://flowapt.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=Create+Webhook\u0026amp;description=Register+a+new+webhook+endpoint.+Optionally+configure+how+FlowIQ+authenticates+to+your+server+%28%60auth_type%60+%2B+%60auth_config%60%29%2C+extra+static+%60headers%60%2C+and+a+signi\u0026amp;theme=5d3902551c83490f1113d1b6\u0026amp;signature=9aa71a61c932ceaeb3a1fac36531431a624f57ec30e29c6681db56596698b81b\">\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 Webhook - FlowIQ API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Register a new webhook endpoint. Optionally configure how FlowIQ authenticates to your server (auth_type + auth_config), extra static headers, and a signing secret. Use platform=instagram or messenger for those channels, subscriptions for subscription events and tickets for ticket events.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://flowapt.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=Create+Webhook\u0026amp;description=Register+a+new+webhook+endpoint.+Optionally+configure+how+FlowIQ+authenticates+to+your+server+%28%60auth_type%60+%2B+%60auth_config%60%29%2C+extra+static+%60headers%60%2C+and+a+signi\u0026amp;theme=5d3902551c83490f1113d1b6\u0026amp;signature=9aa71a61c932ceaeb3a1fac36531431a624f57ec30e29c6681db56596698b81b\">\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/flowapt/WfinyEZfsUDoAQO_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"FlowIQ API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#C4520F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.flowapt.com/flowiq-api-reference/endpoint/create-webhook\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/flowiq-api-reference/endpoint/create-webhook.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.flowapt.com/#organization\",\"name\":\"FlowIQ API Documentation\",\"url\":\"https://docs.flowapt.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/flowapt/QUdYGUKLfZc69ji2/light-top-left.png?fit=max\u0026auto=format\u0026n=QUdYGUKLfZc69ji2\u0026q=85\u0026s=15f1f6f316bbdf2d7518f3a9d2332758\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.flowapt.com#website\",\"name\":\"FlowIQ API Documentation\",\"url\":\"https://docs.flowapt.com\",\"publisher\":{\"@id\":\"https://docs.flowapt.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/create-webhook#webpage\",\"url\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/create-webhook\",\"name\":\"Create Webhook\",\"description\":\"Register a new webhook endpoint. Optionally configure how FlowIQ authenticates to your server (auth_type + auth_config), extra static headers, and a signing secret. Use platform=instagram or messenger for those channels, subscriptions for subscription events and tickets for ticket events.\",\"dateModified\":\"2026-11-15T23:49:41.410Z\",\"isPartOf\":{\"@id\":\"https://docs.flowapt.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/create-webhook#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/create-webhook#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Webhooks\",\"item\":\"https://docs.flowapt.com/flowiq-api-reference/webhooks\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Webhook\",\"item\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/create-webhook\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/create-webhook#apireference\",\"headline\":\"Create Webhook\",\"name\":\"Create Webhook\",\"description\":\"Register a new webhook endpoint. Optionally configure how FlowIQ authenticates to your server (auth_type + auth_config), extra static headers, and a signing secret. Use platform=instagram or messenger for those channels, subscriptions for subscription events and tickets for ticket events.\",\"url\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/create-webhook\",\"mainEntityOfPage\":{\"@id\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/create-webhook#webpage\"},\"dateModified\":\"2026-11-15T23:49:41.410Z\",\"publisher\":{\"@id\":\"https://docs.flowapt.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.flowapt.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"FlowIQ API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"FlowIQ API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/flowiq-api-reference/endpoint/create-webhook.md","siteName":"FlowIQ API Documentation","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"square-terminal","href":"https://app.flowiq.live"},{"anchor":"Support","icon":"envelope","href":"mailto:dev@flowapt.com"},{"anchor":"Flowapt","icon":"globe","href":"https://flowapt.com"}]},"groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/index"},{"title":"Quickstart","href":"/flowiq-quickstart"},{"title":"Conventions","href":"/flowiq-api-reference/conventions"}]},{"group":"WhatsApp","pages":[{"group":"Send Messages","pages":[{"title":"Send Text Message","openapi":"flowiq-api-reference/openapi-send-text.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-text"},{"title":"Send Image","openapi":"flowiq-api-reference/openapi-send-image.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-image"},{"title":"Send Video","openapi":"flowiq-api-reference/openapi-send-video.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-video"},{"title":"Send Audio","openapi":"flowiq-api-reference/openapi-send-audio.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-audio"},{"title":"Send Document","openapi":"flowiq-api-reference/openapi-send-document.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-document"},{"title":"Send Location","openapi":"flowiq-api-reference/openapi-send-location.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-location"},{"title":"Send Contact Card","openapi":"flowiq-api-reference/openapi-send-contacts.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-contacts"},{"title":"Send Interactive Buttons","openapi":"flowiq-api-reference/openapi-send-interactive-buttons.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-interactive-buttons"},{"title":"Send Interactive List","openapi":"flowiq-api-reference/openapi-send-interactive-list.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-interactive-list"},{"title":"Send Reaction","openapi":"flowiq-api-reference/openapi-send-reaction.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-reaction"},{"title":"Send Typing Indicator","openapi":"flowiq-api-reference/openapi-send-typing.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-typing"},{"title":"Mark Message as Read","openapi":"flowiq-api-reference/openapi-send-read.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-read"}]},{"group":"Templates \u0026 Broadcasts","pages":[{"title":"Send Template","openapi":"flowiq-api-reference/openapi-send-template.json POST /send-template","href":"/flowiq-api-reference/endpoint/send-template"},{"title":"Broadcast Analytics","openapi":"flowiq-api-reference/openapi-broadcast-analytics.json GET /broadcast-analytics","href":"/flowiq-api-reference/endpoint/broadcast-analytics"}]},{"group":"Contacts \u0026 Conversations","pages":[{"title":"Get Contact","openapi":"flowiq-api-reference/openapi.json GET /contact","href":"/flowiq-api-reference/endpoint/get-contact"},{"title":"Create Contact","openapi":"POST /contact","href":"/flowiq-api-reference/endpoint/contact"},{"title":"Conversations","openapi":"GET /conversations","href":"/flowiq-api-reference/endpoint/conversations"}]}]},{"group":"Calling","pages":[{"title":"Calling","href":"/flowiq-api-reference/calling"},{"group":"Calls","pages":[{"title":"List Calls","openapi":"flowiq-api-reference/openapi-calls.json GET /v1/calls","href":"/flowiq-api-reference/endpoint/list-calls"},{"title":"Get Call","openapi":"flowiq-api-reference/openapi-calls.json GET /v1/calls/{call_id}","href":"/flowiq-api-reference/endpoint/get-call"},{"title":"Start Call","openapi":"flowiq-api-reference/openapi-calls.json POST /v1/calls","href":"/flowiq-api-reference/endpoint/start-call"}]},{"group":"Answer and end","pages":[{"title":"Pre-accept Call","openapi":"flowiq-api-reference/openapi-calls.json POST /v1/calls/pre-accept","href":"/flowiq-api-reference/endpoint/pre-accept-call"},{"title":"Accept Call","openapi":"flowiq-api-reference/openapi-calls.json POST /v1/calls/accept","href":"/flowiq-api-reference/endpoint/accept-call"},{"title":"Reject Call","openapi":"flowiq-api-reference/openapi-calls.json POST /v1/calls/reject","href":"/flowiq-api-reference/endpoint/reject-call"},{"title":"End Call","openapi":"flowiq-api-reference/openapi-calls.json POST /v1/calls/terminate","href":"/flowiq-api-reference/endpoint/end-call"}]},{"group":"Permission","pages":[{"title":"Get Call Permission","openapi":"flowiq-api-reference/openapi-calls.json GET /v1/calls/permissions/{whatsapp_id}","href":"/flowiq-api-reference/endpoint/get-call-permission"},{"title":"Request Call Permission","openapi":"flowiq-api-reference/openapi-calls.json POST /v1/calls/permission-requests","href":"/flowiq-api-reference/endpoint/request-call-permission"}]},{"group":"Settings","pages":[{"title":"Get Calling Settings","openapi":"flowiq-api-reference/openapi-calls.json GET /v1/calling/settings","href":"/flowiq-api-reference/endpoint/get-calling-settings"},{"title":"Update Calling Settings","openapi":"flowiq-api-reference/openapi-calls.json PATCH /v1/calling/settings","href":"/flowiq-api-reference/endpoint/update-calling-settings"}]}]},{"group":"Instagram","pages":[{"title":"Instagram API","sidebarTitle":"Overview","href":"/flowiq-api-reference/instagram"},{"group":"Send Messages","pages":[{"title":"Send Instagram Text","sidebarTitle":"Send Text Message","openapi":"flowiq-api-reference/openapi-instagram-send-text.json POST /send-instagram","href":"/flowiq-api-reference/endpoint/send-instagram-text"},{"title":"Send Instagram Image","sidebarTitle":"Send Image","openapi":"flowiq-api-reference/openapi-instagram-send-image.json POST /send-instagram","href":"/flowiq-api-reference/endpoint/send-instagram-image"},{"title":"Send Instagram Video","sidebarTitle":"Send Video","openapi":"flowiq-api-reference/openapi-instagram-send-video.json POST /send-instagram","href":"/flowiq-api-reference/endpoint/send-instagram-video"},{"title":"Send Instagram Audio","sidebarTitle":"Send Audio","openapi":"flowiq-api-reference/openapi-instagram-send-audio.json POST /send-instagram","href":"/flowiq-api-reference/endpoint/send-instagram-audio"}]},{"title":"Instagram Conversations","sidebarTitle":"Conversations","openapi":"flowiq-api-reference/openapi-instagram.json GET /instagram-conversations","href":"/flowiq-api-reference/endpoint/instagram-conversations"}]},{"group":"Messenger","pages":[{"title":"Messenger API","sidebarTitle":"Overview","href":"/flowiq-api-reference/messenger"},{"group":"Send Messages","pages":[{"title":"Send Messenger Text","sidebarTitle":"Send Text Message","openapi":"flowiq-api-reference/openapi-messenger-send-text.json POST /send-messenger","href":"/flowiq-api-reference/endpoint/send-messenger-text"},{"title":"Send Messenger Image","sidebarTitle":"Send Image","openapi":"flowiq-api-reference/openapi-messenger-send-image.json POST /send-messenger","href":"/flowiq-api-reference/endpoint/send-messenger-image"},{"title":"Send Messenger Video","sidebarTitle":"Send Video","openapi":"flowiq-api-reference/openapi-messenger-send-video.json POST /send-messenger","href":"/flowiq-api-reference/endpoint/send-messenger-video"},{"title":"Send Messenger Audio","sidebarTitle":"Send Audio","openapi":"flowiq-api-reference/openapi-messenger-send-audio.json POST /send-messenger","href":"/flowiq-api-reference/endpoint/send-messenger-audio"},{"title":"Send Messenger File","sidebarTitle":"Send File","openapi":"flowiq-api-reference/openapi-messenger-send-file.json POST /send-messenger","href":"/flowiq-api-reference/endpoint/send-messenger-file"}]},{"title":"Messenger Conversations","sidebarTitle":"Conversations","openapi":"flowiq-api-reference/openapi-messenger.json GET /messenger-conversations","href":"/flowiq-api-reference/endpoint/messenger-conversations"}]},{"group":"Subscriptions","pages":[{"title":"Subscriptions","href":"/flowiq-api-reference/subscriptions"},{"title":"List Subscriptions","openapi":"flowiq-api-reference/openapi-subscriptions.json GET /v1/subscriptions","href":"/flowiq-api-reference/endpoint/list-subscriptions"},{"title":"Get Subscription","openapi":"flowiq-api-reference/openapi-subscriptions.json GET /v1/subscriptions/{id}","href":"/flowiq-api-reference/endpoint/get-subscription"},{"title":"Upcoming Deliveries","openapi":"flowiq-api-reference/openapi-subscriptions.json GET /v1/subscriptions/upcoming","href":"/flowiq-api-reference/endpoint/upcoming-deliveries"},{"title":"Subscription by Shopify Order","openapi":"flowiq-api-reference/openapi-subscriptions.json GET /v1/subscriptions/by-order/{order_id}","href":"/flowiq-api-reference/endpoint/subscription-by-order"},{"title":"Change a subscription","openapi":"flowiq-api-reference/openapi-subscription-changes.json POST /v1/subscriptions/{id}/{action}","href":"/flowiq-api-reference/change-subscription"},{"title":"Subscription Webhooks","href":"/flowiq-api-reference/subscription-webhooks"}]},{"group":"Tickets","pages":[{"title":"Update a ticket","openapi":"flowiq-api-reference/openapi-tickets.json PATCH /v1/tickets/{ticket}","href":"/flowiq-api-reference/update-ticket"},{"title":"Ticket Events","href":"/flowiq-api-reference/ticket-webhooks"}]},{"group":"Flows","pages":[{"title":"Flows","href":"/flowiq-api-reference/flows-api"},{"title":"Flow definition reference","sidebarTitle":"Definition reference","href":"/flowiq-api-reference/flow-definition"},{"group":"Manage flows","pages":[{"title":"List flows","openapi":"flowiq-api-reference/openapi-flows.json GET /v1/flows","href":"/flowiq-api-reference/endpoint/list-flows"},{"title":"Get a flow","openapi":"flowiq-api-reference/openapi-flows.json GET /v1/flows/{id}","href":"/flowiq-api-reference/endpoint/get-flow"},{"title":"Create a flow","openapi":"flowiq-api-reference/openapi-flows.json POST /v1/flows","href":"/flowiq-api-reference/endpoint/create-flow"},{"title":"Update a flow","openapi":"flowiq-api-reference/openapi-flows.json PATCH /v1/flows/{id}","href":"/flowiq-api-reference/endpoint/update-flow"},{"title":"Switch a flow on or off","openapi":"flowiq-api-reference/openapi-flows.json POST /v1/flows/{id}/status","href":"/flowiq-api-reference/endpoint/set-flow-status"},{"title":"Delete a flow","openapi":"flowiq-api-reference/openapi-flows.json DELETE /v1/flows/{id}","href":"/flowiq-api-reference/endpoint/delete-flow"}]},{"group":"Results","pages":[{"title":"Flow report","openapi":"flowiq-api-reference/openapi-flows.json GET /v1/flows/{id}/report","href":"/flowiq-api-reference/endpoint/flow-report"},{"title":"Flow runs","openapi":"flowiq-api-reference/openapi-flows.json GET /v1/flows/{id}/runs","href":"/flowiq-api-reference/endpoint/flow-runs"}]},{"title":"Send an event","openapi":"flowiq-api-reference/openapi-events.json POST /v1/events","href":"/flowiq-api-reference/send-event"},{"title":"Flow Events","href":"/flowiq-api-reference/flow-webhooks"}]},{"group":"Webhooks","pages":[{"title":"Events","href":"/flowiq-api-reference/webhooks"},{"title":"List Webhooks","openapi":"GET /get-webhooks","description":"List all registered webhooks for your organization.","href":"/flowiq-api-reference/endpoint/get-webhooks"},{"title":"Create Webhook","openapi":"POST /set-webhooks","href":"/flowiq-api-reference/endpoint/create-webhook"},{"title":"Delete Webhook","openapi":"DELETE /set-webhooks","description":"Remove a registered webhook. Use `GET /get-webhooks` first to find the `id`.","href":"/flowiq-api-reference/endpoint/delete-webhook"},{"group":"Delivery log","pages":[{"title":"List Deliveries","openapi":"flowiq-api-reference/openapi-webhook-deliveries.json GET /v1/webhooks/deliveries","href":"/flowiq-api-reference/endpoint/list-webhook-deliveries"},{"title":"Get Delivery","openapi":"flowiq-api-reference/openapi-webhook-deliveries.json GET /v1/webhooks/deliveries/{id}","href":"/flowiq-api-reference/endpoint/get-webhook-delivery"},{"title":"Retry Delivery","openapi":"flowiq-api-reference/openapi-webhook-deliveries.json POST /v1/webhooks/deliveries/{id}/retry","href":"/flowiq-api-reference/endpoint/retry-webhook-delivery"}]}]},{"group":"Reporting \u0026 AI","pages":[{"title":"Reporting API","href":"/flowiq-api-reference/reporting-api"},{"title":"AI Assistants (MCP)","href":"/flowiq-api-reference/mcp"}]}]},"basePath":"","title":"Create Webhook - FlowIQ API Documentation","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}