Dub Links API for Openclaw

A professional integration for managing the lifecycle of short links via the Dub.co API within an AI agent environment.

ferminrp
v1.0.1
Feb 19, 2026
0
1.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install dub-links-api

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install dub-links-api using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Dub Links API?

The Dub Links API skill is a robust integration designed for Openclaw Skills that enables AI agents to perform comprehensive operations on short links. It provides a secure and structured way to interact with the Dub.co infrastructure, focusing exclusively on the /links endpoint to ensure high performance and strict security scoping. By leveraging this skill, developers can automate the creation, retrieval, and modification of branded links directly through their agent workflows.

This skill is particularly valuable for those looking to integrate professional-grade link management into automated marketing or DevOps pipelines. Within the ecosystem of Openclaw Skills, this tool handles everything from simple link shortening to complex bulk operations, ensuring that your agent can manage thousands of redirects with precision and reliability.

Dub Links API Use Cases

  • Automating the generation of branded short links for new marketing content.
  • Performing bulk updates on destination URLs for large-scale redirect migrations.
  • Synchronizing external database IDs with short link metadata for tracking.
  • Programmatically checking link counts and listing links with specific tags for reporting.
  • Implementing upsert logic to prevent duplicate link creation in automated scripts.

How Dub Links API Works

  1. The agent detects a link-related intent such as creating, updating, or listing links based on user prompts.
  2. The skill validates necessary inputs like the destination URL, link IDs, or specific filtering criteria.
  3. It executes structured API calls to https://api.dub.co using a secure Bearer token authentication method.
  4. Response data is processed using internal logic and tools like jq to extract relevant link metadata.
  5. The agent presents a structured summary or table of the link data, providing clear visibility into the operation result.

Dub Links API Setup

To get started with this skill in your Openclaw Skills environment, follow these steps:

  1. Obtain your API key from the Dub dashboard (https://dub.co/docs/api-reference/tokens).
  2. Export your credentials to your environment:
export DUB_API_KEY="your_api_key_here"
  1. Validate the connection by running a simple count check:
curl -s -H "Authorization: Bearer $DUB_API_KEY" "https://api.dub.co/links/count" | jq '.'

Dub Links API Data Schema & Taxonomy

The skill interacts with the LinkSchema, returning objects with the following primary fields:

Field Description
id Unique identifier for the short link
domain The custom domain used for the link
key The unique slug/path of the link
url The destination URL where the link redirects
shortLink The full generated short URL
archived Boolean status of the link visibility
externalId Mapping ID for third-party system integration
tags Array of associated marketing tags

Dub Links API Advanced Features

  • Bulk Operations: Create, update, or delete up to 100 links in a single request for high-volume management.
  • Upsert Logic: Automatically detect existing links by URL to update them instead of creating duplicates.
  • Granular Filtering: Search and list links using advanced parameters like tagNames, folderId, and tenantId.
  • Strict Scoping: Built-in safety measures that restrict API access to link-specific endpoints, protecting broader account settings.
  • Smart Sorting: Support for paginated results with customizable sort orders (createdAt, clicks, etc.).

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*