{
"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"
}
}
Links
Retrieve a list of links
Retrieve a list of links for the authenticated workspace. The list will be paginated and the provided query parameters allow filtering the returned links.
{
"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"
}
}
Authorizations
Authorization
string
header
required
Default authentication mechanism
Query Parameters
domain
string
The domain to filter the links by. E.g. ac.me. If not provided, all links for the workspace will be returned.
tagId
string
deprecated
Deprecated: Use tagIds instead. The tag ID to filter the links by.
tagIds
stringstring[]
The tag IDs to filter the links by.
tagNames
stringstring[]
The unique name of the tags assigned to the short link (case insensitive).
folderId
string
The folder ID to filter the links by.
search
string
The search term to filter the links by. The search term will be matched against the short link slug and the destination url.
userId
string
The user ID to filter the links by.
tenantId
string
The ID of the tenant that created the link inside your system. If set, will only return links for the specified tenant.
showArchived
boolean
default:false
Whether to include archived links in the response. Defaults to false if not provided.
withTags
boolean
default:false
deprecated
DEPRECATED. Filter for links that have at least one tag assigned to them.
sortBy
enum<string>
default:createdAt
The field to sort the links by. The default is createdAt.
Available options:
createdAt,
clicks,
saleAmount,
lastClicked
sortOrder
enum<string>
default:desc
The sort order. The default is desc.
Available options:
asc,
desc
sort
enum<string>
default:createdAt
deprecated
DEPRECATED. Use sortBy instead.
Available options:
createdAt,
clicks,
saleAmount,
lastClicked
page
number
default:1
The page number for pagination.
Required range: x > 0
Example:
1
pageSize
number
default:100
The number of items per page.
Required range: 0 < x <= 100
Example:
50
Response
A list of links
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.
Was this page helpful?
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Dub.co Docs","colors":{"primary":"#9563FF","light":"#AE87FF","dark":"#0D001D"},"favicon":"/logos/favicon.png","logo":{"light":"https://mintcdn.com/7qrcodes/XmHmnCi2U7w3f53-/logos/logotype.svg?fit=max\u0026auto=format\u0026n=XmHmnCi2U7w3f53-\u0026q=85\u0026s=4af476a0c46b739f3d662608bfefc8f4","dark":"https://mintcdn.com/7qrcodes/XmHmnCi2U7w3f53-/logos/logotype-dark.svg?fit=max\u0026auto=format\u0026n=XmHmnCi2U7w3f53-\u0026q=85\u0026s=70c7f4c569972468a114a3ebca1d9a8a","href":"https://dub.co"},"api":{"openapi":"https://api.dub.co"},"background":{"decoration":null,"color":{"light":null,"dark":"#090014"}},"navbar":{"links":[{"label":"Support","href":"mailto:support@dub.co"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.dub.co"}},"footer":{"socials":{"twitter":"https://twitter.com/dubdotco","github":"https://github.com/steven-tey/dub","linkedin":"https://www.linkedin.com/company/dubhq","website":"https://dub.co"}},"navigation":{"global":{"anchors":[{"anchor":"Help Center","href":"https://dub.co/help","icon":"question"},{"anchor":"GitHub","href":"https://github.com/dubinc/dub","icon":"github"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"7qrcodes","hasAudioNarration":false,"actualSubdomain":"7qrcodes","customDomains":["docs.7qr.codes"],"gitSource":{"type":"github","owner":"7qrcodes","repo":"7qr","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae91f27e2896f3725211807:success","clientVersion":"0.0.4410","searchFilterCounts":[{"language":"default","tag":"API Reference","count":29},{"language":"default","tag":"Analytics","count":10},{"language":"default","tag":"Links","count":7},{"language":"default","tag":"Documentation","count":6},{"language":"default","tag":"Workspaces","count":3},{"language":"default","tag":"Resources","count":3},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"Tags","count":2},{"language":"default","tag":"QR Codes","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoint/retrieve-a-list-of-links","slug":"/api-reference/endpoint/retrieve-a-list-of-links","pageMetadata":{"openapi":"get /links","og:title":"Get list of links with the Dub.co API - API Reference","description":"Retrieve a list of links for the authenticated workspace. The list will be paginated and the provided query parameters allow filtering the returned links.","title":"Retrieve a list of links","href":"/api-reference/endpoint/retrieve-a-list-of-links"},"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 a list of links for the authenticated workspace. The list will be paginated and the provided query parameters allow filtering the returned links.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}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","og:title":"Get list of links with the Dub.co API - API Reference","description":"Retrieve a list of links for the authenticated workspace. The list will be paginated and the provided query parameters allow filtering the returned links.","title":"Retrieve a list of links","href":"/api-reference/endpoint/retrieve-a-list-of-links"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"getLinks","x-speakeasy-name-override":"list","x-speakeasy-pagination":{"type":"offsetLimit","inputs":[{"name":"page","in":"parameters","type":"page"},{"name":"pageSize","in":"parameters","type":"limit"}],"outputs":{"results":"$"}},"summary":"Retrieve a list of links","description":"Retrieve a list of links for the authenticated workspace. The list will be paginated and the provided query parameters allow filtering the returned links.","tags":["Links"],"security":["30d6804a-2dd9-4a15-85c4-1ac6a699a1bd"],"parameters":["ba3527d0-1962-4bbd-8827-01e0d499fd56","14753046-2008-4509-b553-6d5816d59980","156a89a1-02ca-473f-bd55-29e914bf4806","9071205b-dbae-40a0-82c2-902815fcc678","6b371668-b592-49b3-9146-c5da6d307a21","619a81de-0bba-4ac3-913e-425653fda14e","4709606d-164f-4052-9209-dcbb739e6723","faef9823-f85d-4d7d-8177-1123e336a1a8","7767024c-6f38-4655-9edb-c6b2649425f2","1385d22a-a7c9-4b59-a32a-731d047299ce","757c814b-0eaf-46d4-9876-c4511e16db34","442fd4be-3155-4db0-bcad-23c000693e58","9e3c7aef-9df8-4db5-9987-13cfceb66ae0","0a12e5d9-91d0-43f7-8db8-6da9c004327c","85a2472a-3703-4dbc-bfa9-31b7b201e1b4"],"responses":{"200":"31d2d968-13c6-448d-ae54-5eac6b1c8fbf","400":"56d4cd96-48aa-449b-b624-456fd8c83653","401":"dc5f91d1-02b4-411a-b998-8d79cfb0cf2d","403":"5d09cb1a-28d4-4ee9-b2b2-bf732968044c","404":"477bea31-88d4-4b77-8828-5e859da6165e","409":"ce260efd-9b2b-4e6d-adfb-70c3c3f74989","410":"19d92d74-ea93-4751-b8e4-e7d753fc0af3","422":"3875d9f8-a6e8-4557-878d-847ab68be0fa","429":"d654bc7f-5147-4572-9b3d-3773f9c0b048","500":"ebfb6a7b-0de5-4eda-980a-5746f59ca9c9"},"method":"get","type":"path","servers":["6a02befc-8d3e-42ea-bce2-50d9adc4376d"],"path":"/links","baseUrlOptions":["https://api.dub.co"],"title":"Retrieve a list of links","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"ba3527d0-1962-4bbd-8827-01e0d499fd56":{"in":"query","name":"domain","description":"The domain to filter the links by. E.g. `ac.me`. If not provided, all links for the workspace will be returned.","schema":{"type":"string","description":"The domain to filter the links by. E.g. `ac.me`. If not provided, all links for the workspace will be returned.","uniqueKey":"","typeLabel":"string"}},"14753046-2008-4509-b553-6d5816d59980":{"in":"query","name":"tagId","description":"Deprecated: Use `tagIds` instead. The tag ID to filter the links by.","schema":{"type":"string","description":"Deprecated: Use `tagIds` instead. The tag ID to filter the links by.","deprecated":true,"uniqueKey":"","typeLabel":"string"}},"156a89a1-02ca-473f-bd55-29e914bf4806":{"in":"query","name":"tagIds","description":"The tag IDs to filter the links by.","style":"form","explode":false,"schema":{"oneOf":[{"type":"string","description":"The tag IDs to filter the links by.","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.items.[INDEX]","typeLabel":"string"},"description":"The tag IDs to filter the links by.","uniqueKey":"oneOf.1","typeLabel":"string[]"}],"uniqueKey":"","typeLabel":"string | string[]"}},"9071205b-dbae-40a0-82c2-902815fcc678":{"in":"query","name":"tagNames","description":"The unique name of the tags assigned to the short link (case insensitive).","style":"form","explode":false,"schema":{"oneOf":[{"type":"string","description":"The unique name of the tags assigned to the short link (case insensitive).","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.items.[INDEX]","typeLabel":"string"},"description":"The unique name of the tags assigned to the short link (case insensitive).","uniqueKey":"oneOf.1","typeLabel":"string[]"}],"uniqueKey":"","typeLabel":"string | string[]"}},"6b371668-b592-49b3-9146-c5da6d307a21":{"in":"query","name":"folderId","description":"The folder ID to filter the links by.","schema":{"type":"string","description":"The folder ID to filter the links by.","uniqueKey":"","typeLabel":"string"}},"619a81de-0bba-4ac3-913e-425653fda14e":{"in":"query","name":"search","description":"The search term to filter the links by. The search term will be matched against the short link slug and the destination url.","schema":{"type":"string","description":"The search term to filter the links by. The search term will be matched against the short link slug and the destination url.","uniqueKey":"","typeLabel":"string"}},"4709606d-164f-4052-9209-dcbb739e6723":{"in":"query","name":"userId","description":"The user ID to filter the links by.","schema":{"type":"string","description":"The user ID to filter the links by.","uniqueKey":"","typeLabel":"string"}},"faef9823-f85d-4d7d-8177-1123e336a1a8":{"in":"query","name":"tenantId","description":"The ID of the tenant that created the link inside your system. If set, will only return links for the specified tenant.","schema":{"type":"string","description":"The ID of the tenant that created the link inside your system. If set, will only return links for the specified tenant.","uniqueKey":"","typeLabel":"string"}},"7767024c-6f38-4655-9edb-c6b2649425f2":{"in":"query","name":"showArchived","description":"Whether to include archived links in the response. Defaults to `false` if not provided.","schema":{"type":"boolean","default":"false","description":"Whether to include archived links in the response. Defaults to `false` if not provided.","uniqueKey":"","typeLabel":"boolean"}},"1385d22a-a7c9-4b59-a32a-731d047299ce":{"in":"query","name":"withTags","description":"DEPRECATED. Filter for links that have at least one tag assigned to them.","schema":{"type":"boolean","default":"false","description":"DEPRECATED. Filter for links that have at least one tag assigned to them.","deprecated":true,"uniqueKey":"","typeLabel":"boolean"}},"757c814b-0eaf-46d4-9876-c4511e16db34":{"in":"query","name":"sortBy","description":"The field to sort the links by. The default is `createdAt`.","schema":{"type":"string","enum":["createdAt","clicks","saleAmount","lastClicked"],"default":"createdAt","description":"The field to sort the links by. The default is `createdAt`.","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"442fd4be-3155-4db0-bcad-23c000693e58":{"in":"query","name":"sortOrder","description":"The sort order. The default is `desc`.","schema":{"type":"string","enum":["asc","desc"],"default":"desc","description":"The sort order. The default is `desc`.","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"9e3c7aef-9df8-4db5-9987-13cfceb66ae0":{"in":"query","name":"sort","description":"DEPRECATED. Use `sortBy` instead.","schema":{"type":"string","enum":["createdAt","clicks","saleAmount","lastClicked"],"default":"createdAt","description":"DEPRECATED. Use `sortBy` instead.","deprecated":true,"uniqueKey":"","typeLabel":"enum\u003cstring>"}},"0a12e5d9-91d0-43f7-8db8-6da9c004327c":{"in":"query","name":"page","description":"The page number for pagination.","schema":{"type":"number","minimum":0,"exclusiveMinimum":true,"default":1,"description":"The page number for pagination.","example":1,"uniqueKey":"","typeLabel":"number"}},"85a2472a-3703-4dbc-bfa9-31b7b201e1b4":{"in":"query","name":"pageSize","description":"The number of items per page.","schema":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":100,"default":100,"description":"The number of items per page.","example":50,"uniqueKey":"","typeLabel":"number"}}},"responses":{"31d2d968-13c6-448d-ae54-5eac6b1c8fbf":{"description":"A list of links","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].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":"items.[INDEX].key","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"The destination URL of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].url","typeLabel":"string\u003curi>"},"trackConversion":{"type":"boolean","default":false,"description":"Whether to track conversions for the short link.","isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].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":"items.[INDEX].externalId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].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":"items.[INDEX].tenantId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].tenantId","typeLabel":"string | null"},"programId":{"oneOf":[{"type":"string","description":"The ID of the program the short link is associated with.","isRequired":true,"uniqueKey":"items.[INDEX].programId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the program the short link is associated with.","isRequired":true,"uniqueKey":"items.[INDEX].programId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].programId","typeLabel":"string | null"},"partnerId":{"oneOf":[{"type":"string","description":"The ID of the partner the short link is associated with.","isRequired":true,"uniqueKey":"items.[INDEX].partnerId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the partner the short link is associated with.","isRequired":true,"uniqueKey":"items.[INDEX].partnerId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].partnerId","typeLabel":"string | null"},"archived":{"type":"boolean","default":false,"description":"Whether the short link is archived.","isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].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":"items.[INDEX].expiresAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].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":"items.[INDEX].expiredUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].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":"items.[INDEX].disabledAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].disabledAt","typeLabel":"string | null"},"password":{"oneOf":[{"type":"string","description":"The password required to access the destination URL of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].password.oneOf.0","typeLabel":"string"},{"type":"null","description":"The password required to access the destination URL of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].password.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].password","typeLabel":"string | null"},"proxy":{"type":"boolean","default":false,"description":"Whether the short link uses Custom Link Previews feature.","isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].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":"items.[INDEX].title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].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":"items.[INDEX].description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].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":"items.[INDEX].image.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].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":"items.[INDEX].video.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].video","typeLabel":"string | null"},"rewrite":{"type":"boolean","default":false,"description":"Whether the short link uses link cloaking.","isRequired":true,"uniqueKey":"items.[INDEX].rewrite","typeLabel":"boolean"},"doIndex":{"type":"boolean","default":false,"description":"Whether to allow search engines to index the short link.","isRequired":true,"uniqueKey":"items.[INDEX].doIndex","typeLabel":"boolean"},"ios":{"oneOf":[{"type":"string","description":"The iOS destination URL for the short link for iOS device targeting.","isRequired":true,"uniqueKey":"items.[INDEX].ios.oneOf.0","typeLabel":"string"},{"type":"null","description":"The iOS destination URL for the short link for iOS device targeting.","isRequired":true,"uniqueKey":"items.[INDEX].ios.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].ios","typeLabel":"string | null"},"android":{"oneOf":[{"type":"string","description":"The Android destination URL for the short link for Android device targeting.","isRequired":true,"uniqueKey":"items.[INDEX].android.oneOf.0","typeLabel":"string"},{"type":"null","description":"The Android destination URL for the short link for Android device targeting.","isRequired":true,"uniqueKey":"items.[INDEX].android.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].android","typeLabel":"string | null"},"geo":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","format":"uri","uniqueKey":"items.[INDEX].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":"items.[INDEX].geo.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","format":"uri","uniqueKey":"items.[INDEX].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":"items.[INDEX].geo.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].geo","typeLabel":"object | null"},"publicStats":{"type":"boolean","default":false,"description":"Whether the short link's stats are publicly accessible.","isRequired":true,"uniqueKey":"items.[INDEX].publicStats","typeLabel":"boolean"},"tags":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the tag.","isRequired":true,"uniqueKey":"items.[INDEX].tags.oneOf.0.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"The name of the tag.","isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].tags.oneOf.0.items.[INDEX].color","typeLabel":"enum\u003cstring>"}},"required":["id","name","color"],"title":"LinkTag","uniqueKey":"items.[INDEX].tags.oneOf.0.items.[INDEX]","typeLabel":"LinkTag · object"},"description":"The tags assigned to the short link.","isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].tags.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].tags","typeLabel":"LinkTag · object[] | null"},"folderId":{"oneOf":[{"type":"string","description":"The unique ID of the folder assigned to the short link.","isRequired":true,"uniqueKey":"items.[INDEX].folderId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The unique ID of the folder assigned to the short link.","isRequired":true,"uniqueKey":"items.[INDEX].folderId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].folderId","typeLabel":"string | null"},"webhookIds":{"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX].webhookIds.items.[INDEX]","typeLabel":"string"},"description":"The IDs of the webhooks that the short link is associated with.","isRequired":true,"uniqueKey":"items.[INDEX].webhookIds","typeLabel":"string[]"},"comments":{"oneOf":[{"type":"string","description":"The comments for the short link.","isRequired":true,"uniqueKey":"items.[INDEX].comments.oneOf.0","typeLabel":"string"},{"type":"null","description":"The comments for the short link.","isRequired":true,"uniqueKey":"items.[INDEX].comments.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].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":"items.[INDEX].qrCode","typeLabel":"string\u003curi>"},"utm_source":{"oneOf":[{"type":"string","description":"The UTM source of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].utm_source.oneOf.0","typeLabel":"string"},{"type":"null","description":"The UTM source of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].utm_source.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].utm_source","typeLabel":"string | null"},"utm_medium":{"oneOf":[{"type":"string","description":"The UTM medium of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].utm_medium.oneOf.0","typeLabel":"string"},{"type":"null","description":"The UTM medium of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].utm_medium.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].utm_medium","typeLabel":"string | null"},"utm_campaign":{"oneOf":[{"type":"string","description":"The UTM campaign of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].utm_campaign.oneOf.0","typeLabel":"string"},{"type":"null","description":"The UTM campaign of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].utm_campaign.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].utm_campaign","typeLabel":"string | null"},"utm_term":{"oneOf":[{"type":"string","description":"The UTM term of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].utm_term.oneOf.0","typeLabel":"string"},{"type":"null","description":"The UTM term of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].utm_term.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].utm_term","typeLabel":"string | null"},"utm_content":{"oneOf":[{"type":"string","description":"The UTM content of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].utm_content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The UTM content of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].utm_content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].utm_content","typeLabel":"string | null"},"userId":{"oneOf":[{"type":"string","description":"The user ID of the creator of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].userId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The user ID of the creator of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].userId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].userId","typeLabel":"string | null"},"workspaceId":{"type":"string","description":"The workspace ID of the short link.","isRequired":true,"uniqueKey":"items.[INDEX].workspaceId","typeLabel":"string"},"clicks":{"type":"number","default":0,"description":"The number of clicks on the short link.","isRequired":true,"uniqueKey":"items.[INDEX].clicks","typeLabel":"number"},"leads":{"type":"number","default":0,"description":"The number of leads the short link has generated.","isRequired":true,"uniqueKey":"items.[INDEX].leads","typeLabel":"number"},"conversions":{"type":"number","default":0,"description":"The number of leads that converted to paying customers.","isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].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":"items.[INDEX].saleAmount","typeLabel":"number"},"lastClicked":{"oneOf":[{"type":"string","description":"The date and time when the short link was last clicked.","isRequired":true,"uniqueKey":"items.[INDEX].lastClicked.oneOf.0","typeLabel":"string"},{"type":"null","description":"The date and time when the short link was last clicked.","isRequired":true,"uniqueKey":"items.[INDEX].lastClicked.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].lastClicked","typeLabel":"string | null"},"createdAt":{"type":"string","description":"The date and time when the short link was created.","isRequired":true,"uniqueKey":"items.[INDEX].createdAt","typeLabel":"string"},"updatedAt":{"type":"string","description":"The date and time when the short link was last updated.","isRequired":true,"uniqueKey":"items.[INDEX].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":"items.[INDEX].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":"items.[INDEX].tagId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"items.[INDEX].tagId","typeLabel":"string | null"},"projectId":{"type":"string","description":"Deprecated: Use `workspaceId` instead. The project ID of the short link.","deprecated":true,"isRequired":true,"uniqueKey":"items.[INDEX].projectId","typeLabel":"string"},"testVariants":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","isRequired":true,"uniqueKey":"items.[INDEX].testVariants.oneOf.0.items.[INDEX].url","typeLabel":"string"},"percentage":{"type":"number","minimum":10,"maximum":90,"isRequired":true,"uniqueKey":"items.[INDEX].testVariants.oneOf.0.items.[INDEX].percentage","typeLabel":"number"}},"required":["url","percentage"],"uniqueKey":"items.[INDEX].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":"items.[INDEX].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":"items.[INDEX].testVariants.oneOf.1","typeLabel":"null"}],"uniqueKey":"items.[INDEX].testVariants","typeLabel":"object[] | null"},"testStartedAt":{"oneOf":[{"type":"string","description":"The date and time when the tests started.","uniqueKey":"items.[INDEX].testStartedAt.oneOf.0","typeLabel":"string"},{"type":"null","description":"The date and time when the tests started.","uniqueKey":"items.[INDEX].testStartedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"items.[INDEX].testStartedAt","typeLabel":"string | null"},"testCompletedAt":{"oneOf":[{"type":"string","description":"The date and time when the tests were or will be completed.","uniqueKey":"items.[INDEX].testCompletedAt.oneOf.0","typeLabel":"string"},{"type":"null","description":"The date and time when the tests were or will be completed.","uniqueKey":"items.[INDEX].testCompletedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"items.[INDEX].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":"items.[INDEX]","typeLabel":"Link · object"},"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"},"56d4cd96-48aa-449b-b624-456fd8c83653":{"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"},"dc5f91d1-02b4-411a-b998-8d79cfb0cf2d":{"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"},"5d09cb1a-28d4-4ee9-b2b2-bf732968044c":{"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"},"477bea31-88d4-4b77-8828-5e859da6165e":{"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"},"ce260efd-9b2b-4e6d-adfb-70c3c3f74989":{"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"},"19d92d74-ea93-4751-b8e4-e7d753fc0af3":{"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"},"3875d9f8-a6e8-4557-878d-847ab68be0fa":{"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"},"d654bc7f-5147-4572-9b3d-3773f9c0b048":{"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"},"ebfb6a7b-0de5-4eda-980a-5746f59ca9c9":{"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":{"30d6804a-2dd9-4a15-85c4-1ac6a699a1bd":{"token":{"type":"http","description":"Default authentication mechanism","scheme":"bearer","x-speakeasy-example":"DUB_API_KEY","scopes":[]}}},"servers":{"6a02befc-8d3e-42ea-bce2-50d9adc4376d":{"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://api.dub.co"},"subdomain":"7qrcodes","siteName":"Dub.co Docs","title":"Get list of links with the Dub.co API - API Reference","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T01:41:12.079Z","originalFileLocation":"api-reference/endpoint/retrieve-a-list-of-links.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 a list of links for the authenticated workspace. The list will be paginated and the provided query parameters allow filtering the returned links.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dub.co 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/7qrcodes/fqTKuqMvHjU1ezbK/_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/7qrcodes/fqTKuqMvHjU1ezbK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/7qrcodes/fqTKuqMvHjU1ezbK/_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/7qrcodes/fqTKuqMvHjU1ezbK/_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/7qrcodes/fqTKuqMvHjU1ezbK/_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/7qrcodes/fqTKuqMvHjU1ezbK/_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/7qrcodes/fqTKuqMvHjU1ezbK/_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/7qrcodes/fqTKuqMvHjU1ezbK/_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/7qrcodes/fqTKuqMvHjU1ezbK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get list of links with the Dub.co API - API Reference\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve a list of links for the authenticated workspace. The list will be paginated and the provided query parameters allow filtering the returned links.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dub.co Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.7qr.codes/api-reference/endpoint/retrieve-a-list-of-links\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://7qrcodes.mintlify.site/_mintlify/api/og/v2?division=Links\u0026amp;title=Retrieve+a+list+of+links\u0026amp;description=Retrieve+a+list+of+links+for+the+authenticated+workspace.+The+list+will+be+paginated+and+the+provided+query+parameters+allow+filtering+the+returned+links.\u0026amp;theme=6ed2d39d75d4b4b382756903\u0026amp;signature=cab903a7afa8e597a53dd955a1b90b7f62b562ab4cf1070242168fa75d331d22\">\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 list of links with the Dub.co API - API Reference\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve a list of links for the authenticated workspace. The list will be paginated and the provided query parameters allow filtering the returned links.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://7qrcodes.mintlify.site/_mintlify/api/og/v2?division=Links\u0026amp;title=Retrieve+a+list+of+links\u0026amp;description=Retrieve+a+list+of+links+for+the+authenticated+workspace.+The+list+will+be+paginated+and+the+provided+query+parameters+allow+filtering+the+returned+links.\u0026amp;theme=6ed2d39d75d4b4b382756903\u0026amp;signature=cab903a7afa8e597a53dd955a1b90b7f62b562ab4cf1070242168fa75d331d22\">\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/7qrcodes/fqTKuqMvHjU1ezbK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dub.co Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9563FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.7qr.codes/api-reference/endpoint/retrieve-a-list-of-links\">\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-list-of-links.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.7qr.codes/#organization\",\"name\":\"Dub.co Docs\",\"url\":\"https://docs.7qr.codes\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/7qrcodes/XmHmnCi2U7w3f53-/logos/logotype.svg?fit=max\u0026auto=format\u0026n=XmHmnCi2U7w3f53-\u0026q=85\u0026s=4af476a0c46b739f3d662608bfefc8f4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.7qr.codes#website\",\"name\":\"Dub.co Docs\",\"url\":\"https://docs.7qr.codes\",\"publisher\":{\"@id\":\"https://docs.7qr.codes/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.7qr.codes/api-reference/endpoint/retrieve-a-list-of-links#webpage\",\"url\":\"https://docs.7qr.codes/api-reference/endpoint/retrieve-a-list-of-links\",\"name\":\"Retrieve a list of links\",\"description\":\"Retrieve a list of links for the authenticated workspace. The list will be paginated and the provided query parameters allow filtering the returned links.\",\"dateModified\":\"2026-01-07T01:41:12.079Z\",\"isPartOf\":{\"@id\":\"https://docs.7qr.codes#website\"},\"breadcrumb\":{\"@id\":\"https://docs.7qr.codes/api-reference/endpoint/retrieve-a-list-of-links#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.7qr.codes/api-reference/endpoint/retrieve-a-list-of-links#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Links\",\"item\":\"https://docs.7qr.codes/api-reference/endpoint/create-a-new-link\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Retrieve a list of links\",\"item\":\"https://docs.7qr.codes/api-reference/endpoint/retrieve-a-list-of-links\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.7qr.codes/api-reference/endpoint/retrieve-a-list-of-links#apireference\",\"headline\":\"Retrieve a list of links\",\"name\":\"Retrieve a list of links\",\"description\":\"Retrieve a list of links for the authenticated workspace. The list will be paginated and the provided query parameters allow filtering the returned links.\",\"url\":\"https://docs.7qr.codes/api-reference/endpoint/retrieve-a-list-of-links\",\"mainEntityOfPage\":{\"@id\":\"https://docs.7qr.codes/api-reference/endpoint/retrieve-a-list-of-links#webpage\"},\"dateModified\":\"2026-01-07T01:41:12.079Z\",\"publisher\":{\"@id\":\"https://docs.7qr.codes/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.7qr.codes#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dub.co Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Dub.co Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/retrieve-a-list-of-links.md","siteName":"Dub.co Docs","nav":{"global":{"anchors":[{"anchor":"Help Center","href":"https://dub.co/help","icon":"question"},{"anchor":"GitHub","href":"https://github.com/dubinc/dub","icon":"github"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Rate limits","href":"/api-reference/rate-limits"},{"title":"Errors","href":"/api-reference/errors"}]},{"group":"Links","pages":[{"openapi":"post /links","title":"Create a link","href":"/api-reference/endpoint/create-a-new-link"},{"openapi":"get /links/info","title":"Retrieve a link","href":"/api-reference/endpoint/retrieve-a-link"},{"openapi":"put /links/{linkId}","title":null,"href":"/api-reference/endpoint/edit-a-link"},{"openapi":"delete /links/{linkId}","description":"Delete a link for the authenticated workspace.","title":"Delete a link","href":"/api-reference/endpoint/delete-a-link"},{"openapi":"get /links","title":"Retrieve a list of links","href":"/api-reference/endpoint/retrieve-a-list-of-links"},{"openapi":"get /links/count","description":"Retrieve the number of links for the authenticated workspace. The provided query parameters allow filtering the returned links.","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"}]},{"group":"QR Codes","pages":[{"title":"Retrieve a QR code","openapi":"get /qr","href":"/api-reference/endpoint/retrieve-a-qr-code"}]},{"group":"Analytics","pages":[{"openapi":"get /analytics/clicks","title":null,"href":"/api-reference/endpoint/retrieve-clicks"},{"openapi":"get /analytics/timeseries","title":null,"href":"/api-reference/endpoint/retrieve-timeseries"},{"openapi":"get /analytics/country","title":null,"href":"/api-reference/endpoint/retrieve-country"},{"openapi":"get /analytics/city","title":null,"href":"/api-reference/endpoint/retrieve-city"},{"openapi":"get /analytics/device","title":null,"href":"/api-reference/endpoint/retrieve-device"},{"openapi":"get /analytics/browser","title":null,"href":"/api-reference/endpoint/retrieve-browser"},{"openapi":"get /analytics/os","title":null,"href":"/api-reference/endpoint/retrieve-os"},{"openapi":"get /analytics/referer","title":null,"href":"/api-reference/endpoint/retrieve-referer"},{"openapi":"get /analytics/top_links","title":null,"href":"/api-reference/endpoint/retrieve-top-links"},{"openapi":"get /analytics/top_urls","title":null,"href":"/api-reference/endpoint/retrieve-top-urls"}]},{"group":"Workspaces","pages":[{"openapi":"post /workspaces","title":null,"href":"/api-reference/endpoint/create-a-new-workspace"},{"openapi":"get /workspaces/{idOrSlug}","title":"Retrieve a workspace","href":"/api-reference/endpoint/retrieve-a-workspace"},{"openapi":"get /workspaces","title":null,"href":"/api-reference/endpoint/retrieve-a-list-of-workspaces"}]},{"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"}]}]}]},"basePath":"","title":"Get list of links with the Dub.co API - API Reference","deploymentId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","buildId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DUG0fxZu.js","snippetPresets-Ba5aWAdQ.js","utils-GxQLQihZ.js","style-to-object-BY3JEAdk.js","utils-WKMM_gjD.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Bo9LYdaA.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DwYjaFhs.js","_Uint8Array-DDE2Hehm.js","isObject-FP1Yky1u.js","ApiExamples-DhR-5ORn.js","usePlaygroundInputsStore-BaYqfAgH.js","shallow-BC7UwQwD.js","isEqual-gcN6MEQu.js","CodeSnippets-B8P54LrN.js","CodeSnippet-Czwn5OJE.js","use-playground-group-access-C3A6I116.js","Page-CUkc1DBo.js","api-description-markdown-CDE0Fpj5.js","DynamicMarkdown-F4EfLno9.js","SectionHeading-DMe18In2.js","MethodPill-CW7tTaiB.js","getPastedJson-DB5smC0Q.js","Check2Icon-DDdveNjm.js","axios-CsQoIw0U.js","Markdown-BLge-GTN.js","AssistantPageLink-BFI2wFhH.js","dist-C1RpOC6K.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}