{
"error": {
"code": "bad_request",
"message": "The requested resource was not found.",
"doc_url": "https://dub.co/docs/api-reference/errors#bad-request"
}
}
{
"error": {
"code": "unauthorized",
"message": "The requested resource was not found.",
"doc_url": "https://dub.co/docs/api-reference/errors#unauthorized"
}
}
{
"error": {
"code": "forbidden",
"message": "The requested resource was not found.",
"doc_url": "https://dub.co/docs/api-reference/errors#forbidden"
}
}
{
"error": {
"code": "not_found",
"message": "The requested resource was not found.",
"doc_url": "https://dub.co/docs/api-reference/errors#not-found"
}
}
{
"error": {
"code": "conflict",
"message": "The requested resource was not found.",
"doc_url": "https://dub.co/docs/api-reference/errors#conflict"
}
}
{
"error": {
"code": "invite_expired",
"message": "The requested resource was not found.",
"doc_url": "https://dub.co/docs/api-reference/errors#invite-expired"
}
}
{
"error": {
"code": "unprocessable_entity",
"message": "The requested resource was not found.",
"doc_url": "https://dub.co/docs/api-reference/errors#unprocessable-entity"
}
}
{
"error": {
"code": "rate_limit_exceeded",
"message": "The requested resource was not found.",
"doc_url": "https://dub.co/docs/api-reference/errors#rate-limit_exceeded"
}
}
{
"error": {
"code": "internal_server_error",
"message": "The requested resource was not found.",
"doc_url": "https://dub.co/docs/api-reference/errors#internal-server_error"
}
}
You can retrieve a link by providing one of the following as a query parameter:
domain and key.
linkId.
externalId.
Authorizations
Authorization
string
header
required
Default authentication mechanism
Query Parameters
domain
string
The domain of the link to retrieve. E.g. for d.to/github, the domain is d.to.
Minimum string length: 1
key
string
The key of the link to retrieve. E.g. for d.to/github, the key is github.
Minimum string length: 1
linkId
string
The unique ID of the short link.
Example:
"clux0rgak00011..."
externalId
string
This is the ID of the link in the your database.
Example:
"123456"
Response
The retrieved link
id
string
required
The unique ID of the short link.
domain
string
required
The domain of the short link. If not provided, the primary domain for the workspace will be used (or dub.sh if the workspace has no domains).
key
string
required
The short link slug. If not provided, a random 7-character slug will be generated.
url
string<uri>
required
The destination URL of the short link.
trackConversion
boolean
default:false
required
Whether to track conversions for the short link.
externalId
string | null
required
The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace.
tenantId
string | null
required
The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant.
programId
string | null
required
The ID of the program the short link is associated with.
partnerId
string | null
required
The ID of the partner the short link is associated with.
archived
boolean
default:false
required
Whether the short link is archived.
expiresAt
string | null
required
The date and time when the short link will expire in ISO-8601 format.
expiredUrl
string<uri> | null
required
The URL to redirect to when the short link has expired.
disabledAt
string | null
required
The date and time when the short link was disabled. When a short link is disabled, it will redirect to its domain's not found URL, and its stats will be excluded from your overall stats.
password
string | null
required
The password required to access the destination URL of the short link.
proxy
boolean
default:false
required
Whether the short link uses Custom Link Previews feature.
title
string | null
required
The title of the short link. Will be used for Custom Link Previews if proxy is true.
description
string | null
required
The description of the short link. Will be used for Custom Link Previews if proxy is true.
image
string | null
required
The image of the short link. Will be used for Custom Link Previews if proxy is true.
video
string | null
required
The custom link preview video (og:video). Will be used for Custom Link Previews if proxy is true. Learn more: https://d.to/og
rewrite
boolean
default:false
required
Whether the short link uses link cloaking.
doIndex
boolean
default:false
required
Whether to allow search engines to index the short link.
ios
string | null
required
The iOS destination URL for the short link for iOS device targeting.
android
string | null
required
The Android destination URL for the short link for Android device targeting.
geo
object | null
required
Geo targeting information for the short link in JSON format {[COUNTRY]: https://example.com }. See https://d.to/geo for more information.
Show child attributes
publicStats
boolean
default:false
required
Whether the short link's stats are publicly accessible.
tags
LinkTag · object[] | null
required
The tags assigned to the short link.
Show child attributes
folderId
string | null
required
The unique ID of the folder assigned to the short link.
webhookIds
string[]
required
The IDs of the webhooks that the short link is associated with.
comments
string | null
required
The comments for the short link.
shortLink
string<uri>
required
The full URL of the short link, including the https protocol (e.g. https://dub.sh/try).
qrCode
string<uri>
required
The full URL of the QR code for the short link (e.g. https://api.dub.co/qr?url=https://dub.sh/try).
utm_source
string | null
required
The UTM source of the short link.
utm_medium
string | null
required
The UTM medium of the short link.
utm_campaign
string | null
required
The UTM campaign of the short link.
utm_term
string | null
required
The UTM term of the short link.
utm_content
string | null
required
The UTM content of the short link.
userId
string | null
required
The user ID of the creator of the short link.
workspaceId
string
required
The workspace ID of the short link.
clicks
number
default:0
required
The number of clicks on the short link.
leads
number
default:0
required
The number of leads the short link has generated.
conversions
number
default:0
required
The number of leads that converted to paying customers.
sales
number
default:0
required
The total number of sales (includes recurring sales) generated by the short link.
saleAmount
number
default:0
required
The total dollar value of sales (in cents) generated by the short link.
lastClicked
string | null
required
The date and time when the short link was last clicked.
createdAt
string
required
The date and time when the short link was created.
updatedAt
string
required
The date and time when the short link was last updated.
tagId
string | null
required
deprecated
Deprecated: Use tags instead. The unique ID of the tag assigned to the short link.
projectId
string
required
deprecated
Deprecated: Use workspaceId instead. The project ID of the short link.
testVariants
object[] | null
An array of A/B test URLs and the percentage of traffic to send to each URL.
The date and time when the tests were or will be completed.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Dub Docs","colors":{"primary":"#eb5611","light":"#eb5611","dark":"#eb5611"},"favicon":"/logos/favicon.png","logo":{"light":"https://mintcdn.com/speakeasy-20cf8bdf/_E--K8tjR4nKi8VA/logos/wordmark.svg?fit=max\u0026auto=format\u0026n=_E--K8tjR4nKi8VA\u0026q=85\u0026s=0a1a92eb58e30562139bd8d27351ee0a","dark":"https://mintcdn.com/speakeasy-20cf8bdf/_E--K8tjR4nKi8VA/logos/wordmark-dark.svg?fit=max\u0026auto=format\u0026n=_E--K8tjR4nKi8VA\u0026q=85\u0026s=50f1a5e1d39c867862ea7ae3f98d23a7","href":"https://dub.co/home"},"api":{"openapi":"https://spec.speakeasy.com/dub/dub/dub-with-code-samples"},"background":{"image":"https://mintlify.s3.us-west-1.amazonaws.com/speakeasy-20cf8bdf/images/background.png","decoration":null},"navbar":{"links":[{"label":"Support","href":"mailto:support@dub.co"},{"label":"Help Center","href":"https://dub.co/help"}],"primary":{"type":"button","label":"Dashboard","href":"https://d.to/try"}},"footer":{"socials":{"github":"https://github.com/dubinc/dub","linkedin":"https://www.linkedin.com/company/dubinc","twitter":"https://twitter.com/dubdotco","website":"https://dub.co"}},"integrations":{"ga4":{"measurementId":"G-QTBMHSTT3W"},"plausible":{"domain":"dub.co"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"speakeasy-20cf8bdf","hasAudioNarration":false,"actualSubdomain":"speakeasy-20cf8bdf","customDomains":[],"gitSource":{"type":"github","owner":"speakeasy-sdks","repo":"dub-docs","deployBranch":"code-words-demo","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED"}},"buildId":"6ae925d6b6c76232801082ef:success","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"API Reference","count":38},{"language":"default","tag":"Documentation","count":33},{"language":"default","tag":"SDKs","count":25},{"language":"default","tag":"Links","count":14},{"language":"default","tag":"Quickstarts","count":14},{"language":"default","tag":"Conversions","count":13},{"language":"default","tag":"Integrations","count":10},{"language":"default","tag":"List of integrations","count":8},{"language":"default","tag":"Client-side SDKs","count":8},{"language":"default","tag":"Concepts","count":7}]},"assistantConfig":{},"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":"sso-setup-deadline-banner","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":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoint/retrieve-a-link","slug":"/api-reference/endpoint/retrieve-a-link","pageMetadata":{"openapi":"get /links/info","og:title":"Get link info with the Dub API - API Reference","title":"Retrieve a link","description":"Retrieve the info for a link.","href":"/api-reference/endpoint/retrieve-a-link"},"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: \"Retrieve the info for a link.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components};return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`You can retrieve a link by providing one of the following as a query parameter:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`domain`}),` and `,_jsx(_components.code,{children:`key`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`linkId`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`externalId`}),`.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"get /links/info","og:title":"Get link info with the Dub API - API Reference","title":"Retrieve a link","description":"Retrieve the info for a link.","href":"/api-reference/endpoint/retrieve-a-link"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/speakeasy-20cf8bdf/4789bbebaced7fe0/code-words.js"],"openApiReferenceData":{"operation":{"operationId":"getLinkInfo","x-speakeasy-name-override":"get","summary":"Retrieve a link","description":"Retrieve the info for a link.","tags":["Links"],"security":["b2370429-d433-480f-acea-ebb293a8a1d7"],"parameters":["653a9c83-fe2d-47f9-a287-2232b9d67473","fcbab5c9-2094-42a5-a4be-edba3c35177c","1cd49d6d-a71c-4bba-99c6-9aaebf96aca8","936acd4c-bcc3-497a-b778-2baeadfa5a98"],"responses":{"200":"cb4756f9-6538-48aa-808d-48e2407b7425","400":"17e85c07-541e-4611-96ba-279721a678f9","401":"9112803a-d991-4adc-838a-1faeea3363e4","403":"e189f4a1-5173-4783-8619-e21e1eecf5cf","404":"a88b0a64-7420-41c1-bb29-e591847115fb","409":"a6bcbd67-e8a8-47cc-961b-65821ebde742","410":"db8259b8-304e-4e81-a644-dac535409a4f","422":"4ec189cb-f419-4f66-bb8f-f3f344fa7ca9","429":"11331d10-822a-4a1a-9ba9-8029738b222b","500":"7ffef769-9e28-4e59-816c-42745ab052e2"},"x-codeSamples":[{"lang":"python","label":"getLinkInfo","source":"from dub import Dub\n\n\nwith Dub(\n token=\"DUB_API_KEY\",\n) as d_client:\n\n res = d_client.links.get(request={\n \"link_id\": \"clux0rgak00011...\",\n \"external_id\": \"123456\",\n })\n\n # Handle response\n print(res)"},{"lang":"php","label":"getLinkInfo","source":"declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n\n\n$response = $sdk->links->get(\n linkId: 'clux0rgak00011...',\n externalId: '123456'\n\n);\n\nif ($response->linkSchema !== null) {\n // handle response\n}"},{"lang":"go","label":"getLinkInfo","source":"package main\n\nimport(\n\t\"context\"\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n res, err := s.Links.Get(ctx, operations.GetLinkInfoRequest{\n LinkID: dubgo.Pointer(\"clux0rgak00011...\"),\n ExternalID: dubgo.Pointer(\"123456\"),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"},{"lang":"ruby","label":"getLinkInfo","source":"require 'dub'\n\nModels = ::OpenApiSDK::Models\ns = ::OpenApiSDK::Dub.new(\n security: Models::Shared::Security.new(\n token: 'DUB_API_KEY',\n ),\n )\n\nreq = Models::Operations::GetLinkInfoRequest.new(\n link_id: 'clux0rgak00011...',\n external_id: '123456',\n)\n\nres = s.links.get(request: req)\n\nunless res.nil?\n # handle response\nend"},{"lang":"typescript","label":"getLinkInfo","source":"import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n const result = await dub.links.get();\n\n console.log(result);\n}\n\nrun();"}],"method":"get","type":"path","servers":["865bcb85-ca3b-4717-ba05-2d70378c0768"],"path":"/links/info","baseUrlOptions":["https://api.dub.co"],"title":"Retrieve a link","codeSamples":[{"label":"getLinkInfo","lang":"python","source":"from dub import Dub\n\n\nwith Dub(\n token=\"DUB_API_KEY\",\n) as d_client:\n\n res = d_client.links.get(request={\n \"link_id\": \"clux0rgak00011...\",\n \"external_id\": \"123456\",\n })\n\n # Handle response\n print(res)"},{"label":"getLinkInfo","lang":"php","source":"declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n\n\n$response = $sdk->links->get(\n linkId: 'clux0rgak00011...',\n externalId: '123456'\n\n);\n\nif ($response->linkSchema !== null) {\n // handle response\n}"},{"label":"getLinkInfo","lang":"go","source":"package main\n\nimport(\n\t\"context\"\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n res, err := s.Links.Get(ctx, operations.GetLinkInfoRequest{\n LinkID: dubgo.Pointer(\"clux0rgak00011...\"),\n ExternalID: dubgo.Pointer(\"123456\"),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"},{"label":"getLinkInfo","lang":"ruby","source":"require 'dub'\n\nModels = ::OpenApiSDK::Models\ns = ::OpenApiSDK::Dub.new(\n security: Models::Shared::Security.new(\n token: 'DUB_API_KEY',\n ),\n )\n\nreq = Models::Operations::GetLinkInfoRequest.new(\n link_id: 'clux0rgak00011...',\n external_id: '123456',\n)\n\nres = s.links.get(request: req)\n\nunless res.nil?\n # handle response\nend"},{"label":"getLinkInfo","lang":"typescript","source":"import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n const result = await dub.links.get();\n\n console.log(result);\n}\n\nrun();"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"653a9c83-fe2d-47f9-a287-2232b9d67473":{"in":"query","name":"domain","schema":{"type":"string","minLength":1,"description":"The domain of the link to retrieve. E.g. for `d.to/github`, the domain is `d.to`.","uniqueKey":"","typeLabel":"string"}},"fcbab5c9-2094-42a5-a4be-edba3c35177c":{"in":"query","name":"key","description":"The key of the link to retrieve. E.g. for `d.to/github`, the key is `github`.","schema":{"type":"string","minLength":1,"description":"The key of the link to retrieve. E.g. for `d.to/github`, the key is `github`.","uniqueKey":"","typeLabel":"string"}},"1cd49d6d-a71c-4bba-99c6-9aaebf96aca8":{"in":"query","name":"linkId","description":"The unique ID of the short link.","schema":{"type":"string","description":"The unique ID of the short link.","example":"clux0rgak00011...","uniqueKey":"","typeLabel":"string"}},"936acd4c-bcc3-497a-b778-2baeadfa5a98":{"in":"query","name":"externalId","description":"This is the ID of the link in the your database.","schema":{"type":"string","description":"This is the ID of the link in the your database.","example":"123456","uniqueKey":"","typeLabel":"string"}}},"responses":{"cb4756f9-6538-48aa-808d-48e2407b7425":{"description":"The retrieved link","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the short link.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"domain":{"type":"string","description":"The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).","isRequired":true,"uniqueKey":"domain","typeLabel":"string"},"key":{"type":"string","description":"The short link slug. If not provided, a random 7-character slug will be generated.","isRequired":true,"uniqueKey":"key","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"The destination URL of the short link.","isRequired":true,"uniqueKey":"url","typeLabel":"string\u003curi>"},"trackConversion":{"type":"boolean","default":false,"description":"Whether to track conversions for the short link.","isRequired":true,"uniqueKey":"trackConversion","typeLabel":"boolean"},"externalId":{"oneOf":[{"type":"string","description":"The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace.","isRequired":true,"uniqueKey":"externalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace.","isRequired":true,"uniqueKey":"externalId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"externalId","typeLabel":"string | null"},"tenantId":{"oneOf":[{"type":"string","description":"The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant.","isRequired":true,"uniqueKey":"tenantId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant.","isRequired":true,"uniqueKey":"tenantId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"tenantId","typeLabel":"string | null"},"programId":{"oneOf":[{"type":"string","description":"The ID of the program the short link is associated with.","isRequired":true,"uniqueKey":"programId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the program the short link is associated with.","isRequired":true,"uniqueKey":"programId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"programId","typeLabel":"string | null"},"partnerId":{"oneOf":[{"type":"string","description":"The ID of the partner the short link is associated with.","isRequired":true,"uniqueKey":"partnerId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the partner the short link is associated with.","isRequired":true,"uniqueKey":"partnerId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"partnerId","typeLabel":"string | null"},"archived":{"type":"boolean","default":false,"description":"Whether the short link is archived.","isRequired":true,"uniqueKey":"archived","typeLabel":"boolean"},"expiresAt":{"oneOf":[{"type":"string","description":"The date and time when the short link will expire in ISO-8601 format.","isRequired":true,"uniqueKey":"expiresAt.oneOf.0","typeLabel":"string"},{"type":"null","description":"The date and time when the short link will expire in ISO-8601 format.","isRequired":true,"uniqueKey":"expiresAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"expiresAt","typeLabel":"string | null"},"expiredUrl":{"oneOf":[{"type":"string","format":"uri","description":"The URL to redirect to when the short link has expired.","isRequired":true,"uniqueKey":"expiredUrl.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"The URL to redirect to when the short link has expired.","isRequired":true,"uniqueKey":"expiredUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"expiredUrl","typeLabel":"string\u003curi> | null"},"disabledAt":{"oneOf":[{"type":"string","description":"The date and time when the short link was disabled. When a short link is disabled, it will redirect to its domain's not found URL, and its stats will be excluded from your overall stats.","isRequired":true,"uniqueKey":"disabledAt.oneOf.0","typeLabel":"string"},{"type":"null","description":"The date and time when the short link was disabled. When a short link is disabled, it will redirect to its domain's not found URL, and its stats will be excluded from your overall stats.","isRequired":true,"uniqueKey":"disabledAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"disabledAt","typeLabel":"string | null"},"password":{"oneOf":[{"type":"string","description":"The password required to access the destination URL of the short link.","isRequired":true,"uniqueKey":"password.oneOf.0","typeLabel":"string"},{"type":"null","description":"The password required to access the destination URL of the short link.","isRequired":true,"uniqueKey":"password.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"password","typeLabel":"string | null"},"proxy":{"type":"boolean","default":false,"description":"Whether the short link uses Custom Link Previews feature.","isRequired":true,"uniqueKey":"proxy","typeLabel":"boolean"},"title":{"oneOf":[{"type":"string","description":"The title of the short link. Will be used for Custom Link Previews if `proxy` is true.","isRequired":true,"uniqueKey":"title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The title of the short link. Will be used for Custom Link Previews if `proxy` is true.","isRequired":true,"uniqueKey":"title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"title","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"The description of the short link. Will be used for Custom Link Previews if `proxy` is true.","isRequired":true,"uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The description of the short link. Will be used for Custom Link Previews if `proxy` is true.","isRequired":true,"uniqueKey":"description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"description","typeLabel":"string | null"},"image":{"oneOf":[{"type":"string","description":"The image of the short link. Will be used for Custom Link Previews if `proxy` is true.","isRequired":true,"uniqueKey":"image.oneOf.0","typeLabel":"string"},{"type":"null","description":"The image of the short link. Will be used for Custom Link Previews if `proxy` is true.","isRequired":true,"uniqueKey":"image.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"image","typeLabel":"string | null"},"video":{"oneOf":[{"type":"string","description":"The custom link preview video (og:video). Will be used for Custom Link Previews if `proxy` is true. Learn more: https://d.to/og","isRequired":true,"uniqueKey":"video.oneOf.0","typeLabel":"string"},{"type":"null","description":"The custom link preview video (og:video). Will be used for Custom Link Previews if `proxy` is true. Learn more: https://d.to/og","isRequired":true,"uniqueKey":"video.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"video","typeLabel":"string | null"},"rewrite":{"type":"boolean","default":false,"description":"Whether the short link uses link cloaking.","isRequired":true,"uniqueKey":"rewrite","typeLabel":"boolean"},"doIndex":{"type":"boolean","default":false,"description":"Whether to allow search engines to index the short link.","isRequired":true,"uniqueKey":"doIndex","typeLabel":"boolean"},"ios":{"oneOf":[{"type":"string","description":"The iOS destination URL for the short link for iOS device targeting.","isRequired":true,"uniqueKey":"ios.oneOf.0","typeLabel":"string"},{"type":"null","description":"The iOS destination URL for the short link for iOS device targeting.","isRequired":true,"uniqueKey":"ios.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"ios","typeLabel":"string | null"},"android":{"oneOf":[{"type":"string","description":"The Android destination URL for the short link for Android device targeting.","isRequired":true,"uniqueKey":"android.oneOf.0","typeLabel":"string"},{"type":"null","description":"The Android destination URL for the short link for Android device targeting.","isRequired":true,"uniqueKey":"android.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"android","typeLabel":"string | null"},"geo":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","format":"uri","uniqueKey":"geo.oneOf.0.additionalProperties","typeLabel":"string\u003curi>"},"description":"Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. See https://d.to/geo for more information.","isRequired":true,"uniqueKey":"geo.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","format":"uri","uniqueKey":"geo.oneOf.1.additionalProperties","typeLabel":"string\u003curi>"},"description":"Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. See https://d.to/geo for more information.","isRequired":true,"uniqueKey":"geo.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"geo","typeLabel":"object | null"},"publicStats":{"type":"boolean","default":false,"description":"Whether the short link's stats are publicly accessible.","isRequired":true,"uniqueKey":"publicStats","typeLabel":"boolean"},"tags":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the tag.","isRequired":true,"uniqueKey":"tags.oneOf.0.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"The name of the tag.","isRequired":true,"uniqueKey":"tags.oneOf.0.items.[INDEX].name","typeLabel":"string"},"color":{"type":"string","enum":["red","yellow","green","blue","purple","brown","pink"],"description":"The color of the tag.","isRequired":true,"uniqueKey":"tags.oneOf.0.items.[INDEX].color","typeLabel":"enum\u003cstring>"}},"required":["id","name","color"],"title":"LinkTag","uniqueKey":"tags.oneOf.0.items.[INDEX]","typeLabel":"LinkTag · object"},"description":"The tags assigned to the short link.","isRequired":true,"uniqueKey":"tags.oneOf.0","typeLabel":"LinkTag · object[]"},{"type":"null","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the tag."},"name":{"type":"string","description":"The name of the tag."},"color":{"type":"string","enum":["red","yellow","green","blue","purple","brown","pink"],"description":"The color of the tag."}},"required":["id","name","color"],"title":"LinkTag"},"description":"The tags assigned to the short link.","isRequired":true,"uniqueKey":"tags.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"tags","typeLabel":"LinkTag · object[] | null"},"folderId":{"oneOf":[{"type":"string","description":"The unique ID of the folder assigned to the short link.","isRequired":true,"uniqueKey":"folderId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The unique ID of the folder assigned to the short link.","isRequired":true,"uniqueKey":"folderId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"folderId","typeLabel":"string | null"},"webhookIds":{"type":"array","items":{"type":"string","uniqueKey":"webhookIds.items.[INDEX]","typeLabel":"string"},"description":"The IDs of the webhooks that the short link is associated with.","isRequired":true,"uniqueKey":"webhookIds","typeLabel":"string[]"},"comments":{"oneOf":[{"type":"string","description":"The comments for the short link.","isRequired":true,"uniqueKey":"comments.oneOf.0","typeLabel":"string"},{"type":"null","description":"The comments for the short link.","isRequired":true,"uniqueKey":"comments.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"comments","typeLabel":"string | null"},"shortLink":{"type":"string","format":"uri","description":"The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).","isRequired":true,"uniqueKey":"shortLink","typeLabel":"string\u003curi>"},"qrCode":{"type":"string","format":"uri","description":"The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).","isRequired":true,"uniqueKey":"qrCode","typeLabel":"string\u003curi>"},"utm_source":{"oneOf":[{"type":"string","description":"The UTM source of the short link.","isRequired":true,"uniqueKey":"utm_source.oneOf.0","typeLabel":"string"},{"type":"null","description":"The UTM source of the short link.","isRequired":true,"uniqueKey":"utm_source.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"utm_source","typeLabel":"string | null"},"utm_medium":{"oneOf":[{"type":"string","description":"The UTM medium of the short link.","isRequired":true,"uniqueKey":"utm_medium.oneOf.0","typeLabel":"string"},{"type":"null","description":"The UTM medium of the short link.","isRequired":true,"uniqueKey":"utm_medium.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"utm_medium","typeLabel":"string | null"},"utm_campaign":{"oneOf":[{"type":"string","description":"The UTM campaign of the short link.","isRequired":true,"uniqueKey":"utm_campaign.oneOf.0","typeLabel":"string"},{"type":"null","description":"The UTM campaign of the short link.","isRequired":true,"uniqueKey":"utm_campaign.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"utm_campaign","typeLabel":"string | null"},"utm_term":{"oneOf":[{"type":"string","description":"The UTM term of the short link.","isRequired":true,"uniqueKey":"utm_term.oneOf.0","typeLabel":"string"},{"type":"null","description":"The UTM term of the short link.","isRequired":true,"uniqueKey":"utm_term.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"utm_term","typeLabel":"string | null"},"utm_content":{"oneOf":[{"type":"string","description":"The UTM content of the short link.","isRequired":true,"uniqueKey":"utm_content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The UTM content of the short link.","isRequired":true,"uniqueKey":"utm_content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"utm_content","typeLabel":"string | null"},"userId":{"oneOf":[{"type":"string","description":"The user ID of the creator of the short link.","isRequired":true,"uniqueKey":"userId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The user ID of the creator of the short link.","isRequired":true,"uniqueKey":"userId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"userId","typeLabel":"string | null"},"workspaceId":{"type":"string","description":"The workspace ID of the short link.","isRequired":true,"uniqueKey":"workspaceId","typeLabel":"string"},"clicks":{"type":"number","default":0,"description":"The number of clicks on the short link.","isRequired":true,"uniqueKey":"clicks","typeLabel":"number"},"leads":{"type":"number","default":0,"description":"The number of leads the short link has generated.","isRequired":true,"uniqueKey":"leads","typeLabel":"number"},"conversions":{"type":"number","default":0,"description":"The number of leads that converted to paying customers.","isRequired":true,"uniqueKey":"conversions","typeLabel":"number"},"sales":{"type":"number","default":0,"description":"The total number of sales (includes recurring sales) generated by the short link.","isRequired":true,"uniqueKey":"sales","typeLabel":"number"},"saleAmount":{"type":"number","default":0,"description":"The total dollar value of sales (in cents) generated by the short link.","isRequired":true,"uniqueKey":"saleAmount","typeLabel":"number"},"lastClicked":{"oneOf":[{"type":"string","description":"The date and time when the short link was last clicked.","isRequired":true,"uniqueKey":"lastClicked.oneOf.0","typeLabel":"string"},{"type":"null","description":"The date and time when the short link was last clicked.","isRequired":true,"uniqueKey":"lastClicked.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"lastClicked","typeLabel":"string | null"},"createdAt":{"type":"string","description":"The date and time when the short link was created.","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string"},"updatedAt":{"type":"string","description":"The date and time when the short link was last updated.","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string"},"tagId":{"oneOf":[{"type":"string","description":"Deprecated: Use `tags` instead. The unique ID of the tag assigned to the short link.","deprecated":true,"isRequired":true,"uniqueKey":"tagId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Deprecated: Use `tags` instead. The unique ID of the tag assigned to the short link.","deprecated":true,"isRequired":true,"uniqueKey":"tagId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"tagId","typeLabel":"string | null"},"projectId":{"type":"string","description":"Deprecated: Use `workspaceId` instead. The project ID of the short link.","deprecated":true,"isRequired":true,"uniqueKey":"projectId","typeLabel":"string"},"testVariants":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","isRequired":true,"uniqueKey":"testVariants.oneOf.0.items.[INDEX].url","typeLabel":"string"},"percentage":{"type":"number","minimum":10,"maximum":90,"isRequired":true,"uniqueKey":"testVariants.oneOf.0.items.[INDEX].percentage","typeLabel":"number"}},"required":["url","percentage"],"uniqueKey":"testVariants.oneOf.0.items.[INDEX]","typeLabel":"object"},"minItems":2,"maxItems":4,"description":"An array of A/B test URLs and the percentage of traffic to send to each URL.","example":[{"url":"https://example.com/variant-1","percentage":50},{"url":"https://example.com/variant-2","percentage":50}],"uniqueKey":"testVariants.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"url":{"type":"string"},"percentage":{"type":"number","minimum":10,"maximum":90}},"required":["url","percentage"]},"minItems":2,"maxItems":4,"description":"An array of A/B test URLs and the percentage of traffic to send to each URL.","example":[{"url":"https://example.com/variant-1","percentage":50},{"url":"https://example.com/variant-2","percentage":50}],"uniqueKey":"testVariants.oneOf.1","typeLabel":"null"}],"uniqueKey":"testVariants","typeLabel":"object[] | null"},"testStartedAt":{"oneOf":[{"type":"string","description":"The date and time when the tests started.","uniqueKey":"testStartedAt.oneOf.0","typeLabel":"string"},{"type":"null","description":"The date and time when the tests started.","uniqueKey":"testStartedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"testStartedAt","typeLabel":"string | null"},"testCompletedAt":{"oneOf":[{"type":"string","description":"The date and time when the tests were or will be completed.","uniqueKey":"testCompletedAt.oneOf.0","typeLabel":"string"},{"type":"null","description":"The date and time when the tests were or will be completed.","uniqueKey":"testCompletedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"testCompletedAt","typeLabel":"string | null"}},"required":["id","domain","key","url","trackConversion","externalId","tenantId","programId","partnerId","archived","expiresAt","expiredUrl","disabledAt","password","proxy","title","description","image","video","rewrite","doIndex","ios","android","geo","publicStats","tags","folderId","webhookIds","comments","shortLink","qrCode","utm_source","utm_medium","utm_campaign","utm_term","utm_content","userId","workspaceId","clicks","leads","conversions","sales","saleAmount","lastClicked","createdAt","updatedAt","tagId","projectId"],"title":"Link","uniqueKey":"","typeLabel":"Link · object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","domain":"\u003cstring>","key":"\u003cstring>","url":"\u003cstring>","trackConversion":false,"externalId":"\u003cstring>","tenantId":"\u003cstring>","programId":"\u003cstring>","partnerId":"\u003cstring>","archived":false,"expiresAt":"\u003cstring>","expiredUrl":"\u003cstring>","disabledAt":"\u003cstring>","password":"\u003cstring>","proxy":false,"title":"\u003cstring>","description":"\u003cstring>","image":"\u003cstring>","video":"\u003cstring>","rewrite":false,"doIndex":false,"ios":"\u003cstring>","android":"\u003cstring>","geo":{},"publicStats":false,"tags":[{"id":"\u003cstring>","name":"\u003cstring>","color":"red"}],"folderId":"\u003cstring>","webhookIds":["\u003cstring>"],"comments":"\u003cstring>","shortLink":"\u003cstring>","qrCode":"\u003cstring>","utm_source":"\u003cstring>","utm_medium":"\u003cstring>","utm_campaign":"\u003cstring>","utm_term":"\u003cstring>","utm_content":"\u003cstring>","userId":"\u003cstring>","workspaceId":"\u003cstring>","clicks":0,"leads":0,"conversions":0,"sales":0,"saleAmount":0,"lastClicked":"\u003cstring>","createdAt":"\u003cstring>","updatedAt":"\u003cstring>","tagId":"\u003cstring>","projectId":"\u003cstring>","testVariants":[{"url":"https://example.com/variant-1","percentage":50},{"url":"https://example.com/variant-2","percentage":50}],"testStartedAt":"\u003cstring>","testCompletedAt":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"17e85c07-541e-4611-96ba-279721a678f9":{"description":"The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).","content":{"application/json":{"schema":{"x-speakeasy-name-override":"BadRequest","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["bad_request"],"description":"A short code indicating the error code returned.","example":"bad_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://dub.co/docs/api-reference/errors#bad-request","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"bad_request","message":"The requested resource was not found.","doc_url":"https://dub.co/docs/api-reference/errors#bad-request"}}}},"exampleType":"generated"}},"exampleType":"generated"},"9112803a-d991-4adc-838a-1faeea3363e4":{"description":"Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Unauthorized","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized"],"description":"A short code indicating the error code returned.","example":"unauthorized","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://dub.co/docs/api-reference/errors#unauthorized","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"unauthorized","message":"The requested resource was not found.","doc_url":"https://dub.co/docs/api-reference/errors#unauthorized"}}}},"exampleType":"generated"}},"exampleType":"generated"},"e189f4a1-5173-4783-8619-e21e1eecf5cf":{"description":"The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Forbidden","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["forbidden"],"description":"A short code indicating the error code returned.","example":"forbidden","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://dub.co/docs/api-reference/errors#forbidden","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"forbidden","message":"The requested resource was not found.","doc_url":"https://dub.co/docs/api-reference/errors#forbidden"}}}},"exampleType":"generated"}},"exampleType":"generated"},"a88b0a64-7420-41c1-bb29-e591847115fb":{"description":"The server cannot find the requested resource.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"NotFound","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found"],"description":"A short code indicating the error code returned.","example":"not_found","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://dub.co/docs/api-reference/errors#not-found","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"not_found","message":"The requested resource was not found.","doc_url":"https://dub.co/docs/api-reference/errors#not-found"}}}},"exampleType":"generated"}},"exampleType":"generated"},"a6bcbd67-e8a8-47cc-961b-65821ebde742":{"description":"This response is sent when a request conflicts with the current state of the server.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Conflict","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["conflict"],"description":"A short code indicating the error code returned.","example":"conflict","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://dub.co/docs/api-reference/errors#conflict","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"conflict","message":"The requested resource was not found.","doc_url":"https://dub.co/docs/api-reference/errors#conflict"}}}},"exampleType":"generated"}},"exampleType":"generated"},"db8259b8-304e-4e81-a644-dac535409a4f":{"description":"This response is sent when the requested content has been permanently deleted from server, with no forwarding address.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"InviteExpired","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invite_expired"],"description":"A short code indicating the error code returned.","example":"invite_expired","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://dub.co/docs/api-reference/errors#invite-expired","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invite_expired","message":"The requested resource was not found.","doc_url":"https://dub.co/docs/api-reference/errors#invite-expired"}}}},"exampleType":"generated"}},"exampleType":"generated"},"4ec189cb-f419-4f66-bb8f-f3f344fa7ca9":{"description":"The request was well-formed but was unable to be followed due to semantic errors.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"UnprocessableEntity","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unprocessable_entity"],"description":"A short code indicating the error code returned.","example":"unprocessable_entity","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://dub.co/docs/api-reference/errors#unprocessable-entity","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"unprocessable_entity","message":"The requested resource was not found.","doc_url":"https://dub.co/docs/api-reference/errors#unprocessable-entity"}}}},"exampleType":"generated"}},"exampleType":"generated"},"11331d10-822a-4a1a-9ba9-8029738b222b":{"description":"The user has sent too many requests in a given amount of time (\"rate limiting\")","content":{"application/json":{"schema":{"x-speakeasy-name-override":"RateLimitExceeded","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["rate_limit_exceeded"],"description":"A short code indicating the error code returned.","example":"rate_limit_exceeded","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://dub.co/docs/api-reference/errors#rate-limit_exceeded","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"rate_limit_exceeded","message":"The requested resource was not found.","doc_url":"https://dub.co/docs/api-reference/errors#rate-limit_exceeded"}}}},"exampleType":"generated"}},"exampleType":"generated"},"7ffef769-9e28-4e59-816c-42745ab052e2":{"description":"The server has encountered a situation it does not know how to handle.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"InternalServerError","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["internal_server_error"],"description":"A short code indicating the error code returned.","example":"internal_server_error","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://dub.co/docs/api-reference/errors#internal-server_error","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"internal_server_error","message":"The requested resource was not found.","doc_url":"https://dub.co/docs/api-reference/errors#internal-server_error"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"b2370429-d433-480f-acea-ebb293a8a1d7":{"token":{"type":"http","description":"Default authentication mechanism","scheme":"bearer","x-speakeasy-example":"DUB_API_KEY","scopes":[]}}},"servers":{"865bcb85-ca3b-4717-ba05-2d70378c0768":{"url":"https://api.dub.co","description":"Production API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","description":"Default authentication mechanism","scheme":"bearer","x-speakeasy-example":"DUB_API_KEY","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Default authentication mechanism","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"token","name":"Authorization"}],"title":"token"}]},"originalFileLocation":"https://spec.speakeasy.com/dub/dub/dub-with-code-samples"},"subdomain":"speakeasy-20cf8bdf","siteName":"Dub Docs","title":"Get link info with the Dub API - API Reference","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T06:55:02.184Z","originalFileLocation":"api-reference/endpoint/retrieve-a-link.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=\"Retrieve the info for a link.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dub Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/speakeasy-20cf8bdf/nRXDtUDoIccjE2_j/_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/speakeasy-20cf8bdf/nRXDtUDoIccjE2_j/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/speakeasy-20cf8bdf/nRXDtUDoIccjE2_j/_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/speakeasy-20cf8bdf/nRXDtUDoIccjE2_j/_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/speakeasy-20cf8bdf/nRXDtUDoIccjE2_j/_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/speakeasy-20cf8bdf/nRXDtUDoIccjE2_j/_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/speakeasy-20cf8bdf/nRXDtUDoIccjE2_j/_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/speakeasy-20cf8bdf/nRXDtUDoIccjE2_j/_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/speakeasy-20cf8bdf/nRXDtUDoIccjE2_j/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get link info with the Dub API - API Reference\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve the info for a link.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dub Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://speakeasy-20cf8bdf.mintlify.app/api-reference/endpoint/retrieve-a-link\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://speakeasy-20cf8bdf.mintlify.site/_mintlify/api/og/v2?division=Links\u0026amp;title=Retrieve+a+link\u0026amp;description=Retrieve+the+info+for+a+link.\u0026amp;theme=bcc63e583e81eedcc7ef3943\u0026amp;signature=6a0993279bb6ea0b0679b84314f42891b5efebce458ea5c03f44e35233fad3d4\">\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=\"Get link info with the Dub API - API Reference\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve the info for a link.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://speakeasy-20cf8bdf.mintlify.site/_mintlify/api/og/v2?division=Links\u0026amp;title=Retrieve+a+link\u0026amp;description=Retrieve+the+info+for+a+link.\u0026amp;theme=bcc63e583e81eedcc7ef3943\u0026amp;signature=6a0993279bb6ea0b0679b84314f42891b5efebce458ea5c03f44e35233fad3d4\">\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/speakeasy-20cf8bdf/nRXDtUDoIccjE2_j/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dub Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#eb5611\">\u003clink data-mint-head rel=\"canonical\" href=\"https://speakeasy-20cf8bdf.mintlify.app/api-reference/endpoint/retrieve-a-link\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/retrieve-a-link.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://speakeasy-20cf8bdf.mintlify.app/#organization\",\"name\":\"Dub Docs\",\"url\":\"https://speakeasy-20cf8bdf.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/speakeasy-20cf8bdf/_E--K8tjR4nKi8VA/logos/wordmark.svg?fit=max\u0026auto=format\u0026n=_E--K8tjR4nKi8VA\u0026q=85\u0026s=0a1a92eb58e30562139bd8d27351ee0a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://speakeasy-20cf8bdf.mintlify.app#website\",\"name\":\"Dub Docs\",\"url\":\"https://speakeasy-20cf8bdf.mintlify.app\",\"publisher\":{\"@id\":\"https://speakeasy-20cf8bdf.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://speakeasy-20cf8bdf.mintlify.app/api-reference/endpoint/retrieve-a-link#webpage\",\"url\":\"https://speakeasy-20cf8bdf.mintlify.app/api-reference/endpoint/retrieve-a-link\",\"name\":\"Retrieve a link\",\"description\":\"Retrieve the info for a link.\",\"dateModified\":\"2026-01-07T06:55:02.184Z\",\"isPartOf\":{\"@id\":\"https://speakeasy-20cf8bdf.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://speakeasy-20cf8bdf.mintlify.app/api-reference/endpoint/retrieve-a-link#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://speakeasy-20cf8bdf.mintlify.app/api-reference/endpoint/retrieve-a-link#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Links\",\"item\":\"https://speakeasy-20cf8bdf.mintlify.app/api-reference/endpoint/create-a-new-link\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Retrieve a link\",\"item\":\"https://speakeasy-20cf8bdf.mintlify.app/api-reference/endpoint/retrieve-a-link\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://speakeasy-20cf8bdf.mintlify.app/api-reference/endpoint/retrieve-a-link#apireference\",\"headline\":\"Retrieve a link\",\"name\":\"Retrieve a link\",\"description\":\"Retrieve the info for a link.\",\"url\":\"https://speakeasy-20cf8bdf.mintlify.app/api-reference/endpoint/retrieve-a-link\",\"mainEntityOfPage\":{\"@id\":\"https://speakeasy-20cf8bdf.mintlify.app/api-reference/endpoint/retrieve-a-link#webpage\"},\"dateModified\":\"2026-01-07T06:55:02.184Z\",\"publisher\":{\"@id\":\"https://speakeasy-20cf8bdf.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://speakeasy-20cf8bdf.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dub Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Dub Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/retrieve-a-link.md","siteName":"Dub Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"Introduction","icon":"webhook","href":"/api-reference/introduction"},{"title":"API Keys","icon":"key","href":"/api-reference/tokens"},{"title":"Rate limits","icon":"clock","href":"/api-reference/rate-limits"},{"title":"Pagination","icon":"list-ol","href":"/api-reference/pagination"},{"title":"Errors","icon":"bug","href":"/api-reference/errors"}]},{"group":"Links","pages":[{"openapi":"post /links","title":"Create a link","href":"/api-reference/endpoint/create-a-new-link"},{"openapi":"patch /links/{linkId}","title":"Update a link","href":"/api-reference/endpoint/update-a-link"},{"openapi":"put /links/upsert","title":"Upsert a link","href":"/api-reference/endpoint/upsert-a-link"},{"openapi":"delete /links/{linkId}","title":"Delete a link","description":"Delete a link for the authenticated workspace.","href":"/api-reference/endpoint/delete-a-link"},{"openapi":"get /links/info","title":"Retrieve a link","href":"/api-reference/endpoint/retrieve-a-link"},{"openapi":"get /links","title":"Retrieve a list of links","description":"Retrieve a paginated list of links for the authenticated workspace.","href":"/api-reference/endpoint/retrieve-a-list-of-links"},{"openapi":"get /links/count","title":"Retrieve links count","href":"/api-reference/endpoint/retrieve-number-of-links"},{"openapi":"post /links/bulk","title":"Bulk create links","href":"/api-reference/endpoint/bulk-create-links"},{"openapi":"patch /links/bulk","title":"Bulk update links","href":"/api-reference/endpoint/bulk-update-links"},{"openapi":"delete /links/bulk","title":"Bulk delete links","href":"/api-reference/endpoint/bulk-delete-links"},{"title":"Retrieve a QR code","openapi":"get /qr","href":"/api-reference/endpoint/retrieve-a-qr-code"}]},{"group":"Analytics","pages":[{"title":"Retrieve analytics","openapi":"get /analytics","href":"/api-reference/endpoint/retrieve-analytics"},{"openapi":"get /events","title":"Retrieve a list of events","href":"/api-reference/endpoint/retrieve-a-list-of-events"}]},{"group":"Conversions","pages":[{"openapi":"post /track/lead","title":"Track a lead","href":"/api-reference/endpoint/track-lead"},{"openapi":"post /track/sale","title":"Track a sale","href":"/api-reference/endpoint/track-sale"}]},{"group":"Customers","pages":[{"openapi":"get /customers/{id}","title":"Retrieve a customer","href":"/api-reference/endpoint/retrieve-a-customer"},{"openapi":"get /customers","title":"Retrieve a list of customers","href":"/api-reference/endpoint/retrieve-a-list-of-customers"},{"openapi":"patch /customers/{id}","title":"Update a customer","href":"/api-reference/endpoint/update-a-customer"},{"openapi":"delete /customers/{id}","title":"Delete a customer","href":"/api-reference/endpoint/delete-a-customer"}]},{"group":"Tags","pages":[{"openapi":"post /tags","title":"Create a tag","href":"/api-reference/endpoint/create-a-new-tag"},{"openapi":"get /tags","title":"Retrieve a list of tags","href":"/api-reference/endpoint/retrieve-a-list-of-tags"},{"openapi":"patch /tags/{id}","title":"Update a tag","href":"/api-reference/endpoint/update-a-tag"}]},{"group":"Domains","pages":[{"openapi":"post /domains","title":"Create a domain","href":"/api-reference/endpoint/create-a-domain"},{"openapi":"patch /domains/{slug}","title":"Update a domain","href":"/api-reference/endpoint/update-a-domain"},{"openapi":"delete /domains/{slug}","title":"Delete a domain","href":"/api-reference/endpoint/delete-a-domain"},{"openapi":"get /domains","title":"Retrieve a list of domains","href":"/api-reference/endpoint/retrieve-a-list-of-domains"}]},{"group":"Workspaces","pages":[{"openapi":"get /workspaces/{idOrSlug}","title":"Retrieve a workspace","href":"/api-reference/endpoint/retrieve-a-workspace"},{"openapi":"patch /workspaces/{idOrSlug}","title":"Update a workspace","href":"/api-reference/endpoint/update-a-workspace"}]}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks/overview"}]}]},"basePath":"","title":"Get link info with the Dub API - API Reference","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-D4yvBxwa.js","snippetPresets-CkhhQaIQ.js","utils-XnMGX2lF.js","style-to-object-BY3JEAdk.js","utils-CRXL1dwr.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DvwRKZnA.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DYtgUc7n.js","_Uint8Array-D8z7zjjJ.js","isObject-FP1Yky1u.js","ApiExamples-RYQSJVS4.js","usePlaygroundInputsStore-k_R_BTDL.js","shallow-BwVhzryZ.js","isEqual-Cx5TQjMc.js","CodeSnippets-BDe2dS5N.js","CodeSnippet-C1QlaNYl.js","use-playground-group-access-DyQ_1IIe.js","Page-DQd9HN9r.js","api-description-markdown-BpDftTKT.js","DynamicMarkdown-CZT_WAnN.js","SectionHeading-K1iuDm9j.js","MethodPill-Dx3JIwHJ.js","getPastedJson-buPTdYs_.js","Check2Icon-DmMrzBYX.js","axios-CsQoIw0U.js","Markdown-erv2ryQz.js","AssistantPageLink-DJ01X1Sn.js","dist-D9mz3EIS.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}