Agents and API

A link shortener your agent can use.

An MCP server, a REST API and an llms.txt. Everything the app does, an agent can do, inside one workspace and nowhere else.

MCP server

Connect in one command.

The server speaks Streamable HTTP at https://api.tapni.com/mcp/tlink. Use an API key, or sign in from Claude and ChatGPT connectors with your Tapstack account.

Claude Code
claude mcp add --transport http tlink \
  https://api.tapni.com/mcp/tlink \
  --header "Authorization: Bearer tlk_your_api_key"
Cursor, .cursor/mcp.json
{
  "mcpServers": {
    "tlink": {
      "url": "https://api.tapni.com/mcp/tlink",
      "headers": { "Authorization": "Bearer tlk_your_api_key" }
    }
  }
}

Tools

create_link

Shorten a URL, with an optional name, tags and expiry.

list_links

Find links by name, destination, title or tag.

update_link

Change the destination or name, pause or resume.

delete_link

Delete a link. The agent is told to ask first.

get_link_stats

Clicks, visitors, countries, referrers and apps for one link.

get_analytics

The same for the whole workspace, plus top links.

list_domains

Custom domains links can be put on.

preview_deep_link

Which native app a URL would open on phones.

REST API

Plain JSON over HTTPS.

Bearer auth with the same key. Errors come back with a stable code and a sentence a person can read. 120 requests a minute per key.

Create a link
curl -X POST https://api.tapni.com/v1/tlink/links \
  -H "Authorization: Bearer tlk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://youtu.be/dQw4w9WgXcQ", "slug": "new-video"}'
Response
{
  "success": true,
  "link": {
    "short_url": "https://t.link/new-video",
    "deep_link_app": "youtube",
    "clicks": 0
  }
}

t.link is part of Tapstack. One account and one workspace for t.link, Tapni and MailSign.

About Tapstack

Give your agent a link shortener.

Create a key in the app and connect in one command. Free while in beta.