Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/check-page-descriptions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Check page descriptions

on:
pull_request:
push:
branches:
- main

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: node scripts/check-page-descriptions.mjs
12 changes: 12 additions & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
"$schema": "https://mintlify.com/docs.json",
"theme": "aspen",
"name": "Dub",
"description": "Dub is the link attribution platform for running partner programs, tracking conversions and creating short links. These docs cover conversion tracking, the Dub API and Partner API, SDKs, webhooks and postbacks, and the Help Center.",
"markdown": {
"instructions": [
"Use Dub to run partner and affiliate programs (partners, commissions, payouts, bounties), to track clicks, leads and sales from links, and to create and manage short links with analytics.",
"Every page is available as Markdown: add `.md` to its URL, for example https://dub.co/docs/api-reference/introduction.md. Search these docs with the docs MCP server at https://dub.co/docs/mcp.",
"To act on a Dub workspace, use the Dub MCP server at https://mcp.dub.sh/mcp/dub-partners (https://dub.co/docs/mcp-server.md) or the Dub API at https://api.dub.co with a workspace API key (https://dub.co/docs/api-reference/authentication.md).",
"Partners who want their own commissions, payouts, customers and messages across programs use the Dub Partners MCP server at https://mcp.dub.co/p/mcp (https://dub.co/docs/partner-api-reference/mcp-server.md) or the Partner API.",
"OpenAPI specs: the Dub API at https://dub.co/openapi.json and the Partner API at https://dub.co/partner-openapi.json.",
"Test conversion tracking, commissions and payouts in test mode: a staging workspace with `dub_test_` API keys and `dub_pk_test_` publishable keys, never production keys (https://dub.co/docs/testing.md).",
"Ask the user before any request that creates, updates or deletes data, sends a message, or affects commissions or payouts."
]
},
"colors": {
"primary": "#155dfc",
"light": "#155dfc",
Expand Down
4 changes: 3 additions & 1 deletion docs.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Introduction
title: "Introduction to Dub"
sidebarTitle: "Introduction"
description: "Dub is a link attribution platform for running partner programs, tracking conversions and creating short links, with a REST API, SDKs and webhooks."
"og:image": /images/docs-og.jpg
---

Expand All @@ -19,7 +21,7 @@

Here are some of the features that Dub offers:

- [Partner programs](/help/article/dub-partners) (affiliates, influencers, user referrals)

Check warning on line 24 in docs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'influencers'?
- [Marketing attribution](/docs/concepts/attribution)
- [Real-time analytics](/docs/concepts/analytics/introduction)
- [Short links](/docs/concepts/links/introduction) (including [bulk link creation](/docs/concepts/links/bulk-operations))
Expand All @@ -35,7 +37,7 @@
icon="users"
href="/help/article/setting-up-your-program"
>
Scale partnerships with affiliates, influencers, and user referrals

Check warning on line 40 in docs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'influencers'?
</Card>
<Card
title="Track conversion events"
Expand Down
1 change: 1 addition & 0 deletions docs/api-reference/authentication.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "API Authentication"
sidebarTitle: "Authentication"
description: "Dub API requests from your server use a workspace API key, while client-side conversion tracking uses a publishable key that is safe to include in frontend code."
---

## Introduction
Expand Down
3 changes: 2 additions & 1 deletion docs/api-reference/errors.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Errors"
title: "Dub API errors"
sidebarTitle: "Errors"
og:title: "Dub API – Errors"
description: "Learn about the error codes the Dub API returns and how to fix them."
---
Expand Down
3 changes: 2 additions & 1 deletion docs/api-reference/introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Introduction"
title: "Introduction to the Dub API"
sidebarTitle: "Introduction"
description: "Learn how to use Dub's API to programmatically manage resources in your Dub workspace."
og:title: "Dub API – Introduction"
---
Expand Down Expand Up @@ -133,7 +134,7 @@
<Accordion title="bad_request ">

- **Status:** 400
- **Problem:** The request is malformed, either missing required fields, using wrong datatypes, or being syntactically incorrect.

Check warning on line 137 in docs/api-reference/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'datatypes'?
- **Solution:** Check the request and make sure it is properly formatted.

</Accordion>
Expand Down
1 change: 1 addition & 0 deletions docs/concepts/analytics/device.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Device data
description: "Group link analytics by device type, browser or operating system with the `groupBy` parameter of the Analytics API."
og:title: "Dub Analytics API – Aggregating analytics by device"
---

Expand Down
3 changes: 2 additions & 1 deletion docs/concepts/analytics/introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Introduction
title: "Introduction to the Analytics API"
sidebarTitle: "Introduction"
"og:title": "Dub Analytics API – Introduction"
description: "Learn how to use Dub's Analytics API to build real-time analytics dashboards for your links."
---
Expand Down Expand Up @@ -491,7 +492,7 @@

</CodeGroup>

### Timeseries data

Check warning on line 495 in docs/concepts/analytics/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Timeseries'?

<CodeGroup>

Expand Down
1 change: 1 addition & 0 deletions docs/concepts/analytics/location.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Location data
description: "Group link analytics by country, region, city or continent with the `groupBy` parameter of the Analytics API."
og:title: "Dub Analytics API – Aggregating analytics by location"
---

Expand Down
1 change: 1 addition & 0 deletions docs/concepts/analytics/referrers.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Referrers data
description: "Group link analytics by referrer domain or full referrer URL with the `groupBy` parameter of the Analytics API."
og:title: "Dub Analytics API – Aggregating analytics by referrers"
---

Expand Down
1 change: 1 addition & 0 deletions docs/concepts/analytics/utm.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: UTM data
description: "Group link analytics by UTM source, medium, campaign, term or content with the `groupBy` parameter of the Analytics API."
og:title: "Dub Analytics API – Aggregating analytics by UTM"
---

Expand Down
3 changes: 2 additions & 1 deletion docs/concepts/links/introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Introduction
title: "Introduction to the Links API"
sidebarTitle: "Introduction"
og:title: "Dub Links API – Introduction"
description: "Learn how to use Dub to programmatically create, update, and delete links at scale."
---
Expand Down
3 changes: 2 additions & 1 deletion docs/integrations.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Introduction"
title: "Introduction to Dub integrations"
sidebarTitle: "Introduction"
"og:title": "Dub Integrations: Connect Dub to tools and services"
description: "Integrate Dub with your favorite tools and services."
---
Expand Down Expand Up @@ -81,7 +82,7 @@
/>
}
>
Integrate Dub with Wordpress

Check warning on line 85 in docs/integrations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Use 'WordPress' instead of 'Wordpress'.
</Card>
<Card
title="Raycast"
Expand All @@ -93,7 +94,7 @@
/>
}
>
Integrate Dub with Raycast

Check warning on line 97 in docs/integrations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Raycast'?
</Card>
<Card
title="Slack"
Expand Down
1 change: 1 addition & 0 deletions docs/partner-api-reference/commissions/list.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
openapi: https://dub.co/partner-openapi.json GET /commissions
title: "Partner API: List all commissions"
sidebarTitle: "List commissions"
---

Expand Down
1 change: 1 addition & 0 deletions docs/partner-api-reference/customers/list.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
openapi: https://dub.co/partner-openapi.json GET /customers
title: "Partner API: List all customers"
sidebarTitle: "List customers"
---

Expand Down
3 changes: 2 additions & 1 deletion docs/partner-api-reference/errors.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Errors"
title: "Partner API errors"
sidebarTitle: "Errors"
og:title: "Dub Partner API – Errors"
description: "Learn about the error codes the Dub Partner API returns and how to fix them."
---
Expand Down
3 changes: 2 additions & 1 deletion docs/partner-api-reference/introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Introduction
title: "Introduction to the Partner API"
sidebarTitle: "Introduction"
description: "Learn how to use Dub's Partner API to access your commissions, payouts, referred customers and programs."
og:title: Dub Partner API – Introduction
---
Expand Down
1 change: 1 addition & 0 deletions docs/partner-api-reference/messages/list.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
openapi: https://dub.co/partner-openapi.json GET /messages
title: "Partner API: List all messages"
sidebarTitle: "List messages"
---

Expand Down
1 change: 1 addition & 0 deletions docs/partner-api-reference/messages/send.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
openapi: https://dub.co/partner-openapi.json POST /messages
title: "Partner API: Send a message to a program"
sidebarTitle: "Send a message"
---

Expand Down
1 change: 1 addition & 0 deletions docs/partner-api-reference/payouts/list.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
openapi: https://dub.co/partner-openapi.json GET /payouts
title: "Partner API: List all payouts"
sidebarTitle: "List payouts"
---

Expand Down
1 change: 1 addition & 0 deletions docs/partner-api-reference/programs/list-network.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
openapi: https://dub.co/partner-openapi.json GET /programs/network
title: "Partner API: List all programs in the partner network"
sidebarTitle: "List network programs"
---

Expand Down
1 change: 1 addition & 0 deletions docs/partner-api-reference/programs/list.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
openapi: https://dub.co/partner-openapi.json GET /programs
title: "Partner API: List all programs"
sidebarTitle: "List programs"
---

Expand Down
3 changes: 2 additions & 1 deletion docs/postbacks/event-types.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
title: Event types
title: "Postback event types"

Check warning on line 2 in docs/postbacks/event-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Postback'?
sidebarTitle: "Event types"
og:title: "Dub Postbacks – Event types"

Check warning on line 4 in docs/postbacks/event-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Postbacks'?
description: "List of supported postback event types and their payloads"

Check warning on line 5 in docs/postbacks/event-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?
---

Postbacks send real-time notifications when events happen in your Dub partner account. All postback payloads follow this structure:

Check warning on line 8 in docs/postbacks/event-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Postbacks'?

Check warning on line 8 in docs/postbacks/event-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

```json postback-payload.json
{
Expand All @@ -17,12 +18,12 @@

- **id** – Unique event ID
- **event** – Event type (e.g. `lead.created`)
- **createdAt** – ISO 8601 timestamp when the event was created

Check warning on line 21 in docs/postbacks/event-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

'createdAt' looks like code; format it as code.
- **data** – Event-specific payload

## Postback events

Check warning on line 24 in docs/postbacks/event-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Postback'?

Lead, sale and commission postbacks only fire for events tied to **your referral links**. Here are the postback events that are available:

Check warning on line 26 in docs/postbacks/event-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postbacks'?

Check warning on line 26 in docs/postbacks/event-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

| Event Type | Description |
| ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
Expand Down
4 changes: 3 additions & 1 deletion docs/postbacks/events/commission-created.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: commission.created
title: "commission.created postback"

Check warning on line 2 in docs/postbacks/events/commission-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?
sidebarTitle: "commission.created"
description: "Sent to your postback URL whenever a commission is created for you."

Check warning on line 4 in docs/postbacks/events/commission-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?
icon: money-bill
---

Expand Down
4 changes: 3 additions & 1 deletion docs/postbacks/events/lead-created.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: lead.created
title: "lead.created postback"

Check warning on line 2 in docs/postbacks/events/lead-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?
sidebarTitle: "lead.created"
description: "Sent to your postback URL whenever a lead is tracked through one of your referral links."

Check warning on line 4 in docs/postbacks/events/lead-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?
icon: user-crown
---

Expand Down
4 changes: 3 additions & 1 deletion docs/postbacks/events/message-received.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: message.received
title: "message.received postback"

Check warning on line 2 in docs/postbacks/events/message-received.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?
sidebarTitle: "message.received"
description: "Sent to your postback URL whenever a program you're enrolled in sends you a direct message, but not for campaign messages."

Check warning on line 4 in docs/postbacks/events/message-received.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?
icon: message
---

Expand Down
4 changes: 3 additions & 1 deletion docs/postbacks/events/sale-created.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: sale.created
title: "sale.created postback"

Check warning on line 2 in docs/postbacks/events/sale-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?
sidebarTitle: "sale.created"
description: "Sent to your postback URL whenever a sale is tracked through one of your referral links."

Check warning on line 4 in docs/postbacks/events/sale-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?
icon: coins
---

Expand Down
3 changes: 2 additions & 1 deletion docs/postbacks/introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
---
title: Introduction
title: "Introduction to postbacks"

Check warning on line 2 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postbacks'?
sidebarTitle: "Introduction"
og:title: Dub Postbacks – Introduction

Check warning on line 4 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Postbacks'?
description: "Use postbacks to get real-time notifications on events happening across your Dub partner account."

Check warning on line 5 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postbacks'?
---

import DeliveryIpAllowlist from "/snippets/delivery-ip-allowlist.mdx";

<Note>
Postbacks are available to all partners approved in the [Dub Partner

Check warning on line 11 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Postbacks'?
Network](https://dub.co/help/article/program-marketplace#joining-the-dub-partner-network).
</Note>

Postbacks allow you to listen to real-time events happening across your Dub partner account. With postbacks, you can build custom integrations with Dub, such as:

Check warning on line 15 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Postbacks'?

Check warning on line 15 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postbacks'?

- Syncing leads to your CRM when someone signs up through your referral link
- Updating your internal dashboards when commissions are created
- Building custom attribution tools that react to lead, sale, and commission events in real time
- Forwarding messages from programs to your team's inbox or chat

In this guide, we'll show you how to configure postbacks for your partner account and a list of available events you can listen to.

Check warning on line 22 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postbacks'?

## Creating a postback

Check warning on line 24 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

To create a postback for your partner account, you'll need to follow these steps:

Check warning on line 26 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

Navigate to the [**Postbacks** page](https://partners.dub.co/settings/postbacks) in your Dub partner settings.

Check warning on line 28 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Postbacks'?

Click on **Add Postback** to create a new postback.

Check warning on line 30 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Postback'?

Check warning on line 30 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

<Frame>
<img
Expand All @@ -35,21 +36,21 @@
/>
</Frame>

Fill in the required fields in the postback creation form:

Check warning on line 39 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

1. **Name**: Give your postback a name that helps you identify it.

Check warning on line 41 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?
2. **URL**: Enter the URL of the endpoint where you want to send the postback. We recommend using [webhook.site](https://webhook.site/) to test your postback.

Check warning on line 42 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

Check warning on line 42 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?
3. **Triggers**: Select the events you want to listen to. You can select multiple events. Refer to the [Event Types](/docs/postbacks/event-types) section to see the list of available events.

Finally, click on **Create postback** to create the postback. After creation, you'll see your signing secret — make sure to copy and store it securely.

Check warning on line 45 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

Check warning on line 45 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

## Viewing postback event logs

Check warning on line 47 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

We also provide you with a postback event logs page where you can view all the postback events that have been sent to your endpoint in real-time.

Check warning on line 49 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

Check warning on line 49 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

To view the postback event logs, select the postback from the [**Postbacks** page](https://partners.dub.co/settings/postbacks) and click on the postback to open its details page.

Check warning on line 51 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

Check warning on line 51 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

Check warning on line 51 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Postbacks'?

Check warning on line 51 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

Here, you'll see a list of all the postback events that have been sent to your endpoint:

Check warning on line 53 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

<Frame>
<img
Expand All @@ -62,13 +63,13 @@

## Sending test events

You can send test events to your postback URL to ensure that it's working correctly. To do this:

Check warning on line 66 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

<Steps>
<Step title="Go to the postback details page">
Navigate to the [**Postbacks** page](https://partners.dub.co/settings/postbacks) and select the postback you want to test.

Check warning on line 70 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Postbacks'?

Check warning on line 70 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

Click on the postback to open the postback details page.

Check warning on line 72 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

Check warning on line 72 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

</Step>
<Step title="Open the test event modal">
Expand All @@ -85,7 +86,7 @@

</Step>
<Step title="Send the test event">
Select the event you want to send, and click on **Send test postback**.

Check warning on line 89 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

<Frame>
<img
Expand All @@ -94,7 +95,7 @@
/>
</Frame>

You'll see a success message and receive the postback event in the endpoint you specified.

Check warning on line 98 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

</Step>

Expand All @@ -102,13 +103,13 @@

## Secret rotation

If you need to rotate your postback signing secret (for example, after a suspected compromise), select the `⋮` icon on the postback details page and click on **Rotate secret**. A new secret will be generated.

Check warning on line 106 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

Check warning on line 106 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

## Retry Behaviour

If your postback endpoint does not respond with a success status code (2XX), we retry the request to ensure every message will be delivered. You can see all the retry attempts in your postback event logs.

Check warning on line 110 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

Check warning on line 110 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

Postbacks are retried until they are successfully delivered – with an exponential backoff to avoid overwhelming your postback endpoint (also known as the "[thundering herd problem](https://en.wikipedia.org/wiki/Thundering_herd_problem)"). The delay is capped at 24 hours from the 5th retry attempt onwards.

Check warning on line 112 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Postbacks'?

Check warning on line 112 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'postback'?

Check warning on line 112 in docs/postbacks/introduction.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'onwards'?

| Retry attempt | Delay |
| ------------- | -------- |
Expand Down
3 changes: 2 additions & 1 deletion docs/sdks/client-side-mobile/introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Introduction
title: "Introduction to the Dub mobile SDKs"
sidebarTitle: "Introduction"
description: Learn more about the Dub client-side mobile SDKs.
---

Expand Down
1 change: 1 addition & 0 deletions docs/sdks/client-side/features/click-tracking.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Client-side click tracking
description: "The Dub Analytics script tracks clicks from query parameters such as `?via=john` on your own domain, or from a `trackClick()` call in your code, without a short link."
---

import ClickIdSpoofingPreventionTip from "/snippets/click-id-spoofing-prevention-tip.mdx";
Expand Down Expand Up @@ -137,7 +138,7 @@
- Dynamic user-generated content/webpages:
- Dub's public analytics dashboards (e.g. [app.dub.co/share/:slug](https://app.dub.co/share/dash_6NSA6vNm017MZwfzt8SubNSZ))
- v0 template pages (e.g. [v0.app/templates/:slug](https://v0.app/templates/evasion-e-commerce-template-annqMtFCROP))
- Tella's video pages (e.g. [tella.tv/video/:slug](https://www.tella.tv/video/cluvcfcfi00tw0fjrgizr4pw2))

Check warning on line 141 in docs/sdks/client-side/features/click-tracking.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'Tella's'?

The `trackClick()` function allows you to manually trigger click events from your application code. This is useful when you want to track clicks that happen programmatically.

Expand Down
1 change: 1 addition & 0 deletions docs/sdks/client-side/features/conversion-tracking.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Client-side conversion tracking
description: "Track lead and sale events from the browser with the Dub Analytics script when you don't have access to server-side code."
---

import ClientSideTrackingWarning from "/snippets/client-side-tracking-warning.mdx";
Expand Down
1 change: 1 addition & 0 deletions docs/sdks/client-side/features/cross-domain-tracking.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Cross-domain tracking
description: "The Dub Analytics script shares the `dub_id` cookie across subdomains with cookie options, and across separate domains by appending it to outbound links."
---

By default, the script already sets the `dub_id` cookie on a **cross-domain level**.
Expand Down
1 change: 1 addition & 0 deletions docs/sdks/client-side/features/identity-tracking.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Identity tracking for partner risk monitoring
sidebarTitle: Identity tracking
description: "The identity variant of the Dub Analytics script links a visitor's device to their partner click on the paths you choose, so risk monitoring can flag fraud and abuse."
tag: "Beta"
---

Expand Down
1 change: 1 addition & 0 deletions docs/sdks/client-side/features/reverse-proxy-support.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Reverse-proxy support
description: "Serve the Dub Analytics script and its tracking requests from your own domain through a reverse proxy, so ad blockers don't block them."
---

To avoid ad-blockers from blocking the Dub Analytics script and its tracking requests, we recommend setting up a reverse proxy.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Google Tag Manager
title: "Install the Dub Analytics script with Google Tag Manager"
sidebarTitle: "Google Tag Manager"
description: How to add the Dub Analytics script to your site using Google Tag Manager
og:image: https://assets.dub.co/cms/gtm-integration.jpeg
---
Expand Down
3 changes: 2 additions & 1 deletion docs/sdks/client-side/installation-guides/shopify.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Shopify
title: "Install the Dub Analytics script on Shopify"
sidebarTitle: "Shopify"
description: How to add the Dub Analytics script to your Shopify store
---

Expand Down
3 changes: 2 additions & 1 deletion docs/sdks/client-side/introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Introduction
title: "Introduction to the Dub Analytics script"
sidebarTitle: "Introduction"
description: Learn more about the Dub Analytics script and how to install it.
---

Expand Down
3 changes: 2 additions & 1 deletion docs/webhooks/event-types.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Event types
title: "Webhook event types"
sidebarTitle: "Event types"
og:title: "Dub Webhooks – Event types"
description: "List of supported webhook event types and their payloads"
---
Expand All @@ -17,7 +18,7 @@

- **id** – Unique event ID
- **event** – Event type (e.g. `link.created`)
- **createdAt** – ISO 8601 timestamp when the event was created

Check warning on line 21 in docs/webhooks/event-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

'createdAt' looks like code; format it as code.
- **data** – Event-specific payload

## Dub Partners
Expand All @@ -32,7 +33,7 @@
| [`partner.merged`](/docs/webhooks/events/partner-merged) | Occurs when **two partner accounts are merged**. |
| [`lead.created`](/docs/webhooks/events/lead-created) | Occurs whenever a **lead is created**. |
| [`sale.created`](/docs/webhooks/events/sale-created) | Occurs whenever a **sale is created**. |
| [`commission.created`](/docs/webhooks/events/commission-created) | Occurs whenever a **commission is created** for a partner (clawbacks will also trigger this event with a negative amount). |

Check warning on line 36 in docs/webhooks/event-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'clawbacks'?
| [`bounty.created`](/docs/webhooks/events/bounty-created) | Occurs whenever a **bounty is created** in your program. |
| [`bounty.updated`](/docs/webhooks/events/bounty-updated) | Occurs whenever a **bounty** in your program **is updated**. |
| [`discount_code.created`](/docs/webhooks/events/discount-code-created) | Occurs whenever a **discount code is created** for a partner. |
Expand Down
1 change: 1 addition & 0 deletions docs/webhooks/events/bounty-created.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: bounty.created
description: "Sent whenever a bounty is created in your program."
icon: trophy
---

Expand Down
1 change: 1 addition & 0 deletions docs/webhooks/events/bounty-updated.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: bounty.updated
description: "Sent with the bounty's full, updated state whenever a bounty in your program is updated, but not when one is deleted."
icon: trophy
---

Expand Down
1 change: 1 addition & 0 deletions docs/webhooks/events/commission-created.mdx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
title: commission.created
description: "Sent whenever a commission is created for a partner, from a tracked conversion or manually in the dashboard, including clawbacks with a negative amount."

Check warning on line 3 in docs/webhooks/events/commission-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'clawbacks'?
icon: money-bill
---

import { WebhookResponseBodyParameters } from "/snippets/webhook-response-body-parameters.mdx";

Occurs whenever a [commission is created](/docs/api-reference/commissions/create) for a partner (clawbacks will also trigger this event with a negative amount).

Check warning on line 9 in docs/webhooks/events/commission-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

Did you really mean 'clawbacks'?

<Tip>
When enabled, this webhook is triggered when a commission is created either
Expand Down Expand Up @@ -56,7 +57,7 @@
ISO 8601 timestamp when the commission was last updated.
</ParamField>
<ParamField body="partner" type="object">
The partner that earned the commission (id, name, email, image, country, groupId, totalClicks, totalLeads, totalSales, totalSaleAmount, totalCommissions).

Check warning on line 60 in docs/webhooks/events/commission-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

'groupId' looks like code; format it as code.

Check warning on line 60 in docs/webhooks/events/commission-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

'totalClicks' looks like code; format it as code.

Check warning on line 60 in docs/webhooks/events/commission-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

'totalLeads' looks like code; format it as code.

Check warning on line 60 in docs/webhooks/events/commission-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

'totalSales' looks like code; format it as code.

Check warning on line 60 in docs/webhooks/events/commission-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

'totalCommissions' looks like code; format it as code.
</ParamField>
<ParamField body="customer" type="object | null">
The customer associated with the conversion. Null for click-based or custom commissions.
Expand Down
1 change: 1 addition & 0 deletions docs/webhooks/events/discount-code-created.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: discount_code.created
description: "Sent whenever a discount code is created for a partner, through the API, the dashboard or auto-provisioning when a partner joins a group."
icon: ticket
---

Expand Down
1 change: 1 addition & 0 deletions docs/webhooks/events/discount-code-deleted.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: discount_code.deleted
description: "Sent whenever a partner's discount code is deleted, including automatic removals when a partner is banned, deactivated or moved to a group without an equivalent discount."
icon: ticket
---

Expand Down
1 change: 1 addition & 0 deletions docs/webhooks/events/lead-created.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: lead.created
description: "Sent whenever a lead event is tracked."
icon: user-crown
---

Expand Down Expand Up @@ -113,7 +114,7 @@
The referral link the lead is associated with (full link object).
</ParamField>
<ParamField body="partner" type="object | null">
Partner details. Only present when the link is a partner referral link (id, name, email, image, country, groupId, totalClicks, totalLeads, totalConversions, totalSales, totalSaleAmount, totalCommissions, etc.).

Check warning on line 117 in docs/webhooks/events/lead-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

'groupId' looks like code; format it as code.

Check warning on line 117 in docs/webhooks/events/lead-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

'totalClicks' looks like code; format it as code.

Check warning on line 117 in docs/webhooks/events/lead-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

'totalLeads' looks like code; format it as code.

Check warning on line 117 in docs/webhooks/events/lead-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

'totalConversions' looks like code; format it as code.

Check warning on line 117 in docs/webhooks/events/lead-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

'totalSales' looks like code; format it as code.

Check warning on line 117 in docs/webhooks/events/lead-created.mdx

View check run for this annotation

Mintlify / Mintlify Validation (dub) - vale-spellcheck

Vale.Spelling

'totalCommissions' looks like code; format it as code.
</ParamField>
<ParamField body="metadata" type="object | null">
Optional metadata associated with the lead event.
Expand Down
1 change: 1 addition & 0 deletions docs/webhooks/events/link-clicked.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: link.clicked
description: "Sent whenever a link is clicked or its QR code is scanned, for all links, links in selected folders or selected links."
icon: link
---

Expand Down
1 change: 1 addition & 0 deletions docs/webhooks/events/link-created.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: link.created
description: "Sent whenever a link is created in your workspace."
icon: link
---

Expand Down
1 change: 1 addition & 0 deletions docs/webhooks/events/link-deleted.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: link.deleted
description: "Sent whenever a link in your workspace is deleted."
icon: link
---

Expand Down
1 change: 1 addition & 0 deletions docs/webhooks/events/link-updated.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: link.updated
description: "Sent whenever a link in your workspace is updated."
icon: link
---

Expand Down
1 change: 1 addition & 0 deletions docs/webhooks/events/message-received.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: message.received
description: "Sent whenever a partner sends a message to your program, but not for messages your program sends."
icon: message
---

Expand Down
Loading
Loading