> ## Documentation Index
> Fetch the complete documentation index at: https://dub.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Data model

> A quick overview of how Dub is structured.

Whether you are using Dub's [API](/docs/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)
* [Analytics](#analytics)
* [Partners](#partners)
* [Customers](#customers)
* [Tags](#tags)
* [Domains](#domains)

When interacting with Dub's API, you'll also need to create a [workspace API key](/docs/api-reference/authentication#api-keys) to authenticate your requests.

## 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](/docs/api-reference/links/create), [updated](/docs/api-reference/links/update), and [deleted](/docs/api-reference/links/delete) via the [Dub API](/docs/api-reference/introduction) or the [Dub dashboard](https://app.dub.co).

## Domains

On Dub, you can [add custom domains](/help/article/how-to-add-custom-domain) to create branded short links for better brand recognition. You can also [set a primary domain](/help/article/how-to-set-primary-domain) for it to be used as the default domain for new links (both via the API and the dashboard).

## Tags

Tags are a way to organize your links. You can [add tags to your links](/help/article/how-to-use-tags) to categorize them and make them easier to find. You can also [filter analytics by tags](https://dub.co/blog/introducing-tags#filtering-analytics-by-tags) to get a better understanding of how your campaigns are performing.

## Workspace

[Workspaces](/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](/help/article/how-to-invite-teammates) to collaborate on links.
