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
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /api/v1/login | No | Get API token |
| POST | /api/v1/shorten | Yes | Create short URL |
| GET | /api/v1/expand/{code} | No | Resolve to long URL |
| GET | /api/v1/stats/{code} | No | Click analytics |
| DELETE | /api/v1/urls/{code} | Yes | Delete short URL |
Postman Collection
Import the full API collection to get started in seconds.
