Create and manage tracked short links and understand the Link object returned by the Heymarket API.
The Links API lets you create Heymarket short URLs, attribute them to messaging activity, update their destinations, and inspect their latest click activity.
Link tracking must be enabled for your team. Requests from teams without the feature return 403 with the message link_tracking_not_available.
Every link belongs to the team identified by your API credentials. You cannot retrieve, update, or delete another team’s links. Cross-team lookups return 404.
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Heymarket API Documentation","colors":{"primary":"#FACC15","light":"#FEF08A","dark":"#0F0F0F"},"logo":"https://mintcdn.com/heymarket/GJKeY5d8-xGJrsi0/images/logo-hey-black.svg?fit=max\u0026auto=format\u0026n=GJKeY5d8-xGJrsi0\u0026q=85\u0026s=f94b7dce9d8015a0cc51ec555b7e3019","favicon":"https://mintcdn.com/heymarket/GJKeY5d8-xGJrsi0/images/logo-hey-black.svg?fit=max\u0026auto=format\u0026n=GJKeY5d8-xGJrsi0\u0026q=85\u0026s=f94b7dce9d8015a0cc51ec555b7e3019","navbar":{"links":[{"href":"/api-reference/openapi/heymarket-openapi-3.1.2.yaml","label":"OpenAPI spec"},{"href":"https://www.heymarket.com/","label":"Website"},{"href":"https://www.heymarket.com/demo/","label":"Book a demo"}],"primary":{"type":"button","label":"Sign in","href":"https://app.heymarket.com"}},"footer":{"socials":{"website":"https://www.heymarket.com/"},"links":[{"header":"Heymarket","items":[{"label":"Website","href":"https://www.heymarket.com/"},{"label":"Sign in","href":"https://app.heymarket.com"},{"label":"Book a demo","href":"https://www.heymarket.com/demo"},{"label":"Contact sales","href":"https://www.heymarket.com/contact-sales"}]}]},"contextual":{"options":["download-spec","copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"heymarket","hasAudioNarration":false,"actualSubdomain":"heymarket","customDomains":["developers.heymarket.com"],"gitSource":{"type":"github","owner":"commonsun","repo":"docs","deployBranch":"master","isPrivate":true,"contentDirectory":"","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad932841429ac1451a7e171","collectionId":"fcfda4cd-31cf-4b0d-8360-3ff6ae5e5e0a","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad932841429ac1451a7e171"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad932841429ac1451a7e171","clientVersion":"0.0.3926","searchFilterCounts":[{"language":"default","tag":"API Reference","count":80},{"language":"default","tag":"Contacts","count":26},{"language":"default","tag":"Other Resources","count":15},{"language":"default","tag":"Documentation","count":15},{"language":"default","tag":"Lists","count":10},{"language":"default","tag":"Conversations","count":9},{"language":"default","tag":"Links","count":8},{"language":"default","tag":"Templates","count":7},{"language":"default","tag":"Core Concepts","count":6},{"language":"default","tag":"Messages","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":"editor-v7-file-tree","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":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"editor-agent-model-picker","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/links/overview","slug":"/api-reference/links/overview","pageMetadata":{"title":"Links API overview and object","sidebarTitle":"Overview","description":"Create and manage tracked short links and understand the Link object returned by the Heymarket API.","href":"/api-reference/links/overview"},"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: \"Create and manage tracked short links and understand the Link object returned by the Heymarket API.\"\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`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Info,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The Links API lets you create Heymarket short URLs, attribute them to messaging activity, update their destinations, and inspect their latest click activity.`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Link tracking must be enabled for your team. Requests from teams without the feature return `,_jsx(_components.code,{children:`403`}),` with the message `,_jsx(_components.code,{children:`link_tracking_not_available`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Every link belongs to the team identified by your API credentials. You cannot retrieve, update, or delete another team’s links. Cross-team lookups return `,_jsx(_components.code,{children:`404`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-link-object`,children:`The Link object`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Unique identifier for the link.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`short_code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Code segment of the short URL.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`short_url`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Full short URL to include in messages.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`original_url`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Destination URL the short link redirects to.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`team_id`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Identifier of the team that owns the link.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`target`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Target the link is attributed to, when present.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`conversation_id`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Conversation the link is attributed to, when present.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`broadcast_id`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Broadcast the link is attributed to, when present.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`campaign_step_id`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Campaign step the link is attributed to, when present.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`template_id`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Template the link is attributed to, when present.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`last_visited_at`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ISO 8601 timestamp of the most recent click. Omitted when the link has not been clicked.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ISO 8601 timestamp when the link was created.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`endpoints`,children:`Endpoints`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Endpoint`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/links/create`,children:_jsx(_components.code,{children:`/v1/link`})})}),_jsx(_components.td,{children:`Create a tracked short link.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/links/bulk-create`,children:_jsx(_components.code,{children:`/v1/batch/links`})})}),_jsx(_components.td,{children:`Create up to five tracked short links.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/links/get`,children:_jsx(_components.code,{children:`/v1/link/{id}`})})}),_jsx(_components.td,{children:`Get a link by ID.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/links/get-by-short-code`,children:_jsx(_components.code,{children:`/v1/link/code/{code}`})})}),_jsx(_components.td,{children:`Get a link by short code.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PUT`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/links/update`,children:_jsx(_components.code,{children:`/v1/link/{id}`})})}),_jsx(_components.td,{children:`Update a link’s destination URL.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DELETE`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/links/delete`,children:_jsx(_components.code,{children:`/v1/link/{id}`})})}),_jsx(_components.td,{children:`Delete a link.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/links/list`,children:_jsx(_components.code,{children:`/v1/links`})})}),_jsx(_components.td,{children:`Paginate your team’s links.`})]})]})]})]})}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":"Links API overview and object","sidebarTitle":"Overview","description":"Create and manage tracked short links and understand the Link object returned by the Heymarket API.","href":"/api-reference/links/overview"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"The Link object","slug":"the-link-object","depth":2,"children":[]},{"title":"Endpoints","slug":"endpoints","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"heymarket","siteName":"Heymarket API Documentation","title":"Links API overview and object - Heymarket API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-17T17:17:29.084Z","originalFileLocation":"api-reference/links/overview.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=\"Create and manage tracked short links and understand the Link object returned by the Heymarket API.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Heymarket API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/heymarket/PnhlhpViHYUR1Ls5/_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/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/heymarket/PnhlhpViHYUR1Ls5/_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/heymarket/PnhlhpViHYUR1Ls5/_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/heymarket/PnhlhpViHYUR1Ls5/_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/heymarket/PnhlhpViHYUR1Ls5/_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/heymarket/PnhlhpViHYUR1Ls5/_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/heymarket/PnhlhpViHYUR1Ls5/_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/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Links API overview and object - Heymarket API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create and manage tracked short links and understand the Link object returned by the Heymarket API.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Heymarket API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.heymarket.com/api-reference/links/overview\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://heymarket.mintlify.app/_mintlify/api/og/v2?division=Links\u0026amp;title=Links+API+overview+and+object\u0026amp;description=Create+and+manage+tracked+short+links+and+understand+the+Link+object+returned+by+the+Heymarket+API.\u0026amp;theme=5266ec4da9ceb44c2904310e\u0026amp;signature=818429822af369391912951c1bcf896c9f2acfc9ab1b14c15793b5464aee26b8\">\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=\"Links API overview and object - Heymarket API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create and manage tracked short links and understand the Link object returned by the Heymarket API.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://heymarket.mintlify.app/_mintlify/api/og/v2?division=Links\u0026amp;title=Links+API+overview+and+object\u0026amp;description=Create+and+manage+tracked+short+links+and+understand+the+Link+object+returned+by+the+Heymarket+API.\u0026amp;theme=5266ec4da9ceb44c2904310e\u0026amp;signature=818429822af369391912951c1bcf896c9f2acfc9ab1b14c15793b5464aee26b8\">\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/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Heymarket API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FACC15\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.heymarket.com/api-reference/links/overview\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/links/overview.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.heymarket.com/#organization\",\"name\":\"Heymarket API Documentation\",\"url\":\"https://developers.heymarket.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/heymarket/GJKeY5d8-xGJrsi0/images/logo-hey-black.svg?fit=max\u0026auto=format\u0026n=GJKeY5d8-xGJrsi0\u0026q=85\u0026s=f94b7dce9d8015a0cc51ec555b7e3019\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.heymarket.com#website\",\"name\":\"Heymarket API Documentation\",\"url\":\"https://developers.heymarket.com\",\"publisher\":{\"@id\":\"https://developers.heymarket.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.heymarket.com/api-reference/links/overview#webpage\",\"url\":\"https://developers.heymarket.com/api-reference/links/overview\",\"name\":\"Links API overview and object\",\"description\":\"Create and manage tracked short links and understand the Link object returned by the Heymarket API.\",\"dateModified\":\"2026-07-17T17:17:29.084Z\",\"isPartOf\":{\"@id\":\"https://developers.heymarket.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.heymarket.com/api-reference/links/overview#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.heymarket.com/api-reference/links/overview#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Heymarket API Documentation\",\"item\":\"https://developers.heymarket.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Links API overview and object\",\"item\":\"https://developers.heymarket.com/api-reference/links/overview\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://developers.heymarket.com/api-reference/links/overview#article\",\"headline\":\"Links API overview and object\",\"name\":\"Links API overview and object\",\"description\":\"Create and manage tracked short links and understand the Link object returned by the Heymarket API.\",\"url\":\"https://developers.heymarket.com/api-reference/links/overview\",\"mainEntityOfPage\":{\"@id\":\"https://developers.heymarket.com/api-reference/links/overview#webpage\"},\"dateModified\":\"2026-07-17T17:17:29.084Z\",\"publisher\":{\"@id\":\"https://developers.heymarket.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.heymarket.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Heymarket API Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Heymarket API Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Contacts","pages":[{"title":"Contacts API overview","sidebarTitle":"Overview","href":"/api-reference/contacts/overview"},{"title":"Create contact","sidebarTitle":"Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact","href":"/api-reference/contacts/create"},{"title":"Create contact (v2)","sidebarTitle":"Create v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contact","href":"/api-reference/contacts/create-v2"},{"title":"Get contact","sidebarTitle":"Get","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/contact/{id}","href":"/api-reference/contacts/get"},{"title":"Get contact by phone or ID","sidebarTitle":"Get by Phone","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact/get","href":"/api-reference/contacts/get-by-phone-or-id"},{"title":"Get contact (v2)","sidebarTitle":"Get v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v2/contact/{contactID}","href":"/api-reference/contacts/get-v2"},{"title":"List contacts","sidebarTitle":"List","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contacts","href":"/api-reference/contacts/list"},{"title":"List contacts (v2)","sidebarTitle":"List v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contacts/list","href":"/api-reference/contacts/list-v2"},{"title":"Count contacts","sidebarTitle":"Count","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contacts/count","href":"/api-reference/contacts/count"},{"title":"List contact fields","sidebarTitle":"Contact Fields","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact-fields","href":"/api-reference/contacts/contact-fields"},{"title":"Create contact fields","sidebarTitle":"Create Contact Fields","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contacts/fields","href":"/api-reference/contacts/create-contact-fields"},{"title":"Update contact","sidebarTitle":"Update","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v1/contact/{id}","href":"/api-reference/contacts/update"},{"title":"Update contact (v2)","sidebarTitle":"Update v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v2/contact/{contactID}","href":"/api-reference/contacts/update-v2"},{"title":"Delete contact","sidebarTitle":"Delete","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/contact/{id}","href":"/api-reference/contacts/delete"},{"title":"Delete contact (v2)","sidebarTitle":"Delete v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v2/contact/{contactID}","href":"/api-reference/contacts/delete-v2"},{"title":"Batch create contacts","sidebarTitle":"Batch Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/batch/contacts","href":"/api-reference/contacts/bulk"},{"title":"Bulk create contacts (v2)","sidebarTitle":"Bulk Create v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contacts","href":"/api-reference/contacts/bulk-v2"},{"title":"Bulk delete contacts (v2)","sidebarTitle":"Bulk Delete v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v2/contacts","href":"/api-reference/contacts/bulk-delete-v2"},{"title":"Search contacts","sidebarTitle":"Search","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contacts/search","href":"/api-reference/contacts/search"},{"title":"Create contact channel","sidebarTitle":"Create Channel","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contact/{contactID}/channel","href":"/api-reference/contacts/channels"},{"title":"Update contact channel","sidebarTitle":"Update Channel","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v2/contact/{contactID}/channel","href":"/api-reference/contacts/channels-update"},{"title":"Get contact channel","sidebarTitle":"Get Channel","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v2/contact/{contactID}/channel/{channelType}","href":"/api-reference/contacts/channels-get"},{"title":"List contact channels","sidebarTitle":"List Channels","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v2/contact/{contactID}/channels","href":"/api-reference/contacts/channels-list"},{"title":"Delete contact channel","sidebarTitle":"Delete Channel","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v2/contact/{contactID}/channel/{channelType}","href":"/api-reference/contacts/channels-delete"},{"title":"Get contact status","sidebarTitle":"Get Status","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact/status","href":"/api-reference/contacts/status"},{"title":"Set contact status","sidebarTitle":"Set Status","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact/set_status","href":"/api-reference/contacts/set-status"}]},{"group":"Messages","pages":[{"title":"Send SMS and MMS messages","sidebarTitle":"Send Message","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/message/send","href":"/api-reference/messages/send"},{"title":"Send email messages","sidebarTitle":"Send Email","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/email/send","href":"/api-reference/messages/send-email"},{"title":"Get message history from a conversation","sidebarTitle":"Get History","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/messages","href":"/api-reference/messages/get-history"},{"title":"List all messages","sidebarTitle":"List All","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/messages/all","href":"/api-reference/messages/list-all"},{"title":"Count messages","sidebarTitle":"Count","description":"Get the count of team messages that match the pagination filters.","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/messages/all/count","href":"/api-reference/messages/count"}]},{"group":"Links","pages":[{"title":"Links API overview and object","sidebarTitle":"Overview","href":"/api-reference/links/overview"},{"title":"Create link","sidebarTitle":"Create","description":"Create a tracked short link for a destination URL.","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/link","href":"/api-reference/links/create"},{"title":"Bulk create links","sidebarTitle":"Bulk Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/batch/links","href":"/api-reference/links/bulk-create"},{"title":"Get link","sidebarTitle":"Get by ID","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/link/{id}","href":"/api-reference/links/get"},{"title":"Get link by short code","sidebarTitle":"Get by Short Code","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/link/code/{code}","href":"/api-reference/links/get-by-short-code"},{"title":"Update link URL","sidebarTitle":"Update","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v1/link/{id}","href":"/api-reference/links/update"},{"title":"Delete link","sidebarTitle":"Delete","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/link/{id}","href":"/api-reference/links/delete"},{"title":"List links","sidebarTitle":"List","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/links","href":"/api-reference/links/list"}]},{"group":"Conversations","pages":[{"title":"List conversations","sidebarTitle":"List","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations","href":"/api-reference/conversations/list"},{"title":"Count conversations","sidebarTitle":"Count","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/count","href":"/api-reference/conversations/count"},{"title":"Get conversation","sidebarTitle":"Get","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/conversations/{id}","href":"/api-reference/conversations/get"},{"title":"Open conversation","sidebarTitle":"Open","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/open","href":"/api-reference/conversations/open-close"},{"title":"Close conversation","sidebarTitle":"Close","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/close","href":"/api-reference/conversations/close"},{"title":"Mark conversation as read","sidebarTitle":"Mark Read","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/read","href":"/api-reference/conversations/mark-read"},{"title":"Mark conversation as unread","sidebarTitle":"Mark Unread","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/unread","href":"/api-reference/conversations/mark-unread"},{"title":"Reassign conversation","sidebarTitle":"Reassign","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/reassign","href":"/api-reference/conversations/reassign"},{"title":"Transfer conversation","sidebarTitle":"Transfer","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/transfer","href":"/api-reference/conversations/transfer"}]},{"group":"Lists","pages":[{"title":"Lists API overview","sidebarTitle":"Overview","href":"/api-reference/lists/overview"},{"title":"Paginate lists","sidebarTitle":"Paginate","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/lists/paginate","href":"/api-reference/lists/paginate-v2"},{"title":"Count lists","sidebarTitle":"Count","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/lists/count","href":"/api-reference/lists/count-v2"},{"title":"Search lists","sidebarTitle":"Search","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/lists/search","href":"/api-reference/lists/search-v2"},{"title":"Create list","sidebarTitle":"Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/lists","href":"/api-reference/lists/create"},{"title":"Update list","sidebarTitle":"Update","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v2/lists/{id}","href":"/api-reference/lists/update"},{"title":"Delete list","sidebarTitle":"Delete","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v2/lists/{id}","href":"/api-reference/lists/delete"},{"title":"Paginate lists (v1)","sidebarTitle":"Paginate (v1)","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/lists","href":"/api-reference/lists/list"},{"title":"Count lists (v1)","sidebarTitle":"Count (v1)","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/lists/count","href":"/api-reference/lists/count"},{"title":"Search lists (v1)","sidebarTitle":"Search (v1)","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/search/lists","href":"/api-reference/lists/search"}]},{"group":"Templates","pages":[{"title":"Templates API overview and objects","sidebarTitle":"Overview","href":"/api-reference/templates/overview"},{"title":"Template operations","sidebarTitle":"Operations","href":"/api-reference/templates/manage"},{"title":"List templates","sidebarTitle":"List","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/templates","href":"/api-reference/templates/list"},{"title":"Create template","sidebarTitle":"Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/template","href":"/api-reference/templates/create"},{"title":"Get template","sidebarTitle":"Get","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/template/{id}","href":"/api-reference/templates/get"},{"title":"Update template","sidebarTitle":"Update","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v1/template/{id}","href":"/api-reference/templates/update"},{"title":"Delete template","sidebarTitle":"Delete","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/template/{id}","href":"/api-reference/templates/delete"}]},{"group":"Other Resources","pages":[{"title":"Create scheduled message","sidebarTitle":"Create Schedule","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/schedule","href":"/api-reference/schedule"},{"title":"Get scheduled message","sidebarTitle":"Get Schedule","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/schedule/{id}","href":"/api-reference/schedule-get"},{"title":"Update scheduled message","sidebarTitle":"Update Schedule","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v1/schedule/{id}","href":"/api-reference/schedule-update"},{"title":"Delete scheduled message","sidebarTitle":"Delete Schedule","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/schedule/{id}","href":"/api-reference/schedule-delete"},{"title":"Get inboxes","sidebarTitle":"Inboxes","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/inboxes","href":"/api-reference/inboxes"},{"title":"Get team","sidebarTitle":"Team","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/team","href":"/api-reference/team"},{"title":"Get users","sidebarTitle":"Users","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/users/get","href":"/api-reference/users"},{"title":"Update users","sidebarTitle":"Update Users","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/users/update","href":"/api-reference/users-update"},{"title":"List tags","sidebarTitle":"Tags","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/tags","href":"/api-reference/tags"},{"title":"Create tag","sidebarTitle":"Create Tag","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/tag","href":"/api-reference/tags-create"},{"title":"Get tag","sidebarTitle":"Get Tag","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/tag/{id}","href":"/api-reference/tags-get"},{"title":"Delete tag","sidebarTitle":"Delete Tag","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/tag/{id}","href":"/api-reference/tags-delete"},{"title":"List surveys","sidebarTitle":"Surveys","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/surveys","href":"/api-reference/surveys"},{"title":"Get survey","sidebarTitle":"Get Survey","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/survey/{id}","href":"/api-reference/surveys-get"},{"title":"Receive webhook event","sidebarTitle":"Webhook Event","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml webhook heymarketEvent","href":"/api-reference/webhooks"}]}]}]},"title":"Links API overview and object - Heymarket API Documentation","buildId":"dpl_9DauxEjb9gzCtcuhPQFbquJvx7FJ","deploymentId":"dpl_9DauxEjb9gzCtcuhPQFbquJvx7FJ","dynamics":[],"chunks":[]}