The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Improve intro docs
Steven Tey4bd3906cc22a
diff --git a/apps/docs/data-model.mdx b/apps/docs/data-model.mdxnew file mode 100644index 0000000000..690cf8f001--- /dev/null+++ b/apps/docs/data-model.mdx@@ -0,0 +1,47 @@+---+title: Data model+description: "A quick overview of how Dub is structured."+---++import WorkspaceResponse from "/snippets/workspace-response.mdx";+import LinkResponse from "/snippets/link-response.mdx";+import DomainResponse from "/snippets/domain-response.mdx";+import TagResponse from "/snippets/tag-response.mdx";++Whether you are using Dub's [API](/api-reference/introduction) or not, this page is a quick way to understand how Dub works.++Within Dub, all data belongs to a [**Workspace**](#workspace). Within a workspace, you have [Links](#links), [Domains](#domains), [Tags](#tags), and more.++## Workspace++[Workspaces](https://dub.co/help/article/what-is-a-workspace) is the defacto way of organizing your links and working with your team on Dub. You can think of a Dub workspace like a workspace on Slack or Discord – it's a shared space where you can [invite your team members](https://dub.co/help/article/how-to-invite-teammates) to collaborate on links.++When interacting with Dub's API, you will also need to specify the [Workspace ID](/api-reference/introduction#workspace-id) to perform any operation. You can find the workspace ID under the **General** settings page of your workspace.++<Accordion title="Workspace model">+ <WorkspaceResponse />+</Accordion>++## Links++Links are the bread and butter of Dub. You can shorten any URL to a Dub link, which you can then share with your audience. Links can be [created](/api-reference/endpoint/create-a-new-link), [updated](/api-reference/endpoint/edit-a-link), and [deleted](/api-reference/endpoint/delete-a-link) via the [Dub API](/api-reference/introduction) or the [Dub dashboard](https://app.dub.co).++<Accordion title="Link model">+ <LinkResponse />+</Accordion>++## Domains++Domains are the URLs that you use to shorten your links. You can add multiple domains to a workspace, and each domain has its own limits.++<Accordion title="Domain model">+ <DomainResponse />+</Accordion>++## Tags++Tags are a way to organize your links. You can add tags to your links to categorize them and make them easier to find.++<Accordion title="Tag model">+ <TagResponse />+</Accordion>diff --git a/apps/docs/examples.mdx b/apps/docs/examples.mdxindex 7459631c1c..32cd903394 100644--- a/apps/docs/examples.mdx+++ b/apps/docs/examples.mdx@@ -5,6 +5,14 @@ description: "Explore ideas and examples of what you can build with the Dub.co A---<CardGroup cols={2}>+ <Card+ title="OSS Gallery"+ icon="github"+ href="https://github.com/dubinc/oss-gallery"+ color="#333333"+ >+ Open-source gallery built with the Dub.co Typescript SDK+ </Card><Cardtitle="Dublet"icon="github"diff --git a/apps/docs/images/thumbnail.png b/apps/docs/images/logo-background-gradient.pngsimilarity index 100%rename from apps/docs/images/thumbnail.pngrename to apps/docs/images/logo-background-gradient.pngdiff --git a/apps/docs/images/thumbnail.jpg b/apps/docs/images/thumbnail.jpgnew file mode 100644index 0000000000..ce555043edBinary files /dev/null and b/apps/docs/images/thumbnail.jpg differdiff --git a/apps/docs/introduction.mdx b/apps/docs/introduction.mdxindex b314afc2a0..f9512768f1 100644--- a/apps/docs/introduction.mdx+++ b/apps/docs/introduction.mdx@@ -1,53 +1,63 @@---title: Introduction-"og:title": "Getting Started with Dub.co - Documentation"-description: "Dub.co is the open-source link management infrastructure for modern marketing teams."+"og:title": "Getting Started with Dub - Documentation"+description: "Dub is the link management platform for modern marketing teams."---<Frame><imgclassName="rounded-lg border border-gray-100"- src="https://assets.dub.co/thumbnail.jpg"- alt="Dub.co Thumbnail"+ src="/images/thumbnail.jpg"+ alt="Dub Thumbnail"width="1200"height="630"/></Frame>+Our mission is to reimagine the role of links – one of the most foundational pieces of the web – from being a simple **"resource locator"** (URL) to a full **attribution engine** – visualizing the user journey from the first click to the final conversion event.+## FeaturesHere are some of the features that Dub offers:-- [Advanced Analytics](https://dub.co/features/analytics)-- [Branded Links](https://dub.co/features/branded-links)-- [QR Codes](https://dub.co/features/qr-codes)-- [Personalization](https://dub.co/features/personalization)-- [Team Collaboration](https://dub.co/features/collaboration)--## Tech Stack--Dub's codebase is [fully open-source](https://d.to/github) and is built on top of the following technologies:--- [Next.js](https://nextjs.org/) – framework-- [TypeScript](https://www.typescriptlang.org/) – language-- [Tailwind](https://tailwindcss.com/) – CSS-- [Upstash](https://upstash.com/) – redis-- [Tinybird](https://tinybird.com/) – analytics-- [PlanetScale](https://planetscale.com/) – database-- [NextAuth.js](https://next-auth.js.org/) – auth-- [BoxyHQ](https://boxyhq.com/enterprise-sso) – SSO/SAML-- [Turborepo](https://turbo.build/repo) – monorepo-- [Stripe](https://stripe.com/) – payments-- [Postmark](https://postmarkapp.com/) – emails-- [Vercel](https://vercel.com/) – deployments+<AccordionGroup>+ <Accordion title="Advanced Analytics" icon="chart-line">+ Dub provides powerful analytics for your links, including geolocation,+ device, browser, and referrer information. [Learn+ more](https://Dub/features/analytics)+ </Accordion>+ <Accordion title="Branded Links" icon="link">+ Dub offers free custom domains on all plans for you to create branded links+ that stand out. [Learn more](https://Dub/features/branded-links)+ </Accordion>+ <Accordion title="QR Codes" icon="qrcode">+ QR codes and short links are like peas in a pod. Dub offers free QR codes+ for every short link you create – both via our dashboard and+ [programmatically](/api-reference/endpoint/retrieve-a-qr-code). [Learn+ more](https://Dub/features/qr-codes)+ </Accordion>+ <Accordion title="Personalization" icon="user">+ Customize your link's behavior with [device+ targeting](https://Dub/help/article/device-targeting), [geo+ targeting](https://Dub/help/article/geo-targeting), [link+ expiration](https://Dub/help/article/link-expiration), [link+ cloaking](https://Dub/help/article/link-cloaking), and more. [Learn+ more](https://Dub/features/personalization)+ </Accordion>+ <Accordion title="Team Collaboration" icon="users">+ Invite your teammates to collaborate on your links. For enterprises, Dub+ offers [SAML SSO](https://Dub/help/category/saml-sso) for better security.+ [Learn more](https://Dub/features/collaboration)+ </Accordion>+</AccordionGroup>## Getting StartedTo get started with Dub, you can do any of the following:<CardGroup cols={2}>- <Card title="Create a free account" icon="code" href="https://app.dub.co">- Create a free account to get started with Dub+ <Card title="Quickstart Guide" icon="code" href="/quickstart">+ Follow our quickstart guide to get started with Dub</Card><Card title="Try our API" icon="code" href="/api-reference/introduction">Learn how to use Dub's API to create and manage links programmaticallydiff --git a/apps/docs/local-development.mdx b/apps/docs/local-development.mdxindex 3f67113afc..8706c37154 100644--- a/apps/docs/local-development.mdx+++ b/apps/docs/local-development.mdx@@ -6,8 +6,8 @@ description: "A guide on how to run Dub.co's codebase locally."<Frame><img- src="/images/thumbnail.png"- alt="Dub.co Thumbnail"+ src="/images/logo-background-gradient.png"+ alt="Dub.co Logo on a gradient background"width="1200"height="630"/>diff --git a/apps/docs/mint.json b/apps/docs/mint.jsonindex 78ed778a58..0be69c46f0 100644--- a/apps/docs/mint.json+++ b/apps/docs/mint.json@@ -56,12 +56,16 @@"navigation": [{"group": "Getting Started",- "pages": ["introduction", "local-development", "self-hosting"]+ "pages": ["introduction", "quickstart", "data-model"]},{"group": "Resources","pages": ["integrations", "examples"]},+ {+ "group": "Open source",+ "pages": ["local-development", "self-hosting"]+ },{"group": "API Reference","pages": [diff --git a/apps/docs/quickstart.mdx b/apps/docs/quickstart.mdxnew file mode 100644index 0000000000..3f037bb293--- /dev/null+++ b/apps/docs/quickstart.mdx@@ -0,0 +1,14 @@+---+title: Quickstart+description: "Everything you need to start using Dub.co"+---++<Frame>+ <img+ className="rounded-lg border border-gray-100"+ src="/images/thumbnail.jpg"+ alt="Dub.co Thumbnail"+ width="1200"+ height="630"+ />+</Frame>diff --git a/apps/docs/sdks/typescript/domains/add.mdx b/apps/docs/sdks/typescript/domains/add.mdxindex b6e16309e8..f944e692e3 100644--- a/apps/docs/sdks/typescript/domains/add.mdx+++ b/apps/docs/sdks/typescript/domains/add.mdx@@ -42,6 +42,8 @@ import DomainResponse from "/snippets/domain-response.mdx";an example of a link to be shortened.</ParamField>+## Response+<DomainResponse /><RequestExample>diff --git a/apps/docs/sdks/typescript/domains/list.mdx b/apps/docs/sdks/typescript/domains/list.mdxindex b492491c86..e46c097249 100644--- a/apps/docs/sdks/typescript/domains/list.mdx+++ b/apps/docs/sdks/typescript/domains/list.mdx@@ -10,6 +10,8 @@ import DomainResponse from "/snippets/domain-response.mdx";No arguments.+## Response+<DomainResponse /><RequestExample>diff --git a/apps/docs/sdks/typescript/domains/set-primary.mdx b/apps/docs/sdks/typescript/domains/set-primary.mdxindex d213cb233e..8f50e87a93 100644--- a/apps/docs/sdks/typescript/domains/set-primary.mdx+++ b/apps/docs/sdks/typescript/domains/set-primary.mdx@@ -12,6 +12,8 @@ import DomainResponse from "/snippets/domain-response.mdx";Name of the domain to set as primary. Eg. `acme.com`.</ParamField>+## Response+<DomainResponse /><RequestExample>diff --git a/apps/docs/sdks/typescript/domains/transfer.mdx b/apps/docs/sdks/typescript/domains/transfer.mdxindex f3fe3d0dbc..04747a8364 100644--- a/apps/docs/sdks/typescript/domains/transfer.mdx+++ b/apps/docs/sdks/typescript/domains/transfer.mdx@@ -16,6 +16,8 @@ import DomainResponse from "/snippets/domain-response.mdx";The ID of the new workspace to transfer the domain to.</ParamField>+## Response+<DomainResponse /><RequestExample>diff --git a/apps/docs/sdks/typescript/domains/update.mdx b/apps/docs/sdks/typescript/domains/update.mdxindex 9e915953fa..0206fb5935 100644--- a/apps/docs/sdks/typescript/domains/update.mdx+++ b/apps/docs/sdks/typescript/domains/update.mdx@@ -43,6 +43,8 @@ import DomainResponse from "/snippets/domain-response.mdx";an example of a link to be shortened.</ParamField>+## Response+<DomainResponse /><RequestExample>diff --git a/apps/docs/sdks/typescript/links/create-many.mdx b/apps/docs/sdks/typescript/links/create-many.mdxindex 323bc1999e..50ded17efe 100644--- a/apps/docs/sdks/typescript/links/create-many.mdx+++ b/apps/docs/sdks/typescript/links/create-many.mdx@@ -92,6 +92,8 @@ import LinkResponse from "/snippets/link-response.mdx";The Android destination URL for the short link for Android device targeting.</ParamField>+## Response+<LinkResponse /><RequestExample>diff --git a/apps/docs/sdks/typescript/links/create.mdx b/apps/docs/sdks/typescript/links/create.mdxindex ff92023480..6dcf89a732 100644--- a/apps/docs/sdks/typescript/links/create.mdx+++ b/apps/docs/sdks/typescript/links/create.mdx@@ -92,6 +92,8 @@ import LinkResponse from "/snippets/link-response.mdx";The Android destination URL for the short link for Android device targeting.</ParamField>+## Response+<LinkResponse /><RequestExample>diff --git a/apps/docs/sdks/typescript/links/get.mdx b/apps/docs/sdks/typescript/links/get.mdxindex 9f7bfea313..6e84ba60bc 100644--- a/apps/docs/sdks/typescript/links/get.mdx+++ b/apps/docs/sdks/typescript/links/get.mdx@@ -17,6 +17,8 @@ import LinkResponse from "/snippets/link-response.mdx";The key of the link to retrieve. E.g. for `d.to/github`, the key is `github`.</ParamField>+## Response+<LinkResponse /><RequestExample>diff --git a/apps/docs/sdks/typescript/links/list.mdx b/apps/docs/sdks/typescript/links/list.mdxindex 46961f00a2..e6c237a71d 100644--- a/apps/docs/sdks/typescript/links/list.mdx+++ b/apps/docs/sdks/typescript/links/list.mdx@@ -50,6 +50,8 @@ import LinkResponse from "/snippets/link-response.mdx";The page number for pagination (each page contains `100` links).</ParamField>+## Response+<LinkResponse /><RequestExample>diff --git a/apps/docs/sdks/typescript/links/update.mdx b/apps/docs/sdks/typescript/links/update.mdxindex e4dadf85ab..a5d35218a6 100644--- a/apps/docs/sdks/typescript/links/update.mdx+++ b/apps/docs/sdks/typescript/links/update.mdx@@ -90,6 +90,8 @@ import LinkResponse from "/snippets/link-response.mdx";The Android destination URL for the short link for Android device targeting.</ParamField>+## Response+<LinkResponse /><RequestExample>diff --git a/apps/docs/sdks/typescript/tags/create.mdx b/apps/docs/sdks/typescript/tags/create.mdxindex 7a7bae1649..f5463eb38a 100644--- a/apps/docs/sdks/typescript/tags/create.mdx+++ b/apps/docs/sdks/typescript/tags/create.mdx@@ -4,6 +4,8 @@ title: "Create"description: "Create a new tag for the authenticated workspace."---+import TagResponse from "/snippets/tag-response.mdx";+## Arguments<ParamField body="tag" type="string" required>@@ -17,17 +19,7 @@ description: "Create a new tag for the authenticated workspace."## Response-<ResponseField name="id" type="string" required>- The unique ID of the tag.-</ResponseField>--<ResponseField name="name" type="string" required>- The name of the tag.-</ResponseField>--<ResponseField name="color" type="string" required>- The color of the tag.-</ResponseField>+<TagResponse /><RequestExample>@@ -49,4 +41,4 @@ await dub.tags.create({}```-</ResponseExample>\ No newline at end of file+</ResponseExample>diff --git a/apps/docs/sdks/typescript/tags/list.mdx b/apps/docs/sdks/typescript/tags/list.mdxindex 3062d5c473..f483360678 100644--- a/apps/docs/sdks/typescript/tags/list.mdx+++ b/apps/docs/sdks/typescript/tags/list.mdx@@ -4,19 +4,11 @@ title: "List"description: "Retrieve a list of tags for the authenticated workspace."----## Response--<ResponseField name="id" type="string" required>- The unique ID of the tag.-</ResponseField>+import TagResponse from "/snippets/tag-response.mdx";-<ResponseField name="name" type="string" required>- The name of the tag.-</ResponseField>+## Response-<ResponseField name="color" type="string" required>- The color of the tag.-</ResponseField>+<TagResponse /><RequestExample>diff --git a/apps/docs/sdks/typescript/workspaces/create.mdx b/apps/docs/sdks/typescript/workspaces/create.mdxindex c15963b035..fe74419758 100644--- a/apps/docs/sdks/typescript/workspaces/create.mdx+++ b/apps/docs/sdks/typescript/workspaces/create.mdx@@ -1,9 +1,12 @@----title: "Create"+title: "dub.workspaces.create"+sidebarTitle: "Create""og:title": "dub.workspaces.create - Create a workspace - TypeScript SDK"description: "Create a new workspace for the authenticated user."---+import WorkspaceResponse from "/snippets/workspace-response.mdx";+## Arguments<ParamField body="name" type="string" required>@@ -20,90 +23,7 @@ description: "Create a new workspace for the authenticated user."## Response-<ResponseField name="id" type="string" required>- The unique ID of the workspace.-</ResponseField>--<ResponseField name="name" type="string" required>- The name of the workspace.-</ResponseField>--<ResponseField name="slug" type="string" required>- The slug of the workspace.-</ResponseField>--<ResponseField name="logo" type="string | null" required>- The logo of the workspace.-</ResponseField>--<ResponseField name="usage" type="number" required>- The usage of the workspace.-</ResponseField>--<ResponseField name="usageLimit" type="number" required>- The usage limit of the workspace.-</ResponseField>--<ResponseField name="linksUsage" type="number" required>- The links usage of the workspace.-</ResponseField>--<ResponseField name="linksLimit" type="number" required>- The links limit of the workspace.-</ResponseField>--<ResponseField name="domainsLimit" type="number" required>- The domains limit of the workspace.-</ResponseField>--<ResponseField name="tagsLimit" type="number" required>- The tags limit of the workspace.-</ResponseField>--<ResponseField name="usersLimit" type="number" required>- The users limit of the workspace.-</ResponseField>--<ResponseField name="plan" type="string" required>- The plan of the workspace.-</ResponseField>--<ResponseField name="stripeId" type="string | null" required>- The Stripe ID of the workspace.-</ResponseField>--<ResponseField name="billingCycleStart" type="number" required>- The date and time when the billing cycle starts for the workspace.-</ResponseField>--<ResponseField name="createdAt" type="string" required>- The date and time when the workspace was created.-</ResponseField>--<ResponseField name="users" type="object[]" required>-The role of the authenticated user in the workspace.-- <Expandable title="properties">- <ResponseField name="users.role" type="string" required>- The role of the authenticated user in the workspace.- </ResponseField>- </Expandable>-</ResponseField>--<ResponseField name="domains" type="object[]" required>-The domains of the workspace.-- <Expandable title="properties">- <ResponseField name="domains.slug" type="string">- The domain of the workspace.- </ResponseField>-- <ResponseField name="domains.primary" type="string">- Indicates if the domain is the primary domain.- </ResponseField>-- </Expandable>-</ResponseField>+<WorkspaceResponse /><RequestExample>diff --git a/apps/docs/sdks/typescript/workspaces/get.mdx b/apps/docs/sdks/typescript/workspaces/get.mdxindex 81186b8ca5..f12f1cd8cf 100644--- a/apps/docs/sdks/typescript/workspaces/get.mdx+++ b/apps/docs/sdks/typescript/workspaces/get.mdx@@ -1,9 +1,12 @@----title: "Get"+title: "dub.workspaces.get"+sidebarTitle: "Get""og:title": "dub.workspaces.get - Retrieve a workspace - TypeScript SDK"description: "Retrieve a workspace for the authenticated user."---+import WorkspaceResponse from "/snippets/workspace-response.mdx";+## Arguments<ParamField body="idOrSlug" type="string" required>@@ -12,90 +15,7 @@ description: "Retrieve a workspace for the authenticated user."## Response-<ResponseField name="id" type="string" required>- The unique ID of the workspace.-</ResponseField>--<ResponseField name="name" type="string" required>- The name of the workspace.-</ResponseField>--<ResponseField name="slug" type="string" required>- The slug of the workspace.-</ResponseField>--<ResponseField name="logo" type="string | null" required>- The logo of the workspace.-</ResponseField>--<ResponseField name="usage" type="number" required>- The usage of the workspace.-</ResponseField>--<ResponseField name="usageLimit" type="number" required>- The usage limit of the workspace.-</ResponseField>--<ResponseField name="linksUsage" type="number" required>- The links usage of the workspace.-</ResponseField>--<ResponseField name="linksLimit" type="number" required>- The links limit of the workspace.-</ResponseField>--<ResponseField name="domainsLimit" type="number" required>- The domains limit of the workspace.-</ResponseField>--<ResponseField name="tagsLimit" type="number" required>- The tags limit of the workspace.-</ResponseField>--<ResponseField name="usersLimit" type="number" required>- The users limit of the workspace.-</ResponseField>--<ResponseField name="plan" type="string" required>- The plan of the workspace.-</ResponseField>--<ResponseField name="stripeId" type="string | null" required>- The Stripe ID of the workspace.-</ResponseField>--<ResponseField name="billingCycleStart" type="number" required>- The date and time when the billing cycle starts for the workspace.-</ResponseField>--<ResponseField name="createdAt" type="string" required>- The date and time when the workspace was created.-</ResponseField>--<ResponseField name="users" type="object[]" required>-The role of the authenticated user in the workspace.-- <Expandable title="properties">- <ResponseField name="users.role" type="string" required>- The role of the authenticated user in the workspace.- </ResponseField>- </Expandable>-</ResponseField>--<ResponseField name="domains" type="object[]" required>-The domains of the workspace.-- <Expandable title="properties">- <ResponseField name="domains.slug" type="string">- The domain of the workspace.- </ResponseField>-- <ResponseField name="domains.primary" type="string">- Indicates if the domain is the primary domain.- </ResponseField>-- </Expandable>-</ResponseField>+<WorkspaceResponse /><RequestExample>diff --git a/apps/docs/sdks/typescript/workspaces/list.mdx b/apps/docs/sdks/typescript/workspaces/list.mdxindex d9919da445..4142c75469 100644--- a/apps/docs/sdks/typescript/workspaces/list.mdx+++ b/apps/docs/sdks/typescript/workspaces/list.mdx@@ -1,95 +1,15 @@----title: "List"+title: "dub.workspaces.list"+sidebarTitle: "List""og:title": "dub.workspaces.list - Retrieve a list of workspaces - TypeScript SDK"description: "Retrieve a list of workspaces for the authenticated user."----## Response--<ResponseField name="id" type="string" required>- The unique ID of the workspace.-</ResponseField>--<ResponseField name="name" type="string" required>- The name of the workspace.-</ResponseField>--<ResponseField name="slug" type="string" required>- The slug of the workspace.-</ResponseField>--<ResponseField name="logo" type="string | null" required>- The logo of the workspace.-</ResponseField>--<ResponseField name="usage" type="number" required>- The usage of the workspace.-</ResponseField>--<ResponseField name="usageLimit" type="number" required>- The usage limit of the workspace.-</ResponseField>--<ResponseField name="linksUsage" type="number" required>- The links usage of the workspace.-</ResponseField>--<ResponseField name="linksLimit" type="number" required>- The links limit of the workspace.-</ResponseField>--<ResponseField name="domainsLimit" type="number" required>- The domains limit of the workspace.-</ResponseField>--<ResponseField name="tagsLimit" type="number" required>- The tags limit of the workspace.-</ResponseField>+import WorkspaceResponse from "/snippets/workspace-response.mdx";-<ResponseField name="usersLimit" type="number" required>- The users limit of the workspace.-</ResponseField>--<ResponseField name="plan" type="string" required>- The plan of the workspace.-</ResponseField>--<ResponseField name="stripeId" type="string | null" required>- The Stripe ID of the workspace.-</ResponseField>--<ResponseField name="billingCycleStart" type="number" required>- The date and time when the billing cycle starts for the workspace.-</ResponseField>--<ResponseField name="createdAt" type="string" required>- The date and time when the workspace was created.-</ResponseField>--<ResponseField name="users" type="object[]" required>-The role of the authenticated user in the workspace.-- <Expandable title="properties">- <ResponseField name="users.role" type="string" required>- The role of the authenticated user in the workspace.- </ResponseField>- </Expandable>-</ResponseField>--<ResponseField name="domains" type="object[]" required>-The domains of the workspace.-- <Expandable title="properties">- <ResponseField name="domains.slug" type="string">- The domain of the workspace.- </ResponseField>-- <ResponseField name="domains.primary" type="string">- Indicates if the domain is the primary domain.- </ResponseField>+## Response- </Expandable>-</ResponseField>+<WorkspaceResponse /><RequestExample>diff --git a/apps/docs/self-hosting.mdx b/apps/docs/self-hosting.mdxindex e07e9c10bc..cff37101ad 100644--- a/apps/docs/self-hosting.mdx+++ b/apps/docs/self-hosting.mdx@@ -6,8 +6,8 @@ description: "An end-to-end guide on how to self-host Dub.co – the open-source<Frame><img- src="/images/thumbnail.png"- alt="Dub.co Thumbnail"+ src="/images/logo-background-gradient.png"+ alt="Dub.co Logo on a gradient background"width="1200"height="630"/>diff --git a/apps/docs/snippets/domain-response.mdx b/apps/docs/snippets/domain-response.mdxindex 2f70ff959a..fcc9081ca3 100644--- a/apps/docs/snippets/domain-response.mdx+++ b/apps/docs/snippets/domain-response.mdx@@ -1,5 +1,3 @@-## Response-<ParamField body="slug" type="string" required>The domain name.</ParamField>diff --git a/apps/docs/snippets/link-response.mdx b/apps/docs/snippets/link-response.mdxindex 3fbe38889d..5e7b6ac85d 100644--- a/apps/docs/snippets/link-response.mdx+++ b/apps/docs/snippets/link-response.mdx@@ -1,5 +1,3 @@-## Response-<ResponseField name="id" type="string" required>The unique ID of the short link.</ResponseField>diff --git a/apps/docs/snippets/tag-response.mdx b/apps/docs/snippets/tag-response.mdxnew file mode 100644index 0000000000..1b2f0b8200--- /dev/null+++ b/apps/docs/snippets/tag-response.mdx@@ -0,0 +1,11 @@+<ResponseField name="id" type="string" required>+ The unique ID of the tag.+</ResponseField>++<ResponseField name="name" type="string" required>+ The name of the tag.+</ResponseField>++<ResponseField name="color" type="string" required>+ The color of the tag.+</ResponseField>diff --git a/apps/docs/snippets/workspace-response.mdx b/apps/docs/snippets/workspace-response.mdxnew file mode 100644index 0000000000..bbfa88e441--- /dev/null+++ b/apps/docs/snippets/workspace-response.mdx@@ -0,0 +1,84 @@+<ResponseField name="id" type="string" required>+ The unique ID of the workspace.+</ResponseField>++<ResponseField name="name" type="string" required>+ The name of the workspace.+</ResponseField>++<ResponseField name="slug" type="string" required>+ The slug of the workspace.+</ResponseField>++<ResponseField name="logo" type="string | null" required>+ The logo of the workspace.+</ResponseField>++<ResponseField name="usage" type="number" required>+ The usage of the workspace.+</ResponseField>++<ResponseField name="usageLimit" type="number" required>+ The usage limit of the workspace.+</ResponseField>++<ResponseField name="linksUsage" type="number" required>+ The links usage of the workspace.+</ResponseField>++<ResponseField name="linksLimit" type="number" required>+ The links limit of the workspace.+</ResponseField>++<ResponseField name="domainsLimit" type="number" required>+ The domains limit of the workspace.+</ResponseField>++<ResponseField name="tagsLimit" type="number" required>+ The tags limit of the workspace.+</ResponseField>++<ResponseField name="usersLimit" type="number" required>+ The users limit of the workspace.+</ResponseField>++<ResponseField name="plan" type="string" required>+ The plan of the workspace.+</ResponseField>++<ResponseField name="stripeId" type="string | null" required>+ The Stripe ID of the workspace.+</ResponseField>++<ResponseField name="billingCycleStart" type="number" required>+ The date and time when the billing cycle starts for the workspace.+</ResponseField>++<ResponseField name="createdAt" type="string" required>+ The date and time when the workspace was created.+</ResponseField>++<ResponseField name="users" type="object[]" required>+The role of the authenticated user in the workspace.++ <Expandable title="properties">+ <ResponseField name="users.role" type="string" required>+ The role of the authenticated user in the workspace.+ </ResponseField>+ </Expandable>+</ResponseField>++<ResponseField name="domains" type="object[]" required>+The domains of the workspace.++ <Expandable title="properties">+ <ResponseField name="domains.slug" type="string">+ The domain of the workspace.+ </ResponseField>++ <ResponseField name="domains.primary" type="string">+ Indicates if the domain is the primary domain.+ </ResponseField>++ </Expandable>+</ResponseField>