However the work arrives, however the result leaves: events, signed webhooks, credentials to third-party APIs, and an MCP server so an agent can drive Duraton itself.
This page is for the code path - wiring events, webhooks, credentials and MCP by hand. To build an
agent without code, start with Build your first agent.An agent is only useful if something real can start it and something real happens when it finishes.
You do not have to change how your business emits work to get either: a run starts from whatever you
already have, and the result leaves the same way. Both directions keep a durable attempt log you can
inspect, redeliver, or replay, so “did the partner ever get it?” is a question with an answer.
Getting a run started
Pick whichever you already have; a workflow can be started by more than one.
The work arrives as
How it starts a run
Read
An event you send yourself
POST /events, or duraton.events.send() from any service
Duraton ships an MCP server, so an AI agent is a first-class operator: it
can list and control runs, send events, and decide approvals. An agent is
not only the thing being run; it can be the thing doing the running. The same server, and llms.txt,
are how you point a coding assistant at these docs and your project.
What each inbound transport guarantees
Every transport ships a capability descriptor you can read from the engine, generated from the same
closed sets the API serves. A webhook source is the only transport today, so nothing differs - the
descriptor exists so that when a second one lands, its differences are stated rather than implied
away.
none - every accepted request becomes an event unless the source names a dedupe key
Dedupe id configurable
yes
Ordering is two questions, not one
A transport’s ordering is not an ordering your runs keep. A broker that guarantees delivery
order within a partition or a queue says nothing about execution order: Duraton does not preserve
ordering past ingest, because runs are admitted from a queue sorted on when they are due, with no
creation-order tiebreak, and a concurrency key buys mutual exclusion rather than sequence.That is why the descriptor carries two fields. ordering is what the transport promises on the
way in; runOrdering is what survives, and it is none for every transport today. Reading the first
without the second is the mistake this section exists to prevent: a true fact about your broker reads
as a promise about your workflows.
If your workload needs records for one key handled in order, ordering at the transport is not enough.
Model it explicitly: one workflow that processes a batch in order, or a state machine keyed on the
entity, rather than assuming per-partition delivery becomes per-partition execution.
Acknowledgement is what makes durability possible
The promise is that work triggered by a message actually finishes. That rests on being able to tell
the transport a message was handled, and on not telling it when the message was not.
Synchronous (webhooks): the HTTP status is the acknowledgement. There is nothing to acknowledge
later, so a sender that gives up is the end of it. That is why an inbound delivery is recorded and
can be replayed.
A transport that acknowledges nothing cannot carry the promise honestly. Redis pub/sub and MQTT
QoS 0 are fire-and-forget: nothing is retained, nothing is replayed, and a consumer that was not
listening simply missed the message. Duraton does not offer them as sources rather than accepting
them and quietly delivering a weaker guarantee under the same name.
Where a dedupe id comes from
A dedupe id is what makes a redelivery a no-op rather than a second run. There is no universal
formula for it, and the descriptor says so per transport:
A webhook has no identifier that is stable across redelivery, so there is no default: a source
that wants dedupe names a key to read from the payload or a header.
Both are overridable with a template. The default is the transport’s to declare, because it depends
on what that transport actually keeps stable. A RabbitMQ delivery tag, for instance, is scoped to a
channel and is not stable across redelivery, so it could never serve as one.
Related
Webhooks - inbound sources, outbound subscriptions, signing, and the attempt log.
Credentials - stored credentials a step resolves at run time.
MCP server - what an agent can do to Duraton, and how to connect one.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Duraton","description":"Build, deploy and monitor AI agents with Duraton, and the developer reference for its SDK and API.","colors":{"primary":"#5252d8","light":"#7a84f8","dark":"#5252d8"},"logo":{"light":"https://mintcdn.com/duraton-950ff1ca/C6sntRFXqHtJQroE/logo/light.svg?fit=max\u0026auto=format\u0026n=C6sntRFXqHtJQroE\u0026q=85\u0026s=23d137435a91919e31f7be7f5e3491bc","dark":"https://mintcdn.com/duraton-950ff1ca/C6sntRFXqHtJQroE/logo/dark.svg?fit=max\u0026auto=format\u0026n=C6sntRFXqHtJQroE\u0026q=85\u0026s=a64a266c8cd4006b14a0c7181fa16d1f","href":"https://duraton.ai"},"favicon":"https://mintcdn.com/duraton-950ff1ca/C6sntRFXqHtJQroE/favicon.svg?fit=max\u0026auto=format\u0026n=C6sntRFXqHtJQroE\u0026q=85\u0026s=21e753740994d861e52e1d907b427be1","appearance":{"default":"system"},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://duraton.ai","label":"Website"},{"href":"https://duraton.ai/blog","label":"Writing"}],"primary":{"type":"button","label":"Console","href":"https://console.duraton.ai"}},"footer":{"socials":{"website":"https://duraton.ai"}},"seo":{"indexing":"navigable"},"fonts":{"heading":{"family":"Orbitron"},"body":{"family":"Public Sans"}},"icons":{"library":"lucide"},"integrations":{"posthog":{"apiKey":"phc_vXeXD7uovimoWNfxzsdteaYtoooPSHKJg3tmqdeRDNcN","apiHost":"https://edge.duraton.dev"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode","mcp"],"display":"header"},"thumbnails":{"appearance":"dark"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"duraton-950ff1ca","hasAudioNarration":false,"actualSubdomain":"duraton-950ff1ca","customDomains":["docs.duraton.ai"],"gitSource":{"type":"github","owner":"duraton","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ab926d62958eeb639e018e2","clientVersion":"0.0.4352","searchFilterCounts":[{"language":"default","tag":"Developers","count":54},{"language":"default","tag":"Durable runs","count":13},{"language":"default","tag":"REST API","count":10},{"language":"default","tag":"AI","count":8},{"language":"default","tag":"TypeScript SDK","count":6},{"language":"default","tag":"Agent kit","count":5},{"language":"default","tag":"Integrations","count":5},{"language":"default","tag":"Start with code","count":5},{"language":"default","tag":"Operate","count":2},{"language":"default","tag":"Get started","count":2}]},"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":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"styles.css","content":"[data-component-part=\"tabs-list\"]{flex-wrap:wrap!important;row-gap:0.25rem}"}]}
{"page":{"pagePath":"integrations","slug":"/integrations","pageMetadata":{"title":"Integrations","description":"However the work arrives, however the result leaves: events, signed webhooks, credentials to third-party APIs, and an MCP server so an agent can drive Duraton itself.","href":"/integrations/index"},"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: \"However the work arrives, however the result leaves: events, signed webhooks, credentials to third-party APIs, and an MCP server so an agent can drive Duraton itself.\"\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`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`This page is for the code path - wiring events, webhooks, credentials and MCP by hand. To build an\nagent without code, start with `,_jsx(_components.a,{href:`/start/first-agent`,children:`Build your first agent`}),`.`]}),`\n`,_jsx(_components.p,{children:`An agent is only useful if something real can start it and something real happens when it finishes.\nYou do not have to change how your business emits work to get either: a run starts from whatever you\nalready have, and the result leaves the same way. Both directions keep a durable attempt log you can\ninspect, redeliver, or replay, so “did the partner ever get it?” is a question with an answer.`}),`\n`,_jsx(Heading,{level:`2`,id:`getting-a-run-started`,children:`Getting a run started`}),`\n`,_jsx(_components.p,{children:`Pick whichever you already have; a workflow can be started by more than one.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`The work arrives as`}),_jsx(_components.th,{children:`How it starts a run`}),_jsx(_components.th,{children:`Read`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`An event you send yourself`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`POST /events`}),`, or `,_jsx(_components.code,{children:`duraton.events.send()`}),` from any service`]}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/reference/api/events`,children:`Events API`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A POST from a third party`}),_jsx(_components.td,{children:`A webhook source verifies the signature, then turns it into an event`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/integrations/webhooks`,children:`Webhooks`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Nothing at all - it is just time`}),_jsx(_components.td,{children:`A cron trigger, with no event behind it`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/core/triggers#cron-triggers`,children:`Triggers`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A person deciding to run it`}),_jsx(_components.td,{children:`A manual trigger from the console or the API`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/core/triggers#trigger-a-run-manually`,children:`Triggers`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`getting-the-result-out`,children:`Getting the result out`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`You want to`}),_jsx(_components.th,{children:`Use`}),_jsx(_components.th,{children:`Read`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Hand off to another workflow`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ctx.step.emit`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/core/steps#step-emit`,children:`Steps`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Tell an outside system`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`ctx.webhook.send`}),` - signed, retried, every attempt logged`]}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/integrations/webhooks#ctx-webhook-send`,children:`Webhooks`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Call a third-party API with stored credentials`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`duraton.credentials.resolve()`}),` inside a step`]}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/integrations/credentials`,children:`Credentials`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`an-agent-can-drive-all-of-it`,children:`An agent can drive all of it`}),`\n`,_jsxs(_components.p,{children:[`Duraton ships an `,_jsx(_components.a,{href:`/integrations/mcp-server`,children:`MCP server`}),`, so an AI agent is a first-class operator: it\ncan list and control runs, send events, and decide approvals. An agent is\nnot only the thing being run; it can be the thing doing the running. The same server, and `,_jsx(_components.code,{children:`llms.txt`}),`,\nare how you point a coding assistant at `,_jsx(_components.a,{href:`/integrations/ai-coding-tools`,children:`these docs and your project`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-each-inbound-transport-guarantees`,children:`What each inbound transport guarantees`}),`\n`,_jsx(_components.p,{children:`Every transport ships a capability descriptor you can read from the engine, generated from the same\nclosed sets the API serves. A webhook source is the only transport today, so nothing differs - the\ndescriptor exists so that when a second one lands, its differences are stated rather than implied\naway.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,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:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$DURATON_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$DURATON_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/ingress-kinds\"`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` kinds`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` duraton`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`events`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ingressKinds`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:`Webhook source`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Ordering`}),` (transport)`]}),_jsx(_components.td,{children:`none`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Acknowledgement`})}),_jsx(_components.td,{children:`synchronous - the response status is the ack`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Who redelivers`})}),_jsx(_components.td,{children:`the sender, on their own policy`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Run ordering`}),` (Duraton)`]}),_jsx(_components.td,{children:`none`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Default dedupe id`})}),_jsx(_components.td,{children:`none - every accepted request becomes an event unless the source names a dedupe key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Dedupe id configurable`})}),_jsx(_components.td,{children:`yes`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`ordering-is-two-questions-not-one`,children:`Ordering is two questions, not one`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`A transport’s ordering is not an ordering your runs keep.`}),` A broker that guarantees delivery\norder within a partition or a queue says nothing about execution order: Duraton does not preserve\nordering past ingest, because runs are admitted from a queue sorted on when they are due, with no\ncreation-order tiebreak, and a concurrency key buys mutual exclusion rather than sequence.`]}),`\n`,_jsxs(_components.p,{children:[`That is why the descriptor carries `,_jsx(_components.strong,{children:`two`}),` fields. `,_jsx(_components.code,{children:`ordering`}),` is what the transport promises on the\nway in; `,_jsx(_components.code,{children:`runOrdering`}),` is what survives, and it is `,_jsx(_components.code,{children:`none`}),` for every transport today. Reading the first\nwithout the second is the mistake this section exists to prevent: a true fact about your broker reads\nas a promise about your workflows.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`If your workload needs records for one key handled in order, ordering at the transport is not enough.\nModel it explicitly: one workflow that processes a batch in order, or a state machine keyed on the\nentity, rather than assuming per-partition delivery becomes per-partition execution.`})}),`\n`,_jsx(Heading,{level:`3`,id:`acknowledgement-is-what-makes-durability-possible`,children:`Acknowledgement is what makes durability possible`}),`\n`,_jsxs(_components.p,{children:[`The promise is that work triggered by a message actually finishes. That rests on being able to tell\nthe transport a message was handled, and on `,_jsx(_components.em,{children:`not`}),` telling it when the message was not.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Synchronous`}),` (webhooks): the HTTP status is the acknowledgement. There is nothing to acknowledge\nlater, so a sender that gives up is the end of it. That is why an inbound delivery is recorded and\ncan be `,_jsx(_components.a,{href:`/integrations/webhooks#the-inbound-delivery-log`,children:`replayed`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`A transport that acknowledges nothing cannot carry the promise honestly.`}),` Redis pub/sub and MQTT\nQoS 0 are fire-and-forget: nothing is retained, nothing is replayed, and a consumer that was not\nlistening simply missed the message. Duraton does not offer them as sources rather than accepting\nthem and quietly delivering a weaker guarantee under the same name.`]}),`\n`,_jsx(Heading,{level:`3`,id:`where-a-dedupe-id-comes-from`,children:`Where a dedupe id comes from`}),`\n`,_jsx(_components.p,{children:`A dedupe id is what makes a redelivery a no-op rather than a second run. There is no universal\nformula for it, and the descriptor says so per transport:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A webhook has no identifier that is stable across redelivery, so there is no default: a source\nthat wants dedupe names a key to read from the payload or a header.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Both are overridable with a template. The default is the transport’s to declare, because it depends\non what that transport actually keeps stable. A RabbitMQ delivery tag, for instance, is scoped to a\nchannel and is not stable across redelivery, so it could never serve as one.`}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/integrations/webhooks`,children:`Webhooks`}),` - inbound sources, outbound subscriptions, signing, and the attempt log.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/integrations/credentials`,children:`Credentials`}),` - stored credentials a step resolves at run time.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/integrations/mcp-server`,children:`MCP server`}),` - what an agent can do to Duraton, and how to connect one.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Integrations","description":"However the work arrives, however the result leaves: events, signed webhooks, credentials to third-party APIs, and an MCP server so an agent can drive Duraton itself.","href":"/integrations/index"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Getting a run started","slug":"getting-a-run-started","depth":2,"children":[]},{"title":"Getting the result out","slug":"getting-the-result-out","depth":2,"children":[]},{"title":"An agent can drive all of it","slug":"an-agent-can-drive-all-of-it","depth":2,"children":[]},{"title":"What each inbound transport guarantees","slug":"what-each-inbound-transport-guarantees","depth":2,"children":[{"title":"Ordering is two questions, not one","slug":"ordering-is-two-questions-not-one","depth":3,"children":[]},{"title":"Acknowledgement is what makes durability possible","slug":"acknowledgement-is-what-makes-durability-possible","depth":3,"children":[]},{"title":"Where a dedupe id comes from","slug":"where-a-dedupe-id-comes-from","depth":3,"children":[]}]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"duraton-950ff1ca","siteName":"Duraton","title":"Integrations - Duraton","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-27T14:23:24.208Z","originalFileLocation":"integrations/index.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=\"However the work arrives, however the result leaves: events, signed webhooks, credentials to third-party APIs, and an MCP server so an agent can drive Duraton itself.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Duraton\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/duraton-950ff1ca/HdwEirdzlOQG0ok8/_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/duraton-950ff1ca/HdwEirdzlOQG0ok8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/duraton-950ff1ca/HdwEirdzlOQG0ok8/_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/duraton-950ff1ca/HdwEirdzlOQG0ok8/_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/duraton-950ff1ca/HdwEirdzlOQG0ok8/_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/duraton-950ff1ca/HdwEirdzlOQG0ok8/_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/duraton-950ff1ca/HdwEirdzlOQG0ok8/_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/duraton-950ff1ca/HdwEirdzlOQG0ok8/_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/duraton-950ff1ca/HdwEirdzlOQG0ok8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Integrations - Duraton\">\u003cmeta data-mint-head property=\"og:description\" content=\"However the work arrives, however the result leaves: events, signed webhooks, credentials to third-party APIs, and an MCP server so an agent can drive Duraton itself.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Duraton\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.duraton.ai/integrations\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://duraton-950ff1ca.mintlify.site/_mintlify/api/og/v2?division=Integrations\u0026amp;title=Integrations\u0026amp;description=However+the+work+arrives%2C+however+the+result+leaves%3A+events%2C+signed+webhooks%2C+credentials+to+third-party+APIs%2C+and+an+MCP+server+so+an+agent+can+drive+Duraton+i\u0026amp;theme=c1747d0f1e6c5a59dac72404\u0026amp;signature=9f8cf933e7f5e68e74abb8ccee6d61acea140406ba286814c078aa27e025bdcc\">\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=\"Integrations - Duraton\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"However the work arrives, however the result leaves: events, signed webhooks, credentials to third-party APIs, and an MCP server so an agent can drive Duraton itself.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://duraton-950ff1ca.mintlify.site/_mintlify/api/og/v2?division=Integrations\u0026amp;title=Integrations\u0026amp;description=However+the+work+arrives%2C+however+the+result+leaves%3A+events%2C+signed+webhooks%2C+credentials+to+third-party+APIs%2C+and+an+MCP+server+so+an+agent+can+drive+Duraton+i\u0026amp;theme=c1747d0f1e6c5a59dac72404\u0026amp;signature=9f8cf933e7f5e68e74abb8ccee6d61acea140406ba286814c078aa27e025bdcc\">\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/duraton-950ff1ca/HdwEirdzlOQG0ok8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Duraton\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5252d8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.duraton.ai/integrations\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/integrations.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.duraton.ai/#organization\",\"name\":\"Duraton\",\"url\":\"https://docs.duraton.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/duraton-950ff1ca/C6sntRFXqHtJQroE/logo/light.svg?fit=max\u0026auto=format\u0026n=C6sntRFXqHtJQroE\u0026q=85\u0026s=23d137435a91919e31f7be7f5e3491bc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.duraton.ai#website\",\"name\":\"Duraton\",\"url\":\"https://docs.duraton.ai\",\"publisher\":{\"@id\":\"https://docs.duraton.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.duraton.ai/integrations#webpage\",\"url\":\"https://docs.duraton.ai/integrations\",\"name\":\"Integrations\",\"description\":\"However the work arrives, however the result leaves: events, signed webhooks, credentials to third-party APIs, and an MCP server so an agent can drive Duraton itself.\",\"dateModified\":\"2026-09-27T14:23:24.208Z\",\"isPartOf\":{\"@id\":\"https://docs.duraton.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.duraton.ai/integrations#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.duraton.ai/integrations#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Duraton\",\"item\":\"https://docs.duraton.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Integrations\",\"item\":\"https://docs.duraton.ai/integrations\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.duraton.ai/integrations#article\",\"headline\":\"Integrations\",\"name\":\"Integrations\",\"description\":\"However the work arrives, however the result leaves: events, signed webhooks, credentials to third-party APIs, and an MCP server so an agent can drive Duraton itself.\",\"url\":\"https://docs.duraton.ai/integrations\",\"mainEntityOfPage\":{\"@id\":\"https://docs.duraton.ai/integrations#webpage\"},\"dateModified\":\"2026-09-27T14:23:24.208Z\",\"publisher\":{\"@id\":\"https://docs.duraton.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.duraton.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Duraton\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Duraton\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/integrations.md","siteName":"Duraton","nav":{"global":null,"tabs":[{"tab":"Get started","icon":"rocket","pages":[{"title":"Get started","href":""}]},{"tab":"Developers","icon":"code","groups":[{"group":"Start with code","pages":[{"title":"Quickstart","href":"/start/quickstart"},{"title":"AI quickstart","href":"/start/ai-quickstart"},{"title":"Recipes","href":"/start/recipes"},{"title":"Migrating from Inngest","href":"/start/migrating-from-inngest"},{"title":"Upgrading","href":"/start/upgrading"}]},{"group":"Agent kit","pages":[{"title":"Agent kit","href":"/agent-kit/index"},{"title":"Agents and tools","href":"/agent-kit/agents-and-tools"},{"title":"Approvals in the loop","href":"/agent-kit/approvals"},{"title":"Structured output","href":"/agent-kit/structured-output"},{"title":"Providers and MCP","href":"/agent-kit/providers-and-mcp"}]},{"group":"AI","pages":[{"title":"AI","href":"/ai/index"},{"title":"AI agents","href":"/ai/ai-steps"},{"title":"Approvals","href":"/ai/approvals"},{"title":"Guardrails","href":"/ai/guardrails"},{"title":"Cost controls","href":"/ai/cost-controls"},{"title":"Context management","href":"/ai/context-management"},{"title":"Streaming","href":"/ai/streaming"},{"title":"AI observability","href":"/ai/observability"}]},{"group":"Durable runs","pages":[{"title":"Durable runs","href":"/core/index"},{"title":"Durable execution","href":"/core/durable-execution"},{"title":"Workflows","href":"/core/workflows"},{"title":"Steps","href":"/core/steps"},{"title":"Triggers","href":"/core/triggers"},{"title":"Retries \u0026 failure handling","href":"/core/retries"},{"title":"Flow Control","href":"/core/flow-control"},{"title":"Runners","href":"/core/runners"},{"title":"Logging","href":"/core/logging"},{"title":"Watching a run","href":"/core/realtime"},{"title":"Workspaces \u0026 projects","href":"/core/projects"},{"group":"Operate","pages":[{"title":"Production and operations","href":"/core/production"},{"title":"Transactional run start","description":"Start a run atomically with an app-side database write - the outbox recipe and the dedupeId-keyed retry pattern.","href":"/core/transactional-start"}]}]},{"group":"Integrations","pages":[{"title":"Integrations","href":"/integrations/index"},{"title":"Webhooks","description":"Let a third party start a run, and let a finished run tell the outside world - verified inbound POSTs, signed outbound ones, one durable delivery log.","href":"/integrations/webhooks"},{"title":"Credentials","href":"/integrations/credentials"},{"title":"MCP server","href":"/integrations/mcp-server"},{"title":"AI coding tools","href":"/integrations/ai-coding-tools"}]},{"group":"TypeScript SDK","pages":[{"title":"TypeScript SDK","href":"/reference/sdk/index"},{"title":"Defining workflows","href":"/reference/sdk/defining-workflows"},{"title":"Steps","href":"/reference/sdk/steps"},{"title":"connect","href":"/reference/sdk/connect"},{"title":"REST client","href":"/reference/sdk/client"},{"title":"AI steps","href":"/reference/sdk/ai-steps"}]},{"group":"REST API","pages":[{"title":"Overview","href":"/reference/api/index"},{"title":"Errors","href":"/reference/api/errors"},{"title":"Runs API","href":"/reference/api/runs"},{"title":"Events API","href":"/reference/api/events"},{"title":"Workflows API","href":"/reference/api/workflows"},{"title":"Control API","href":"/reference/api/control"},{"title":"Approvals API","href":"/reference/api/approvals"},{"title":"Webhooks API","href":"/reference/api/webhooks"},{"title":"Runners \u0026 Apps API","href":"/reference/api/runners"},{"title":"Limits \u0026 defaults","href":"/reference/api/limits"}]},{"group":"Protocol","pages":[{"title":"Reference","href":"/reference/index"},{"title":"Protocol reference","href":"/reference/wire-protocol"}]}]}]},"basePath":"","title":"Integrations - Duraton","deploymentId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","buildId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","dynamics":[],"chunks":[]}