Shorten.REST for AI agents

Shorten.REST is a link shortening and management app for generating branded URLs with click tracking. Developers use it to create and monitor short links through a simple API. Connect it once through Arc0, and your agent, or Claude, ChatGPT and Cursor, can use it through one MCP endpoint, limited to what each user approved.

MarketingAPI keyMCP + RESTshorten.rest
AUDIT LOG · SHORTEN.RESTPOLICY: acme-support
09:41:07 · claude · u_8f2read
shorten_rest.list_aliases_by_domain
List aliases by domain✓ allowed · 212ms
09:41:08 · claude · u_8f2read
shorten_rest.get_clicks
Get click data for aliases✓ allowed · 164ms
09:41:09 · claude · u_8f2write
shorten_rest.create_alias
Create Alias✓ approved · approved by user
09:41:12 · claude · u_8f2destructive
shorten_rest.delete_alias
Delete Alias✕ blocked · policy: deny
EVERY SHORTEN.REST CALL, ON THE RECORD
01 · USE CASES

What agents do in Shorten.REST.

01

Create a branded alias link

Generate a short alias for a long URL under a chosen domain for a campaign.

02

Check click data for a link

Pull click data for an alias to see how a shared link is performing.

03

Confirm before deleting an alias

Review an alias's activity and get confirmation before deleting it, since it will stop resolving.

02 · ACTIONS

6 Shorten.REST actions, graded by risk.

Every Shorten.REST action is tagged read, write or destructive, so one policy covers the whole app and new actions inherit the right default.

read

3

Look things up. Allowed by default.

  • shorten_rest.get_clicks
    Get click data for aliases
  • shorten_rest.get_aliases
    Get Aliases
  • shorten_rest.list_aliases_by_domain
    List aliases by domain

write

2

Create and change things. Allow, or ask the user first.

  • shorten_rest.create_alias
    Create Alias
  • shorten_rest.update_alias
    Update Alias

destructive

1

Delete, cancel or archive. Ask first, or deny outright.

  • shorten_rest.delete_alias
    Delete Alias
03 · HOW IT WORKS

Shorten.REST in three steps.

  1. 01Your users connect Shorten.RESTThey add their Shorten.REST api key on Arc0 Connect, under your brand. It goes straight into the vault.
  2. 02You set the rulesReads run, writes like “create Alias” can wait for the user, and “delete Alias” can be denied outright.
  3. 03Any agent can actYour agent calls Shorten.REST through the Arc0 SDK or MCP, and so can Claude, ChatGPT and Cursor. Every call lands on the audit log.
POLICY.TS
await arc0.policies.set('shorten_rest', {
  read: 'allow',
  write: 'ask',        // create_alias
  destructive: 'deny',  // delete_alias
})

# Claude Code: the same connection, one URL
$ claude mcp add --transport http arc0 \
    https://mcp.arc0.ai/u/u_8f2
04 · AUTH AND DATA

How Shorten.REST connects.

Users add their Shorten.REST api key on Arc0 Connect. It is encrypted in the vault, never shown to the model, and each user can rotate or revoke it at any time.

The same Shorten.REST connection serves your agent over MCP and your own backend over REST and the proxy, so a user connects once. How Arc0 handles credentials →

AUTH
API key
CREDENTIALS
Per-tenant encrypted vault
MODEL SEES
Results only, never credentials
AUDIT LOG
Every call, on every plan
05 · WORKS WITH

Use Shorten.REST from any agent.

Claude
ChatGPT
Cursor
Codex
VS Code
OpenAI Agents SDK
Claude Agent SDK
Vercel AI SDK
Mastra
LangGraph
07 · FAQ

Shorten.REST and Arc0, answered.

Q01

Can I use Shorten.REST with Claude, ChatGPT or Cursor?

Yes. Connect Shorten.REST to Arc0 once, then add your Arc0 MCP URL to Claude, ChatGPT, Cursor, Claude Code or any other remote-MCP client. Each assistant only gets the Shorten.REST actions you allow.

Q02

How do users connect Shorten.REST?

Users add their Shorten.REST api key on Arc0 Connect. It is encrypted in the vault, never shown to the model, and each user can rotate or revoke it at any time.

Q03

Which Shorten.REST actions can my agent take?

6 in total: 3 read, 2 write and 1 destructive, such as “create Alias”. Your policies decide which of them each agent may call.

Q04

Can I stop my agent from deleting things in Shorten.REST?

Yes. Actions like “delete Alias” are graded destructive. Set destructive actions to deny, or to ask so the user approves each one, and blocked calls still show up on the audit log.

Q05

Can my own backend call Shorten.REST too?

Yes. The same Shorten.REST connection is available over REST and through the Arc0 proxy, so your product and your agent share one connection per user.

Get started

Plug Shorten.REST into your agent.

Your users connect Shorten.REST once, under your brand. Your agent gets 6 actions behind your policies, with every call on the record.

Free to build · MCP + REST · Audit log on every plan