A tiny REST API to create, list, and resolve memorable short links from your own scripts and apps.
Sign in to WordLink and open the API Keys tab on the home page to create a personal key. Pass it as a bearer token on every request:
Authorization: Bearer wl_live_...Keys grant full access to your links. Rotate any key you think has leaked.
https://www.wordlink.in/api/public/v1/api/public/v1/linksAuth requiredCreate a new short link.
Body
{
"url": "https://example.com/some/long/path",
"alias": "optional-custom-alias",
"expiresInDays": 30
}Example
curl -X POST https://www.wordlink.in/api/public/v1/links \
-H "Authorization: Bearer wl_live_..." \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}'Response
{
"link": {
"alias": "silent-forest-flows",
"url": "https://example.com",
"clicks": 0,
"created_at": "2026-07-21T10:00:00Z",
"expires_at": "2026-08-20T10:00:00Z",
"safety_status": "safe"
},
"short_url": "https://www.wordlink.in/silent-forest-flows"
}/api/public/v1/linksAuth requiredList your links (newest first). Optional query: ?limit=50 (max 200).
curl https://www.wordlink.in/api/public/v1/links \
-H "Authorization: Bearer wl_live_..."/api/public/v1/links/:aliasAuth requiredFetch a single link you own.
curl https://www.wordlink.in/api/public/v1/links/silent-forest-flows \
-H "Authorization: Bearer wl_live_..."/api/public/v1/links/:aliasAuth requiredDelete a link you own.
curl -X DELETE https://www.wordlink.in/api/public/v1/links/silent-forest-flows \
-H "Authorization: Bearer wl_live_..."/api/public/v1/resolve/:aliasPublicPublic alias resolver — returns the destination URL and safety status without recording a click. (The browser redirect at /{alias} is what increments click counts.)
curl https://www.wordlink.in/api/public/v1/resolve/silent-forest-flowsAll errors return JSON: { "error": { "code": "...", "message": "..." } }
400 invalid_body — request body failed validation401 missing_authorization / invalid_api_key404 not_found — alias doesn't exist or isn't yours409 alias_taken — that custom alias is already in use410 expired — the link has expired422 unsafe_url / adult_url / blocked_alias500 server_error — unexpected failure