MakeAShortLink API
Base URL: https://mkasl.com/api/v1
Authentication
Create an API key in your account settings (accounts older than 7 days with a verified email address). The key is shown once; store it safely. Send it as:
Authorization: Bearer mkasl_XXXXXXXXXXXXXXXXXXXXXXXXXX
Keys can be named and revoked at any time. A key has the same rights as your own account for links, but never admin rights, and can’t manage keys or import CSV files.
Rate limits
Per key and clock hour, depending on the plan of the key’s owner (pricing):
| Bucket | Free | Pro |
|---|---|---|
Creating links (POST /links, MCP create_link) |
20 | 1000 |
| Everything else | 200 | 6000 |
Until the new Free limits start (announced by mail at least 14 days ahead), Free keys keep 60 and 600.
Over the limit: 429 {"error":"rate_limit_exceeded"} with a Retry-After
header (seconds). New links per account and UTC day (all ways, also the web
app): Free 330 (50 in the first 7 days), Pro 10000; over that
429 {"error":"quota_exceeded"}.
Links
| Method | Path | Description |
|---|---|---|
| GET | /links?q=&tag=&sort=newest|oldest|clicks|title |
Your active links |
| POST | /links |
Create: {"url", "slug"?, "title"?, "tags"?, "slug_style"?: "random"|"readable"|"words", "analytics_mode"?, "forward_query"?, "is_printed"?, "domain_id"?}. domain_id: one of your active custom domains (GET /domains); the link object then has short_domain |
| GET | /links/{id} |
One link |
| PUT | /links/{id} |
Update (same fields; "active": false deactivates, "domain_id": 0 back to the default domain) |
| DELETE | /links/{id} |
Deactivate |
| GET | /links/{id}/analytics?period=24h|7d|30d|90d|all |
Aggregated statistics |
| GET | /links/export?format=csv|json|redirects |
Export all your links |
| GET | /preview/{code} |
Public transparency data of any link (no key needed) |
Every destination is checked against URLhaus and Spamhaus DBL. Only http and
https destinations are accepted.
Errors: {"error": "code", "message": "..."}. Common codes: invalid_url,
destination_blocked (422), invalid_tags, not_found, unauthorized,
rate_limit_exceeded.
Example:
curl -X POST https://mkasl.com/api/v1/links \
-H "Authorization: Bearer $MKASL_KEY" -H "Content-Type: application/json" \
-d '{"url":"https://example.org/article","tags":["blog"]}'
MCP server
MakeAShortLink speaks the Model Context Protocol (Streamable HTTP, JSON
responses) at https://mkasl.com/api/v1/mcp, authenticated with your API key.
Tools: create_link, list_links, get_link_stats, preview_link.
Client configuration (example):
{
"mcpServers": {
"makeashortlink": {
"type": "http",
"url": "https://mkasl.com/api/v1/mcp",
"headers": { "Authorization": "Bearer mkasl_..." }
}
}
}