Developers
The ur.link API
Create short links and one-time secrets, manage them and read their clicks from your own code or an AI agent. The same API runs the app.
Quick start
- Sign up and open your workspace.
- Under API keys, create a key with write access and copy it: it is shown once.
- Send it in the x-api-key header, with your workspace id, as below.
Create a short link
curl -X POST https://ur.link/api/url/create \
-H "x-api-key: $API_KEY" \
-H "content-type: application/json" \
-d '{"workspaceId":"<workspace id>","type":"short","destinationUrl":"https://example.com/spring-sale","slug":"spring"}'List your links
curl "https://ur.link/api/url/list?workspaceId=<workspace id>&type=short&limit=20" \
-H "x-api-key: $API_KEY"Read a link’s clicks
curl "https://ur.link/api/url-analytics/summary?urlId=<link id>&from=2026-11-01T00:00:00Z&to=2026-11-30T23:59:59Z" \
-H "x-api-key: $API_KEY"Authentication
- Every request carries a workspace API key in the x-api-key header. A key belongs to one workspace.
- Keys have read, write or admin access: read lists and analytics, write creates and changes links, admin also manages the workspace.
- Keep keys on your server. Revoke one under API keys and it stops working at once.
Rate limits
- Requests are limited per key in short windows, with a larger allowance for lists and analytics.
- Every answer carries X-RateLimit-Limit and X-RateLimit-Remaining; over the limit you get 429 with Retry-After in seconds.
- Back off and retry after that time. Plan limits (links per month, custom domains) apply as in the app.
MCP server for AI agents
Connect Claude, Cursor, VS Code or any client that speaks Streamable HTTP to https://mcp.ur.link/mcp with your API key, and your agent creates links and reads their analytics.
Claude Code
claude mcp add --transport http ur-link https://mcp.ur.link/mcp --header "x-api-key: <your-api-key>"Claude Desktop, Cursor (.cursor/mcp.json) and most clients
{
"mcpServers": {
"ur-link": {
"type": "http",
"url": "https://mcp.ur.link/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}VS Code (.vscode/mcp.json)
{
"servers": {
"ur-link": {
"type": "http",
"url": "https://mcp.ur.link/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}API reference
Every route with its parameters, answers and errors, generated from the API’s own OpenAPI spec, so it is always current.