Developer Resources

Everything you need to integrate Brk.Im into your apps.

📖 API Documentation

Full REST API reference with examples for shortening, expanding, analytics, and authentication.

View API Docs →

🌐 Chrome Extension

Shorten links directly from your browser toolbar — one click, done. Works on any page.

Get Extension →

API Quickstart

Shorten a URL in one command:

curl -X POST https://brk.im/api/v1/shorten \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"long_url": "https://example.com/my-page"}'

Expand a short URL:

curl https://brk.im/api/v1/expand/abc1234

Get click stats:

curl https://brk.im/api/v1/stats/abc1234

Available Endpoints

MethodEndpointAuthDescription
POST/api/v1/loginNoGet API token
POST/api/v1/shortenYesCreate short URL
GET/api/v1/expand/{code}NoResolve to long URL
GET/api/v1/stats/{code}NoClick analytics
DELETE/api/v1/urls/{code}YesDelete short URL

Postman Collection

Import the full API collection to get started in seconds.

Questions or feature requests? Ping the developers:

@vasujain · @ruchi_gl