Create a short link
POST/links
Body fields:
url(required) — an absolutehttporhttpsURL. It's normalised, sohttps://example.comis stored ashttps://example.com/.slug(optional, Pro only) — a custom slug: 3–32 letters, numbers, hyphens or underscores. Case-sensitive, and a few words used by the site itself (likedocsoradmin) are reserved. Leave it out to get a random 7-character slug.
Every URL is checked against Google Safe Browsing first — unsafe URLs are rejected and don't count towards your quota. A successful create uses one link from your monthly quota.
Request
curl -X POST https://weeurl.ie/api/v1/links \
-H "Authorization: Bearer $WEEURL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/a/very/long/path"}'Response
HTTP/1.1 201 Created
{
"data": {
"slug": "aB3dE9x",
"short_url": "https://weeurl.ie/aB3dE9x",
"destination_url": "https://example.com/a/very/long/path",
"created_at": "2026-09-27T14:20:31.512Z"
}
}Errors
401— missing or invalid API key400— Missing or invalid url, invalid or reserved slug, or the URL is flagged as unsafe403— A slug was sent on the Free plan409— The custom slug is already taken429— Burst limit hit, or monthly quota used up503— Quota service briefly unavailable — safe to retry