Get a signed POST on your own URL when one of your posts is published or fails.
A webhook tells your server (or your agent) what happened to a post, without
polling GET /api/v1/posts/{post_id}. MagicPost sends a signed POST to your
URL when one of your posts:
is published on LinkedIn: post.published
fails to publish: post.failed, with the LinkedIn error
Webhooks cover the posts you author. Posts that an organization admin schedules
for another member are sent to that member’s webhooks, not the admin’s.
No code needed: you can also add, test and reactivate webhooks in the app, under
Settings › Webhooks (paste the URL from Make, Zapier or n8n). Webhooks belong
to your account, not to an API key.
All endpoints below require a Personal Access Token (Authorization: Bearer mp_…).
POST /api/v1/webhooks
Create a webhook. The signing secret is returned exactly once.Body
{ "webhook": { "id": "6f1c…", "url_preview": "https://hooks.example.com/…post", "events": ["post.published", "post.failed"], "active": true, "disabled_reason": null, "created_at": "2026-11-11T10:00:00+00:00" }, "secret": "whsec_…", "hint": "Store this secret now: it is shown only once. …"}
Store secret right away: it is never shown again. If you lose it, delete the
webhook and create a new one.Constraints:
At most 5 webhooks per account (endpoint_limit_reached)
invalid_url: not HTTPS, or the host is not public
invalid_events: an event type that doesn’t exist
GET /api/v1/webhooks
List your webhooks, with each one’s latest delivery (last_delivery) and its
counts for the last 7 days (last_7_days). Never returns the full URL nor the
secret.
PATCH /api/v1/webhooks/
Change the events of a webhook ({"events": ["post.failed"]}). The URL and the
signing secret stay the same.
DELETE /api/v1/webhooks/
Delete a webhook. Returns 404 webhook_not_found if the id isn’t one of yours.
POST /api/v1/webhooks//test
Send a signed webhook.test event to the URL right away and get the result:
excerpt is the start of your server’s response body; error explains a
network or TLS failure, a timeout or a refused URL.At most 10 tests per hour (test_limit_reached, HTTP 429). Tests are not
retried and don’t count toward deactivation.
POST /api/v1/webhooks//reactivate
Reactivate a webhook that was deactivated after 10 abandoned deliveries in a
row. It keeps the same URL and signing secret, and its failure counter starts
again from zero. No effect on an active webhook.
GET /api/v1/webhooks//deliveries
The 30 most recent deliveries of a webhook (kept 30 days), newest first: event,
post (post_id and the first line of the post as post_title), status
(pending, retrying, delivered, abandoned, skipped), number of
attempts, the last status_code your URL returned and, while retrying or once
abandoned, the last response excerpt or network error.
What you receive
POST /magicpost HTTP/1.1Content-Type: application/jsonMagicPost-Event-Id: 0b8e…MagicPost-Event-Type: post.failedMagicPost-Signature: t=1762855200,v1=5f2c…
publication has exactly the same shape as in GET /api/v1/posts/{post_id}.
error_family is a stable code (daily_limit, media_processing,
service_incident, …). It is null for post.published.
needs_reconnect is true when the LinkedIn account must be reconnected in
MagicPost. It is null for post.published.
The body never contains the text of your post.
For post.published, publication.state is published, and linkedin_url
and published_at are filled.
Verify the signature
MagicPost-Signature is t=<unix timestamp>,v1=<hex>, where v1 is the
HMAC-SHA256 of "<t>.<raw request body>" with your secret. Always compute it
on the raw bytes you received, before parsing the JSON, compare in constant
time, and reject requests whose timestamp is more than 5 minutes old.
import hashlib, hmac, timedef verify(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool: parts = dict(item.split("=", 1) for item in header.split(",")) timestamp, signature = int(parts["t"]), parts["v1"] if abs(time.time() - timestamp) > tolerance: return False expected = hmac.new(secret.encode(), f"{timestamp}.".encode() + raw_body, hashlib.sha256).hexdigest() return hmac.compare_digest(expected, signature)
import crypto from "node:crypto";export function verify(rawBody, header, secret, tolerance = 300) { const parts = Object.fromEntries(header.split(",").map((p) => p.split("=", 2))); const timestamp = Number(parts.t); if (Math.abs(Date.now() / 1000 - timestamp) > tolerance) return false; const expected = crypto .createHmac("sha256", secret) .update(`${timestamp}.`) .update(rawBody) .digest("hex"); const a = Buffer.from(expected); const b = Buffer.from(parts.v1 ?? ""); return a.length === b.length && crypto.timingSafeEqual(a, b);}
Retries and deactivation
Answer with a 2xx within 10 seconds. Anything else (3xx included:
redirects are not followed) counts as a failure.
A failed delivery is retried after 1 min, 5 min, 30 min, 2 h and 6 h, then
abandoned.
Delivery is at least once: if a delivery attempt is interrupted on our
side, it is retried, so the same event can arrive twice.
After 10 abandoned deliveries in a row, the webhook is deactivated
(active: false) and we email you. Fix your endpoint, then reactivate it
(POST /api/v1/webhooks/{id}/reactivate, or Settings › Webhooks in the
app): same URL, same secret.
If an agent republishes on its own
Deduplicate on MagicPost-Event-Id. The same event can reach you twice
(for example when your server answered after the timeout). Store the ids you
already handled.
Don’t retry a daily_limit failure in a loop. It means the LinkedIn
profile reached its posts-per-24-hours limit. Pick a later slot instead (the
retry_at field of the scheduling error tells you when).
For needs_reconnect: true, republishing won’t help until the account is
reconnected to LinkedIn in MagicPost.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MagicPost Developers","colors":{"primary":"#7E4EFD","light":"#9B7AFC","dark":"#5C2EE0"},"logo":{"light":"https://mintcdn.com/magicpost/SaSZgOZZKTX6XPZW/logo/light.svg?fit=max\u0026auto=format\u0026n=SaSZgOZZKTX6XPZW\u0026q=85\u0026s=91ef517ec032ce57959b2887fdaec6b4","dark":"https://mintcdn.com/magicpost/SaSZgOZZKTX6XPZW/logo/dark.svg?fit=max\u0026auto=format\u0026n=SaSZgOZZKTX6XPZW\u0026q=85\u0026s=66a4662e6c8123c3b4412f0487fe0901"},"favicon":"https://mintcdn.com/magicpost/SaSZgOZZKTX6XPZW/favicon.svg?fit=max\u0026auto=format\u0026n=SaSZgOZZKTX6XPZW\u0026q=85\u0026s=713570e242b364ac57efc9b26c0d9ae9","navbar":{"links":[{"href":"https://app.magicpost.in","label":"App"}],"primary":{"type":"button","label":"Create API key","href":"https://app.magicpost.in/account?tab=api-keys"}},"footer":{"socials":{"x":"https://x.com/magicpost","linkedin":"https://linkedin.com/company/magicpost"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Status","icon":"signal","href":"https://status.magicpost.in"},{"anchor":"Support","icon":"envelope","href":"mailto:support@magicpost.in"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"magicpost","hasAudioNarration":false,"actualSubdomain":"magicpost","customDomains":["dev.magicpost.in"],"gitSource":{"type":"github","owner":"magicpost","repo":"magicpost-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10ea229ffae5051c414f0a"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0b0d65612400ba46ec4145","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"Guides","count":12},{"language":"default","tag":"API reference","count":8},{"language":"default","tag":"MCP integration","count":8},{"language":"default","tag":"Endpoints","count":7},{"language":"default","tag":"Essentials","count":2},{"language":"default","tag":"Getting started","count":2},{"language":"default","tag":"Overview","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"api-reference/webhooks","slug":"/api-reference/webhooks","pageMetadata":{"title":"Webhooks","description":"Get a signed POST on your own URL when one of your posts is published or fails.","icon":"webhook","href":"/api-reference/webhooks"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Get a signed POST on your own URL when one of your posts is published or fails.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A webhook tells your server (or your agent) what happened to a post, without\npolling `,_jsx(_components.code,{children:`GET /api/v1/posts/{post_id}`}),`. MagicPost sends a signed `,_jsx(_components.code,{children:`POST`}),` to your\nURL when one of `,_jsx(_components.strong,{children:`your`}),` posts:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`is published on LinkedIn: `,_jsx(_components.code,{children:`post.published`})]}),`\n`,_jsxs(_components.li,{children:[`fails to publish: `,_jsx(_components.code,{children:`post.failed`}),`, with the LinkedIn error`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Webhooks cover the posts you author. Posts that an organization admin schedules\nfor another member are sent to that member’s webhooks, not the admin’s.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`No code needed: you can also add, test and reactivate webhooks in the app, under\n`,_jsx(_components.strong,{children:`Settings › Webhooks`}),` (paste the URL from Make, Zapier or n8n). Webhooks belong\nto your account, not to an API key.`]})}),`\n`,_jsxs(_components.p,{children:[`All endpoints below require a Personal Access Token (`,_jsx(_components.code,{children:`Authorization: Bearer mp_…`}),`).`]}),`\n`,_jsx(Heading,{level:`2`,id:`post-/api/v1/webhooks`,children:`POST /api/v1/webhooks`}),`\n`,_jsxs(_components.p,{children:[`Create a webhook. The signing secret is returned `,_jsx(_components.strong,{children:`exactly once`}),`.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),`\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://hooks.example.com/magicpost\"`}),_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:` \"events\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"post.published\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"post.failed\"`}),_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`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`url`}),` (required): an `,_jsx(_components.code,{children:`https://`}),` URL on a public host`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`events`}),` (optional): defaults to both events`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Response`}),` (HTTP 201)`]}),`\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:` \"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:`\"6f1c…\"`}),_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_preview\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://hooks.example.com/…post\"`}),_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:` \"events\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"post.published\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"post.failed\"`}),_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:` \"active\"`}),_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:` \"disabled_reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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-11-11T10:00:00+00:00\"`})]}),`\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:`\"whsec_…\"`}),_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:` \"hint\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Store this secret now: it is shown only once. …\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Store `,_jsx(_components.code,{children:`secret`}),` right away: it is never shown again. If you lose it, delete the\nwebhook and create a new one.`]}),`\n`,_jsx(_components.p,{children:`Constraints:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`At most `,_jsx(_components.strong,{children:`5 webhooks`}),` per account (`,_jsx(_components.code,{children:`endpoint_limit_reached`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`invalid_url`}),`: not HTTPS, or the host is not public`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`invalid_events`}),`: an event type that doesn’t exist`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`get-/api/v1/webhooks`,children:`GET /api/v1/webhooks`}),`\n`,_jsxs(_components.p,{children:[`List your webhooks, with each one’s latest delivery (`,_jsx(_components.code,{children:`last_delivery`}),`) and its\ncounts for the last 7 days (`,_jsx(_components.code,{children:`last_7_days`}),`). Never returns the full URL nor the\nsecret.`]}),`\n`,_jsx(Heading,{level:`2`,id:`patch-/api/v1/webhooks/`,children:`PATCH /api/v1/webhooks/`}),`\n`,_jsxs(_components.p,{children:[`Change the events of a webhook (`,_jsx(_components.code,{children:`{\"events\": [\"post.failed\"]}`}),`). The URL and the\nsigning secret stay the same.`]}),`\n`,_jsx(Heading,{level:`2`,id:`delete-/api/v1/webhooks/`,children:`DELETE /api/v1/webhooks/`}),`\n`,_jsxs(_components.p,{children:[`Delete a webhook. Returns 404 `,_jsx(_components.code,{children:`webhook_not_found`}),` if the id isn’t one of yours.`]}),`\n`,_jsxs(Heading,{level:`2`,id:`post-/api/v1/webhooks//test`,children:[`POST /api/v1/webhooks/`,`/test`]}),`\n`,_jsxs(_components.p,{children:[`Send a signed `,_jsx(_components.code,{children:`webhook.test`}),` event to the URL right away and get the result:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"delivered\"`}),_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:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"status_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"duration_ms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`312`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"excerpt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Accepted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`excerpt`}),` is the start of your server’s response body; `,_jsx(_components.code,{children:`error`}),` explains a\nnetwork or TLS failure, a timeout or a refused URL.`]}),`\n`,_jsxs(_components.p,{children:[`At most `,_jsx(_components.strong,{children:`10 tests per hour`}),` (`,_jsx(_components.code,{children:`test_limit_reached`}),`, HTTP 429). Tests are not\nretried and don’t count toward deactivation.`]}),`\n`,_jsxs(Heading,{level:`2`,id:`post-/api/v1/webhooks//reactivate`,children:[`POST /api/v1/webhooks/`,`/reactivate`]}),`\n`,_jsx(_components.p,{children:`Reactivate a webhook that was deactivated after 10 abandoned deliveries in a\nrow. It keeps the same URL and signing secret, and its failure counter starts\nagain from zero. No effect on an active webhook.`}),`\n`,_jsxs(Heading,{level:`2`,id:`get-/api/v1/webhooks//deliveries`,children:[`GET /api/v1/webhooks/`,`/deliveries`]}),`\n`,_jsxs(_components.p,{children:[`The 30 most recent deliveries of a webhook (kept 30 days), newest first: event,\npost (`,_jsx(_components.code,{children:`post_id`}),` and the first line of the post as `,_jsx(_components.code,{children:`post_title`}),`), `,_jsx(_components.code,{children:`status`}),`\n(`,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`retrying`}),`, `,_jsx(_components.code,{children:`delivered`}),`, `,_jsx(_components.code,{children:`abandoned`}),`, `,_jsx(_components.code,{children:`skipped`}),`), number of\n`,_jsx(_components.code,{children:`attempts`}),`, the last `,_jsx(_components.code,{children:`status_code`}),` your URL returned and, while retrying or once\nabandoned, the last response excerpt or network `,_jsx(_components.code,{children:`error`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-you-receive`,children:`What you receive`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /magicpost `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`HTTP`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Content-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`MagicPost-Event-Id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 0b8e…`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`MagicPost-Event-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` post.failed`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`MagicPost-Signature`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` t=1762855200,v1=5f2c…`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`19`,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:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0b8e…\"`}),_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:`\"post.failed\"`}),_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-11-11T10:00:05Z\"`}),_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:` \"post\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"c41d…\"`}),_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:` \"publication\"`}),_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:` \"state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"failed\"`}),_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:` \"scheduled_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-11T10:00:00+00:00\"`}),_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:` \"published_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"linkedin_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:`: {`})]}),`\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:`\"Response error, code 422: {`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`message`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`…`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"linkedin_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`422`}),_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:` \"linkedin_body\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`message`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`…`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error_family\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"media_processing\"`}),_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:` \"needs_reconnect\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`publication`}),` has exactly the same shape as in `,_jsx(_components.code,{children:`GET /api/v1/posts/{post_id}`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`error_family`}),` is a stable code (`,_jsx(_components.code,{children:`daily_limit`}),`, `,_jsx(_components.code,{children:`media_processing`}),`,\n`,_jsx(_components.code,{children:`service_incident`}),`, …). It is `,_jsx(_components.code,{children:`null`}),` for `,_jsx(_components.code,{children:`post.published`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`needs_reconnect`}),` is `,_jsx(_components.code,{children:`true`}),` when the LinkedIn account must be reconnected in\nMagicPost. It is `,_jsx(_components.code,{children:`null`}),` for `,_jsx(_components.code,{children:`post.published`}),`.`]}),`\n`,_jsx(_components.li,{children:`The body never contains the text of your post.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`For `,_jsx(_components.code,{children:`post.published`}),`, `,_jsx(_components.code,{children:`publication.state`}),` is `,_jsx(_components.code,{children:`published`}),`, and `,_jsx(_components.code,{children:`linkedin_url`}),`\nand `,_jsx(_components.code,{children:`published_at`}),` are filled.`]}),`\n`,_jsx(Heading,{level:`2`,id:`verify-the-signature`,children:`Verify the signature`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`MagicPost-Signature`}),` is `,_jsx(_components.code,{children:`t=\u003cunix timestamp>,v1=\u003chex>`}),`, where `,_jsx(_components.code,{children:`v1`}),` is the\nHMAC-SHA256 of `,_jsx(_components.code,{children:`\"\u003ct>.\u003craw request body>\"`}),` with your secret. Always compute it\non the `,_jsx(_components.strong,{children:`raw bytes`}),` you received, before parsing the JSON, compare in constant\ntime, and reject requests whose timestamp is more than `,_jsx(_components.strong,{children:`5 minutes`}),` old.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`10`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` hashlib, hmac, time`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`def`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` verify(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` parts = dict(item.split(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"=\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, 1) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` item `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` header.split(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\",\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` timestamp, signature = int(parts[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"t\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]), parts[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"v1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` abs(time.time() - timestamp) > tolerance:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` False`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` expected = hmac.new(secret.encode(), f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{timestamp}.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.encode() + raw_body,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` hashlib.sha256).hexdigest()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` hmac.compare_digest(expected, signature)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node`,numberOfLines:`15`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` crypto `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"node:crypto\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` verify(rawBody, header, secret, tolerance = 300) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` parts = Object.fromEntries(header.split(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\",\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).map((p) => p.split(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"=\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, 2)));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` timestamp = Number(parts.t);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (Math.abs(Date.now() / 1000 - timestamp) > tolerance) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` expected = crypto`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .createHmac(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sha256\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, secret)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .update(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`${timestamp}.`\"}),_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:` .update(rawBody)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .digest(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hex\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` a = Buffer.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(expected);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` b = Buffer.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(parts.v1 ?? `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` a.length === b.length \u0026\u0026 crypto.timingSafeEqual(a, b);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`retries-and-deactivation`,children:`Retries and deactivation`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Answer with a `,_jsx(_components.strong,{children:`2xx within 10 seconds`}),`. Anything else (3xx included:\nredirects are not followed) counts as a failure.`]}),`\n`,_jsx(_components.li,{children:`A failed delivery is retried after 1 min, 5 min, 30 min, 2 h and 6 h, then\nabandoned.`}),`\n`,_jsxs(_components.li,{children:[`Delivery is `,_jsx(_components.strong,{children:`at least once`}),`: if a delivery attempt is interrupted on our\nside, it is retried, so the same event can arrive twice.`]}),`\n`,_jsxs(_components.li,{children:[`After `,_jsx(_components.strong,{children:`10 abandoned deliveries in a row`}),`, the webhook is deactivated\n(`,_jsx(_components.code,{children:`active: false`}),`) and we email you. Fix your endpoint, then reactivate it\n(`,_jsx(_components.code,{children:`POST /api/v1/webhooks/{id}/reactivate`}),`, or `,_jsx(_components.strong,{children:`Settings › Webhooks`}),` in the\napp): same URL, same secret.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`if-an-agent-republishes-on-its-own`,children:`If an agent republishes on its own`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Deduplicate on `,_jsx(_components.code,{children:`MagicPost-Event-Id`}),`.`]}),` The same event can reach you twice\n(for example when your server answered after the timeout). Store the ids you\nalready handled.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Don’t retry a `,_jsx(_components.code,{children:`daily_limit`}),` failure in a loop.`]}),` It means the LinkedIn\nprofile reached its posts-per-24-hours limit. Pick a later slot instead (the\n`,_jsx(_components.code,{children:`retry_at`}),` field of the scheduling error tells you when).`]})}),`\n`,_jsxs(_components.p,{children:[`For `,_jsx(_components.code,{children:`needs_reconnect: true`}),`, republishing won’t help until the account is\nreconnected to LinkedIn in MagicPost.`]})]})}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":"Webhooks","description":"Get a signed POST on your own URL when one of your posts is published or fails.","icon":"webhook","href":"/api-reference/webhooks"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"POST /api/v1/webhooks","slug":"post-/api/v1/webhooks","depth":2,"children":[]},{"title":"GET /api/v1/webhooks","slug":"get-/api/v1/webhooks","depth":2,"children":[]},{"title":"PATCH /api/v1/webhooks/","slug":"patch-/api/v1/webhooks/","depth":2,"children":[]},{"title":"DELETE /api/v1/webhooks/","slug":"delete-/api/v1/webhooks/","depth":2,"children":[]},{"title":"POST /api/v1/webhooks//test","slug":"post-/api/v1/webhooks//test","depth":2,"children":[]},{"title":"POST /api/v1/webhooks//reactivate","slug":"post-/api/v1/webhooks//reactivate","depth":2,"children":[]},{"title":"GET /api/v1/webhooks//deliveries","slug":"get-/api/v1/webhooks//deliveries","depth":2,"children":[]},{"title":"What you receive","slug":"what-you-receive","depth":2,"children":[]},{"title":"Verify the signature","slug":"verify-the-signature","depth":2,"children":[]},{"title":"Retries and deactivation","slug":"retries-and-deactivation","depth":2,"children":[]},{"title":"If an agent republishes on its own","slug":"if-an-agent-republishes-on-its-own","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"magicpost","siteName":"MagicPost Developers","title":"Webhooks - MagicPost Developers","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-28T17:17:21.863Z","originalFileLocation":"api-reference/webhooks.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=\"Get a signed POST on your own URL when one of your posts is published or fails.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MagicPost Developers\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/magicpost/2jMlhCCrsGGacSFW/_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/magicpost/2jMlhCCrsGGacSFW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/magicpost/2jMlhCCrsGGacSFW/_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/magicpost/2jMlhCCrsGGacSFW/_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/magicpost/2jMlhCCrsGGacSFW/_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/magicpost/2jMlhCCrsGGacSFW/_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/magicpost/2jMlhCCrsGGacSFW/_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/magicpost/2jMlhCCrsGGacSFW/_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/magicpost/2jMlhCCrsGGacSFW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Webhooks - MagicPost Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get a signed POST on your own URL when one of your posts is published or fails.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MagicPost Developers\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://dev.magicpost.in/api-reference/webhooks\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://magicpost.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Webhooks\u0026amp;description=Get+a+signed+POST+on+your+own+URL+when+one+of+your+posts+is+published+or+fails.\u0026amp;theme=d3ba41adc909176f942e13a6\u0026amp;signature=9efe288ff10d92e43c6a36acb39d9ed90da590e749d295ae5dd0a8aefc2119d5\">\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=\"Webhooks - MagicPost Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get a signed POST on your own URL when one of your posts is published or fails.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://magicpost.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Webhooks\u0026amp;description=Get+a+signed+POST+on+your+own+URL+when+one+of+your+posts+is+published+or+fails.\u0026amp;theme=d3ba41adc909176f942e13a6\u0026amp;signature=9efe288ff10d92e43c6a36acb39d9ed90da590e749d295ae5dd0a8aefc2119d5\">\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/magicpost/2jMlhCCrsGGacSFW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MagicPost Developers\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7E4EFD\">\u003clink data-mint-head rel=\"canonical\" href=\"https://dev.magicpost.in/api-reference/webhooks\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/webhooks.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://dev.magicpost.in/#organization\",\"name\":\"MagicPost Developers\",\"url\":\"https://dev.magicpost.in\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/magicpost/SaSZgOZZKTX6XPZW/logo/light.svg?fit=max\u0026auto=format\u0026n=SaSZgOZZKTX6XPZW\u0026q=85\u0026s=91ef517ec032ce57959b2887fdaec6b4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://dev.magicpost.in#website\",\"name\":\"MagicPost Developers\",\"url\":\"https://dev.magicpost.in\",\"publisher\":{\"@id\":\"https://dev.magicpost.in/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://dev.magicpost.in/api-reference/webhooks#webpage\",\"url\":\"https://dev.magicpost.in/api-reference/webhooks\",\"name\":\"Webhooks\",\"description\":\"Get a signed POST on your own URL when one of your posts is published or fails.\",\"dateModified\":\"2026-11-28T17:17:21.863Z\",\"isPartOf\":{\"@id\":\"https://dev.magicpost.in#website\"},\"breadcrumb\":{\"@id\":\"https://dev.magicpost.in/api-reference/webhooks#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://dev.magicpost.in/api-reference/webhooks#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://dev.magicpost.in/api-reference/api-keys\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Webhooks\",\"item\":\"https://dev.magicpost.in/api-reference/webhooks\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://dev.magicpost.in/api-reference/webhooks#article\",\"headline\":\"Webhooks\",\"name\":\"Webhooks\",\"description\":\"Get a signed POST on your own URL when one of your posts is published or fails.\",\"url\":\"https://dev.magicpost.in/api-reference/webhooks\",\"mainEntityOfPage\":{\"@id\":\"https://dev.magicpost.in/api-reference/webhooks#webpage\"},\"dateModified\":\"2026-11-28T17:17:21.863Z\",\"publisher\":{\"@id\":\"https://dev.magicpost.in/#organization\"},\"isPartOf\":{\"@id\":\"https://dev.magicpost.in#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MagicPost Developers\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"MagicPost Developers\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/webhooks.md","siteName":"MagicPost Developers","nav":{"global":{"anchors":[{"anchor":"Status","icon":"signal","href":"https://status.magicpost.in"},{"anchor":"Support","icon":"envelope","href":"mailto:support@magicpost.in"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"Overview","icon":"code","href":"/api-reference/overview"}]},{"group":"Endpoints","pages":[{"title":"API keys","icon":"key","href":"/api-reference/api-keys"},{"title":"Metrics","icon":"chart-line","href":"/api-reference/metrics"},{"title":"Organisation","icon":"users","href":"/api-reference/organization"},{"title":"Posts","icon":"file-pen","href":"/api-reference/posts"},{"title":"Scheduling","icon":"calendar","href":"/api-reference/scheduling"},{"title":"Comments, AI score and ideas","description":"Arm a first comment, read the comments you received, score a post, save an idea.","icon":"comments","href":"/api-reference/content"},{"title":"Webhooks","icon":"webhook","href":"/api-reference/webhooks"}]}]}]},"basePath":"","title":"Webhooks - MagicPost Developers","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":[],"chunks":[]}