Engineering

Announcing the Dub API General Availability (GA)

We're excited to announce that the Dub API is now generally available, with native SDKs in the languages you love.

Announcing the Dub API General Availability (GA)

Ever since we soft launched our API a few months ago, we've been working hard to improve its stability & developer experience. Some of the improvements include:

  1. Workspace API keys: We simplified our API DX by moving keys to the workspace-level.
  2. Restricted scopes: You can now set fine-grained permission scopes for your API keys.
  3. Machine users: You can also create machine users to associate API keys with.

Our API infrastructure has been production-ready for months now, but we chose to keep the "beta" label as we iterated our API syntax and functionality.

400,000+

links created

40,000+

links created monthly

47,500,000+

clicks tracked

In fact, companies like Raycast, Opensauced, Midday, and Whop have already been leveraging our API in production to shorten links programmatically. Some of our most active API users are currently generating over thousands of links per day.

Today, we're confident in our ability to support any production-level link management use case. Whether you're running a SMS campaign with millions of short links or an ad campaign with billions of clicks, we've got you covered.

Thomas Paul Mann

Dub's link infrastructure & analytics has helped us gain valuable insights into the link-sharing use case of Ray.so. And all of it with just a few lines of code.

Raycast

Thomas Paul Mann

CEO & Co-Founder

Native SDKs in 4 languages

With the GA launch, we're also excited to unveil native SDKs in 4 different languages:

This makes it much easier for developers to integrate Dub's link infrastructure into their applications, without needing to reach for different fetch libraries in their respective environments.

We've also created quickstart guides for each of these languages, as well as code examples to get you started. For example, here's how you can create a link in TypeScript, Python, Ruby, and Go:

import { Dub } from "dub"
 
const dub = new Dub({ token: "DUB_API_KEY" })
 
const { shortLink } = await dub.links.create({ url: "https://dub.co" })

Example applications

To show you the potential of Dub, we've also created a collection of open-source examples.

For example, we recently built OSS Gallery, which shows how you can generate short links on the fly and display real-time click analytics for those links directly inside your application:

Raycast also recently open-sourced Ray.so, where they use Dub to generate short links for easy sharing & analytics:

What's next?

We're incredibly excited for you to try out the new Dub API and SDKs.

This is just the beginning. Here are some of the features we're working on next:

  • OAuth Flow: We're currently working on an OAuth flow for you to easily build integrations with Dub – instead of manually creating API keys and entering them into your application, users can "Sign in with Dub" in 1-click.
  • Integrations Marketplace: Once you've built your integration, you can submit it to the Dub Integrations Marketplace to share it with the Dub community.

We're looking forward to hearing your feedback – feel free to send us an email or tweet at us!

Supercharge your marketing efforts

See why Dub is the link management infrastructure of choice for modern marketing teams.