API documentation
Create, manage, and pull analytics for your links programmatically with the Quik.mn REST API.
Base URL
All endpoints start from the following base URL:
Authentication
On every request, include the API key from your dashboard in the Authorization header:
Never share your key with anyone. If it leaks, regenerate it from your dashboard.
Endpoints
Parameters
POST /api/v1/links — request body fields:
GET /api/v1/links — query parameters:
Error format
Every error returns an HTTP status code (401, 404, 409, 422, 429) and a consistent JSON structure:
{ "error": "alias_taken", "message": "That alias is reserved or already in use." }
Common codes: unauthorized (401), not_found (404), alias_taken (409), invalid_url / invalid_alias / invalid_expires_at (422), rate_limited (429).
Rate limits
Example request
cURL example for creating a short link:
curl -X POST https://quik.mn/api/v1/links \
-H "Authorization: Bearer qk_live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/very/long/path",
"alias": "promo",
"title": "Хаврын кампанит ажил",
"expires_at": "2026-12-31 23:59:59"
}'