Skip to main content
POST
cURL
Playground interactif pour POST /links.
Collez votre clé API dans le champ Authorization : Bearer {api_key}.
cURL

Autorisations

Authorization
string
header
défaut:{api_key}
requis

Récupérez votre clé API sur https://kloo.li/account-api. Utilisez Authorization: Bearer {api_key}.

Corps

multipart/form-data
location_url
string
requis

Destination URL (Valid URL w/ scheme)

location_urls
string
requis

Bulk destinations (Newline-separated URLs)

type
enum<string>

Resource type (Default link; create: link|static)

Options disponibles:
email,
webhook,
slack,
discord,
telegram,
microsoft_teams,
twilio,
twilio_call,
whatsapp,
x,
google_chat,
push_subscriber_id
is_bulk
boolean

Bulk mode (Presence = true)

url
string

Custom alias (empty = random) (Unique slug; ignored in bulk)

domain_id
integer

Domain id (Available domain; 0 = main)

project_id
integer

Project id (Owned by user)

pixels_ids
integer[]

Tracking pixels (Owned pixels)

email_reports
integer[]

Report handlers (Handler ids)

is_enabled
boolean

Enable link (Défaut 1)

schedule
boolean

Enable schedule (Presence = true)

start_date
string

Start (Y-m-d H:i:s)

end_date
string

End (Y-m-d H:i:s)

clicks_limit
integer

Max clicks

expiration_url
string

After expiry redirect (URL or empty)

sensitive_content
boolean

Sensitive flag (Presence = true)

http_status_code
enum<integer>

Redirect status (Default 301; 301|302|307|308). Valeurs autorisées : 301, 302, 307, 308.

Options disponibles:
301,
302,
307,
308
app_linking_is_enabled
boolean

App deep links (Presence = true)

cloaking_is_enabled
boolean

Cloaking (Presence = true)

cloaking_title
string

Cloaking title (Max 70)

cloaking_meta_description
string

Cloaking description (Max 160)

cloaking_custom_js
string

Custom JS (Max 10000)

cloaking_favicon
file

Favicon file (Size limited)

cloaking_opengraph
file

OG image (Size limited)

password
string

Visitor password (Max 64, hashed)

forward_query_parameters_is_enabled
boolean

Forward query string (Presence = true)

seo_block
boolean

noindex (Presence = true)

utm_source
string

UTM source (Max 128)

utm_medium
string

UTM medium (Max 128)

utm_campaign
string

UTM campaign (Max 128)

targeting_type
enum<string>

Targeting mode (false or continent_code|country_code|city_name|device_type|browser_language|rotation|os_name|browser_name). Valeurs autorisées : false, continent_code, country_code, device_type, browser_language, rotation, os_name, browser_name, city_name.

Options disponibles:
continent_code,
country_code,
device_type,
browser_language,
rotation,
os_name,
browser_name
targeting_{type}_key[index]
string

Rule key (When targeting on)

targeting_{type}_value[index]
string

Rule destination (Must be URL)

Réponse

Succès