Stop maintaining separate definitions for routing, validation, authorization, response shaping, and OpenAPI.
Most HTTP services describe one endpoint several times. The router knows the path, validation code knows the payload, authorization code knows the caller, and an OpenAPI file tries to repeat all of it. Those copies eventually disagree.HTTPAPI makes the executable endpoint contract the shared source.
Replace scattered policy with one contract
Concern
Without a shared contract
With HTTPAPI
Input
Decode JSON, then remember to validate it
Parse once into a complete Go value
Access
Repeat checks inside handlers
Declare authorization and callers on the endpoint
Output
Build maps and remove sensitive fields manually
Project a declared shape for the active caller
Runtime safety
Keep limits, timeouts, and idempotency in side tables
Store them beside the endpoint
API description
Maintain a separate OpenAPI document
Transcribe the mounted contracts
The result is not less domain code. It is less duplicated HTTP policy around that code.
Keep business work outside HTTPAPI
HTTPAPI owns the boundary around a handler. It can establish that a request is well-formed, authenticated, available to its caller, within limits, and safe to execute once. It does not decide whether a customer owns a resource or whether an order may change state.Those decisions still belong to the domain service, where current application state and transactions are available.
Treat OpenAPI as an output
OpenAPI is useful for client generation and API discovery, but it cannot represent every runtime rule without extensions or loss. HTTPAPI therefore transcribes OpenAPI from the executable contract. OpenAPI does not become the runtime model.
If you want a Go service to execute and publish the same contract, start with the quickstart. If you need a language-neutral implementation contract, use the HTTPAPI specification.
⌘I
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"HTTPAPI","description":"Delivering conversations.","colors":{"primary":"#2563EB","light":"#3B82F6","dark":"#60A5FA"},"logo":{"light":"https://mintcdn.com/true-sense-inc/NCRVkIIygoLkZ0Kw/logo-dark.svg?fit=max\u0026auto=format\u0026n=NCRVkIIygoLkZ0Kw\u0026q=85\u0026s=3218a45f3312e49aa2c1e6554cab546e","dark":"https://mintcdn.com/true-sense-inc/NCRVkIIygoLkZ0Kw/logo-light.svg?fit=max\u0026auto=format\u0026n=NCRVkIIygoLkZ0Kw\u0026q=85\u0026s=fb78105c929adc2a77fe8cfbf4457690","href":"/httpapi"},"favicon":"https://mintcdn.com/true-sense-inc/NCRVkIIygoLkZ0Kw/favicon.svg?fit=max\u0026auto=format\u0026n=NCRVkIIygoLkZ0Kw\u0026q=85\u0026s=6d82996609412b360f2f1d1d8e6987cb","navbar":{"primary":{"type":"github","href":"https://github.com/inttegro/httpapi"}},"footer":{"socials":{"website":"https://inttegro.com","github":"https://github.com/inttegro/httpapi"},"links":[{"header":"HTTPAPI","items":[{"label":"Quickstart","href":"/httpapi/quickstart"},{"label":"Specification","href":"/httpapi/specification"},{"label":"Source code","href":"https://github.com/inttegro/httpapi"}]},{"header":"Inttegro","items":[{"label":"Commerce platform","href":"https://inttegro.com"},{"label":"Developer Studio","href":"https://studio.inttegro.dev"},{"label":"Simile","href":"https://os.inttegro.dev/simile"}]}]},"seo":{"metatags":{"canonical":"https://os.inttegro.dev"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"true-sense-inc","hasAudioNarration":false,"actualSubdomain":"true-sense-inc","customDomains":[],"gitSource":{"type":"github","owner":"inttegro","repo":"httpapi","deployBranch":"master","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":"","_id":"6afef2fb9cca133a8d61660f"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b081ae6da7e75b2f5c57670","clientVersion":"0.0.4410","searchFilterCounts":[{"language":"default","tag":"Guides","count":8},{"language":"default","tag":"Reference","count":6},{"language":"default","tag":"Contracts","count":4},{"language":"default","tag":"Runtime","count":3},{"language":"default","tag":"Start here","count":3},{"language":"default","tag":"Specification","count":3},{"language":"default","tag":"Publishing","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"httpapi/why-httpapi","slug":"/httpapi/why-httpapi","pageMetadata":{"title":"Why HTTPAPI exists","sidebarTitle":"Why HTTPAPI","description":"Stop maintaining separate definitions for routing, validation, authorization, response shaping, and OpenAPI.","href":"/httpapi/why-httpapi"},"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: \"Stop maintaining separate definitions for routing, validation, authorization, response shaping, and OpenAPI.\"\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`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Table,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Most HTTP services describe one endpoint several times. The router knows the path, validation code knows the payload, authorization code knows the caller, and an OpenAPI file tries to repeat all of it. Those copies eventually disagree.`}),`\n`,_jsx(_components.p,{children:`HTTPAPI makes the executable endpoint contract the shared source.`}),`\n`,_jsx(Heading,{level:`2`,id:`replace-scattered-policy-with-one-contract`,children:`Replace scattered policy with one contract`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Concern`}),_jsx(_components.th,{children:`Without a shared contract`}),_jsx(_components.th,{children:`With HTTPAPI`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Input`}),_jsx(_components.td,{children:`Decode JSON, then remember to validate it`}),_jsx(_components.td,{children:`Parse once into a complete Go value`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Access`}),_jsx(_components.td,{children:`Repeat checks inside handlers`}),_jsx(_components.td,{children:`Declare authorization and callers on the endpoint`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Output`}),_jsx(_components.td,{children:`Build maps and remove sensitive fields manually`}),_jsx(_components.td,{children:`Project a declared shape for the active caller`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Runtime safety`}),_jsx(_components.td,{children:`Keep limits, timeouts, and idempotency in side tables`}),_jsx(_components.td,{children:`Store them beside the endpoint`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`API description`}),_jsx(_components.td,{children:`Maintain a separate OpenAPI document`}),_jsx(_components.td,{children:`Transcribe the mounted contracts`})]})]})]}),`\n`,_jsx(_components.p,{children:`The result is not less domain code. It is less duplicated HTTP policy around that code.`}),`\n`,_jsx(Heading,{level:`2`,id:`keep-business-work-outside-httpapi`,children:`Keep business work outside HTTPAPI`}),`\n`,_jsx(_components.p,{children:`HTTPAPI owns the boundary around a handler. It can establish that a request is well-formed, authenticated, available to its caller, within limits, and safe to execute once. It does not decide whether a customer owns a resource or whether an order may change state.`}),`\n`,_jsx(_components.p,{children:`Those decisions still belong to the domain service, where current application state and transactions are available.`}),`\n`,_jsx(Heading,{level:`2`,id:`treat-openapi-as-an-output`,children:`Treat OpenAPI as an output`}),`\n`,_jsx(_components.p,{children:`OpenAPI is useful for client generation and API discovery, but it cannot represent every runtime rule without extensions or loss. HTTPAPI therefore transcribes OpenAPI from the executable contract. OpenAPI does not become the runtime model.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`If you want a Go service to execute and publish the same contract, start with the `,_jsx(_components.a,{href:`/httpapi/quickstart`,children:`quickstart`}),`. If you need a language-neutral implementation contract, use the `,_jsx(_components.a,{href:`/httpapi/specification`,children:`HTTPAPI specification`}),`.`]})})]})}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":"Why HTTPAPI exists","sidebarTitle":"Why HTTPAPI","description":"Stop maintaining separate definitions for routing, validation, authorization, response shaping, and OpenAPI.","href":"/httpapi/why-httpapi"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Replace scattered policy with one contract","slug":"replace-scattered-policy-with-one-contract","depth":2,"children":[]},{"title":"Keep business work outside HTTPAPI","slug":"keep-business-work-outside-httpapi","depth":2,"children":[]},{"title":"Treat OpenAPI as an output","slug":"treat-openapi-as-an-output","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"true-sense-inc","siteName":"HTTPAPI","title":"Why HTTPAPI exists - HTTPAPI","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T14:52:09.238Z","originalFileLocation":"httpapi/why-httpapi.md"},"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=\"Stop maintaining separate definitions for routing, validation, authorization, response shaping, and OpenAPI.\">\u003cmeta data-mint-head name=\"application-name\" content=\"HTTPAPI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/true-sense-inc/qabuOftWh-AfBR3n/_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/true-sense-inc/qabuOftWh-AfBR3n/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/true-sense-inc/qabuOftWh-AfBR3n/_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/true-sense-inc/qabuOftWh-AfBR3n/_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/true-sense-inc/qabuOftWh-AfBR3n/_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/true-sense-inc/qabuOftWh-AfBR3n/_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/true-sense-inc/qabuOftWh-AfBR3n/_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/true-sense-inc/qabuOftWh-AfBR3n/_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/true-sense-inc/qabuOftWh-AfBR3n/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Why HTTPAPI exists - HTTPAPI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Stop maintaining separate definitions for routing, validation, authorization, response shaping, and OpenAPI.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"HTTPAPI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://os.inttegro.dev/httpapi/why-httpapi\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://true-sense-inc.mintlify.site/_mintlify/api/og/v2?division=Start+here\u0026amp;title=Why+HTTPAPI+exists\u0026amp;description=Stop+maintaining+separate+definitions+for+routing%2C+validation%2C+authorization%2C+response+shaping%2C+and+OpenAPI.\u0026amp;theme=84100d2259f2b7c07db0492d\u0026amp;signature=abd37163c972e6d0d087b60ef269b15665ad484fa0045a0fb4784f3dfecdcc7f\">\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=\"Why HTTPAPI exists - HTTPAPI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Stop maintaining separate definitions for routing, validation, authorization, response shaping, and OpenAPI.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://true-sense-inc.mintlify.site/_mintlify/api/og/v2?division=Start+here\u0026amp;title=Why+HTTPAPI+exists\u0026amp;description=Stop+maintaining+separate+definitions+for+routing%2C+validation%2C+authorization%2C+response+shaping%2C+and+OpenAPI.\u0026amp;theme=84100d2259f2b7c07db0492d\u0026amp;signature=abd37163c972e6d0d087b60ef269b15665ad484fa0045a0fb4784f3dfecdcc7f\">\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/true-sense-inc/qabuOftWh-AfBR3n/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"HTTPAPI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://os.inttegro.dev/httpapi/why-httpapi\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/httpapi/why-httpapi.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://os.inttegro.dev/#organization\",\"name\":\"HTTPAPI\",\"url\":\"https://os.inttegro.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/true-sense-inc/NCRVkIIygoLkZ0Kw/logo-dark.svg?fit=max\u0026auto=format\u0026n=NCRVkIIygoLkZ0Kw\u0026q=85\u0026s=3218a45f3312e49aa2c1e6554cab546e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://os.inttegro.dev#website\",\"name\":\"HTTPAPI\",\"url\":\"https://os.inttegro.dev\",\"publisher\":{\"@id\":\"https://os.inttegro.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://os.inttegro.dev/httpapi/why-httpapi#webpage\",\"url\":\"https://os.inttegro.dev/httpapi/why-httpapi\",\"name\":\"Why HTTPAPI exists\",\"description\":\"Stop maintaining separate definitions for routing, validation, authorization, response shaping, and OpenAPI.\",\"dateModified\":\"2026-11-19T14:52:09.238Z\",\"isPartOf\":{\"@id\":\"https://os.inttegro.dev#website\"},\"breadcrumb\":{\"@id\":\"https://os.inttegro.dev/httpapi/why-httpapi#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://os.inttegro.dev/httpapi/why-httpapi#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HTTPAPI\",\"item\":\"https://os.inttegro.dev\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Why HTTPAPI exists\",\"item\":\"https://os.inttegro.dev/httpapi/why-httpapi\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://os.inttegro.dev/httpapi/why-httpapi#article\",\"headline\":\"Why HTTPAPI exists\",\"name\":\"Why HTTPAPI exists\",\"description\":\"Stop maintaining separate definitions for routing, validation, authorization, response shaping, and OpenAPI.\",\"url\":\"https://os.inttegro.dev/httpapi/why-httpapi\",\"mainEntityOfPage\":{\"@id\":\"https://os.inttegro.dev/httpapi/why-httpapi#webpage\"},\"dateModified\":\"2026-11-19T14:52:09.238Z\",\"publisher\":{\"@id\":\"https://os.inttegro.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://os.inttegro.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"HTTPAPI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"HTTPAPI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/httpapi/why-httpapi.md","siteName":"HTTPAPI","nav":{"global":null,"groups":[{"group":"Start here","pages":[{"title":"Why HTTPAPI exists","sidebarTitle":"Why HTTPAPI","href":"/httpapi/why-httpapi"},{"title":"Run your first endpoint","sidebarTitle":"Quickstart","description":"Install HTTPAPI, serve a typed JSON endpoint, and call it locally.","href":"/httpapi/quickstart"},{"title":"Know where each concern belongs","sidebarTitle":"Mental model","href":"/httpapi/mental-model"}]},{"group":"Guides","pages":[{"group":"Contracts","pages":[{"title":"Parse requests into usable values","sidebarTitle":"Requests","href":"/httpapi/request-contracts"},{"title":"Establish caller authority","sidebarTitle":"Callers","href":"/httpapi/callers-and-authority"},{"title":"Shape responses at the boundary","sidebarTitle":"Responses","href":"/httpapi/response-projection"},{"title":"Return errors clients can act on","sidebarTitle":"Errors","href":"/httpapi/errors"}]},{"group":"Runtime","pages":[{"title":"Define the endpoint runtime contract","sidebarTitle":"Endpoint contract","href":"/httpapi/endpoint-runtime"},{"title":"Make writes safe to retry","sidebarTitle":"Idempotency","href":"/httpapi/idempotency"},{"title":"Wire HTTPAPI into a service","sidebarTitle":"Server setup","href":"/httpapi/server-wiring"}]},{"group":"Publishing","pages":[{"title":"Publish OpenAPI from the running contract","sidebarTitle":"OpenAPI","href":"/httpapi/openapi-transcription"}]}]},{"group":"Reference","pages":[{"title":"Go package map","sidebarTitle":"Packages","href":"/httpapi/packages"},{"title":"Current boundaries","sidebarTitle":"Boundaries","href":"/httpapi/current-boundaries"},{"group":"Specification","pages":[{"title":"HTTPAPI specification","sidebarTitle":"Overview","href":"/httpapi/specification/index"},{"title":"HTTPAPI 0.2","sidebarTitle":"0.2","tag":"Current","href":"/httpapi/specification/v0.2"},{"title":null,"href":"/httpapi/specification/v0.1"}]},{"title":null,"href":"/httpapi/profiles/openapi-3.1-v0.1"}]}]},"basePath":"","title":"Why HTTPAPI exists - HTTPAPI","deploymentId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","buildId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","dynamics":[],"chunks":[]}