Developer API

Build with LinkDevi's Powerful API

Integrate URL shortening, analytics, and link management directly into your applications. Use scoped credentials for link operations and local MCP campaign tools. Review the published endpoints and each feature’s authentication requirements.

API development illustration with monitor showing cloud API interface, server database, gears, and connected applications - LinkDevi RESTful URL shortener API with authentication, rate limiting, and campaign tools

RESTful Endpoints

Clean, predictable REST endpoints with JSON request and response bodies. Standard HTTP methods for CRUD operations on every resource.

API Key Auth

Secure your integrations with scoped API keys. Generate, rotate, and revoke keys from the dashboard. Each key has granular permission controls.

Rate Limiting

Workspace request limits follow your plan and are shared across keys. A credential may have a lower ceiling. Rate-limited responses include Retry-After.

How It Works

Integrate in Three Steps

01

Generate an API Key

Head to your dashboard settings and create an API key. Assign scopes like links:write, links:read, or analytics:read.

02

Read the Docs

Explore our comprehensive API documentation with request examples, response schemas, error codes, and code snippets in multiple languages.

03

Start Integrating

Start with a campaign preview, then create saved links and render a QR. Read the returned metric definition before interpreting counters.

Simple, Intuitive Endpoints

Create a short link with a single POST request. Every endpoint follows the same consistent pattern.

POST/api/v1/links
curl -X POST https://linkdevi.com/api/v1/links \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/very-long-url",
    "slug": "my-link",
    "domain": "go.yourcompany.com",
    "tags": ["campaign-q1"]
  }'

Published agent tools

Use a scoped key with the local MCP connector or POST /api/v1/agent. Feature-specific legacy endpoints can require a website session.

capabilities

Any valid key

Read workspace scope, allowance and counter definitions.
preview_campaign

links:read

Preview UTM destinations before creating resources.
create_campaign

links:write

Create a saved kit with one link per channel. Reuse requestId on retry.
list_campaigns

links:read

Find saved campaign kits in the connected workspace.
link_qr

links:read

Render a PNG using the existing link’s saved short domain.
campaign_stats

links:read

Read lifetime redirect counters, including bots and previews.

Basic counters are not unique people, dated analytics or revenue. Remote OAuth is not included in this beta. Webhook endpoints support signed, at-least-once delivery with bounded retries for the events listed in the webhook guide.

Start Building with the LinkDevi API

Generate your API key in seconds and make your first request. Comprehensive docs, code examples, and a generous free tier to get you started.