Dub for developers
Dub makes short links you can share and track: use your own domain, sort links into folders and tags, see clicks, leads and sales, and run a partner program. Dub's assistant does this for you when you ask in plain words, and asks you first before big changes like deleting links.
What Dub is for
- For any question about clicks, leads, sales or customers, and give numbers only from what it returns, never estimates (analytics).
- When someone asks about a partner's earnings or payments (billing).
- To see what is connected and what a webhook has delivered (integrations).
- For any task about a link, its destination or its short key (links).
- When the person runs a partner program and asks about its partners (partners).
- For bounties, campaigns, messages and program settings (programs).
- For settings and team questions, not for links (workspaces).
Get access
- An agent acting for a person: connect an MCP client to
https://neutral-state-jev-dub-bench.vercel.app/api/neutral-state/mcp. The client registers itself with the authorization server that the protected-resource metadata names (RFC 9728) by OAuth 2.1 dynamic client registration (RFC 7591), then the person signs in and approves the connection. There is no key to request. - An agent on its own: auth.md says how it signs in by code and gets its own token.
Quickstart
Claude Code:
claude mcp add --transport http --scope user app-dub-nsjev-cfe68eb1c605edfa8c089d72 https://neutral-state-jev-dub-bench.vercel.app/api/neutral-state/mcpCodex:
codex mcp add app-dub-nsjev-cfe68eb1c605edfa8c089d72 --url https://neutral-state-jev-dub-bench.vercel.app/api/neutral-state/mcpSandbox
Start without an account: an agent gets a fresh trial account that holds no one else's data. Reads: all. Writes: none. A person can claim the trial within 1 h. The requests are in auth.md.
Endpoints
MCP server
https://neutral-state-jev-dub-bench.vercel.app/api/neutral-state/mcp
Streamable HTTP MCP endpoint. A person signs in with OAuth and approves the connection.
Ask
https://neutral-state-jev-dub-bench.vercel.app/api/neutral-state/ask
Questions about this app, answered from its published content (NLWeb 0.55). POST JSON, or GET ?query=; a stream on request; a browser gets a search page.
Ask over MCP
https://neutral-state-jev-dub-bench.vercel.app/api/neutral-state/ask/mcp
Streamable HTTP MCP endpoint with one read-only tool, ask. No sign-in.
OAuth protected-resource metadata
https://neutral-state-jev-dub-bench.vercel.app/.well-known/oauth-protected-resource/api/neutral-state/mcp
RFC 9728. Names this app's OAuth authorization server.
A2A agent card
https://neutral-state-jev-dub-bench.vercel.app/.well-known/agent-card.json
A2A 1.0 and 0.3. Hands a task to this app's own assistant; a person signs in with OAuth and allows delegation.
auth.md
https://neutral-state-jev-dub-bench.vercel.app/auth.md
How an agent signs in by code, or starts without an account, to get its own token.
Poppy
https://neutral-state-jev-dub-bench.vercel.app/.well-known/poppy.json
Personal Agent Protocol discovery: a person's own agent signs in as them.
OpenAPI document
https://neutral-state-jev-dub-bench.vercel.app/api/neutral-state/openapi.json
OpenAPI 3.1. Every operation an agent can call over HTTPS with its own token.
What agents can do
analytics: How links perform: click, lead and sale numbers for links, folders and the whole workspace, the individual events behind them, customers (people who signed up or bought through a tracked link), shared stats pages and the workspace's API request logs. Use it for any question about clicks, leads, sales or customers, and give numbers only from what it returns, never estimates. Deleting a customer or a shared stats page always waits for a person's approval.automation: Small helpers Dub's own screens use: writing suggestions, the support chat, help guides, favicon and workspace-name checks, Unsplash image search and the list of payout countries. An AI rarely needs them; use the other areas (links, domains, analytics, workspaces) for real tasks. Sending a message to Dub's support team always waits for a person's approval.billing: What partners in the partner program earned and were paid: commissions (list, look up, count, chart, export, add by hand, change status or amount) and payouts (list, look up, count, export). Use it when someone asks about a partner's earnings or payments. Nothing here sends money, but adding or changing a commission changes what a partner is paid, so it always waits for a person's approval.domains: The domains short links live on: custom domains, Dub's own domains, the free .link domain, and the email domain a partner program sends from. It works in the person's current workspace, so do not ask which; if they have several, the answer lists them to choose from. New links go on the primary domain unless the person names another, so an ordinary link task needs nothing here. Adding, registering, editing, moving or deleting a domain, or making one primary, always waits for a person's approval.integrations: Apps installed in the workspace (such as Slack, Stripe, Zapier or HubSpot) and the webhooks that send link and conversion events to other systems. Use it to see what is connected and what a webhook has delivered. Uninstalling an app or deleting a webhook always waits for a person's approval. An AI cannot list or read webhooks, because those answers include secret keys; creating or editing webhooks is done in Dub's settings.library: Organize links with folders (and who may see or edit them), tags and saved UTM templates. Make the folder or tag here, then put links in it with the short link tools. It works in the person's current workspace, so do not ask which; if they have several, the answer lists them to choose from. Deleting a folder or tag keeps its links. Deleting a folder, tag or UTM template always waits for a person's approval.links: Short links: create, find, edit, tag, move and delete them. Use it for any task about a link, its destination or its short key. It works in the person's current workspace, so do not ask which; if they have several, the answer lists them to choose from. A new link goes on the primary domain unless the person names another. Creating a link checks its own result, so do not repeat it. Deleting links and moving one to another workspace always wait for a person's approval. links_count_list and links_list with no folder or filter cover only links outside folders; to count every link, call links_count_list with {"query":{"groupBy":"folderId"}} and add up the _count values. A delete or move that waits answers PROPOSAL_PENDING and has not happened: tell the person it is waiting for their approval in Dub, give them the reviewUrl that get_proposal returns for it, and do not send it again. Name things as the person does (the short link, the folder's or tag's name), never by id or tool name.partner-account: For a person who is a partner in another company's program, acting on their own partner account: the programs they joined, their links, earnings, referrals, customers, bounties, payouts and messages, their team and invites, and their postbacks. Use it only when the signed-in person is a partner; a program owner managing their partners uses Partners and affiliates. Inviting, changing or removing team members, accepting an invite, deleting a partner link and changing or deleting a postback always wait for a person's approval.partners: The program owner's side of the partner program: partners and their applications, partner groups, rewards, discount codes, partner links, fraud alerts, and finding new partners in the Dub network. Use it when the person runs a partner program and asks about its partners. Approving, rejecting, adding, banning or deactivating a partner, moving partners between groups, changing or deleting a group or its default links, changing fraud rules and deleting a discount code always wait for a person's approval.programs: Running the partner program: its settings and brand kit, bounties (create, edit, review partner submissions), email campaigns to partners (draft, test, schedule), partner messages, leads partners submitted, and payouts ready to pay. Use it for bounties, campaigns, messages and program settings. Creating, editing or deleting a bounty, approving or rejecting a submission (approving creates a commission), refreshing a bounty's social stats, sending a test email, and changing or deleting a campaign (scheduling one emails real people) always wait for a person's approval.workspaces: The signed-in person's own account and their workspaces: profile, members and invites, roles, workspace API keys, OAuth apps, plan, invoices and payment methods, usage, and importing links from Bitly, Rebrandly or Short.io. Use it for settings and team questions, not for links. Most changes need the workspace owner, and every account, member, invite, API key, OAuth app and billing change needs a person's approval. SAML, SCIM and referral reads are not available to agents.
Authentication
The protected-resource metadata (RFC 9728) names the authorization server, whose own metadata (RFC 8414) lists the registration, authorization and token endpoints and the scopes.
More
- llms.txt: everything an agent may read here, in one file.
- This page as markdown
- Home page as markdown: This app's home page, or its public description, as markdown.
- Dub API documentation (official, dub.co)
- About
- Contact
- Privacy