Create
Links — Create. POST /links
POST /links.
Authorizations
Get your API key at https://kloo.li/account-api. Use Authorization: Bearer {api_key}.
Body
Destination URL (Valid URL w/ scheme)
Bulk destinations (Newline-separated URLs)
Resource type (Default link; create: link|static)
email, webhook, slack, discord, telegram, microsoft_teams, twilio, twilio_call, whatsapp, x, google_chat, push_subscriber_id Bulk mode (Presence = true)
Custom alias (empty = random) (Unique slug; ignored in bulk)
Domain id (Available domain; 0 = main)
Project id (Owned by user)
Tracking pixels (Owned pixels)
Report handlers (Handler ids)
Enable link (Default 1)
Enable schedule (Presence = true)
Start (Y-m-d H:i:s)
End (Y-m-d H:i:s)
Max clicks
After expiry redirect (URL or empty)
Sensitive flag (Presence = true)
Redirect status (Default 301; 301|302|307|308). Allowed values: 301, 302, 307, 308.
301, 302, 307, 308 App deep links (Presence = true)
Cloaking (Presence = true)
Cloaking title (Max 70)
Cloaking description (Max 160)
Custom JS (Max 10000)
Favicon file (Size limited)
OG image (Size limited)
Visitor password (Max 64, hashed)
Forward query string (Presence = true)
noindex (Presence = true)
UTM source (Max 128)
UTM medium (Max 128)
UTM campaign (Max 128)
Targeting mode (false or continent_code|country_code|city_name|device_type|browser_language|rotation|os_name|browser_name). Allowed values: false, continent_code, country_code, device_type, browser_language, rotation, os_name, browser_name, city_name.
continent_code, country_code, device_type, browser_language, rotation, os_name, browser_name Rule key (When targeting on)
Rule destination (Must be URL)
Response
Success

