Linkler

Notes
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
List

API endpoint:

GET
https://kisalinks.com/api/v1/links

Request example:

curl --location --request GET 'https://kisalinks.com/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parametre
Tip
Açıklama
search
optional string
The search query.
search_by
optional string
Arama kriteri:. Possible values are: title for Başlık, alias for Takma ad, url for URL. Varsalılan to: title.
status
optional integer
Filter by status. Possible values are: 0 for Hepsi, 1 for Aktif, 2 for Günü geçmiş, 3 for Devre dışı. Varsalılan to: 0.
space_id
optional integer
Filter by space ID.
domain_id
optional integer
Filter by domain ID.
pixel_id
optional integer
Filter by pixel ID.
sort_by
optional string
Sort by. Possible values are: id for Date created, clicks for Tıklamalar, title for Başlık, alias for Takma ad, url for URL. Varsalılan to: id.
sort
optional string
Sırala. Possible values are: desc for Azalan, asc for Artan. Varsalılan to: desc.
per_page
optional int
Sayfa başına sonuçlar. Possible values are: 10, 25, 50, 100. Varsalılan to: 10.
Show

API endpoint:

GET
https://kisalinks.com/api/v1/links/{id}

Request example:

curl --location --request GET 'https://kisalinks.com/api/v1/links/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
https://kisalinks.com/api/v1/links

Request example:

curl --location --request POST 'https://kisalinks.com/api/v1/links' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}' \
--data-urlencode 'domain={id}'
Parametre
Tip
Açıklama
url
required string
The link to be shortened.
domain_id
required integer
The domain ID the link to be saved under.
alias
optional string
The link alias.
password
optional string
The link password.
space_id
optional integer
The space ID the link to be saved under.
pixel_ids
optional array
The pixel IDs to be integrated in the link.
disabled
optional integer
Whether the link is disabled or not. Possible values are: 0 for Aktif, 1 for Devre dışı. Varsalılan to: 0.
privacy
optional integer
Whether the link stats are public or not. Possible values are: 0 for Erişilebilir, 1 for Özel, 2 for Şifre. Varsalılan to: 0.
privacy_password
optional string
The password for the statistics page. Only works with privacy set to 2.
expiration_url
optional string
The link where the user will be redirected once the link has expired.
expiration_date
optional string
The link expiration date in YYYY-MM-DD format.
expiration_time
optional string
The link expiration time in HH:MM format.
expiration_clicks
optional integer
The number of clicks after which the link should expire.
target_type
optional integer
The type of targeting. Possible values are: 0 for Yok, 1 for Coğrafi, 2 for Platform, 4 for Dönüşüm.
country[index][key]
optional string
The code of the targeted country. The code must be in ISO 3166-1 alpha-2 standard.
country[index][value]
optional string
The link where the user will be redirected to.
platform[index][key]
optional string
The name of the targeted platform. Possible values are: iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.
platform[index][value]
optional string
The link where the user will be redirected to.
language[index][key]
optional string
The code of the targeted language. The code must be in ISO 639-1 alpha-2 standard.
language[index][value]
optional string
The link where the user will be redirected to.
rotation[index][value]
optional string
The link where the user will be redirected to.
Update

API endpoint:

PUT PATCH
https://kisalinks.com/api/v1/links/{id}

Request example:

curl --location --request PUT 'https://kisalinks.com/api/v1/links/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
Parametre
Tip
Açıklama
url
optional string
The link to be shortened.
alias
optional string
The link alias.
password
optional string
The link password.
space_id
optional integer
The space ID the link to be saved under.
pixel_ids
optional array
The pixel IDs to be integrated in the link.
disabled
optional integer
Whether the link is disabled or not. Possible values are: 0 for Aktif, 1 for Devre dışı.
privacy
optional integer
Whether the link stats are public or not. Possible values are: 0 for Erişilebilir, 1 for Özel, 2 for Şifre.
privacy_password
optional string
The password for the statistics page. Only works with privacy set to 2.
expiration_url
optional string
The link where the user will be redirected once the link has expired.
expiration_date
optional string
The link expiration date in YYYY-MM-DD format.
expiration_time
optional string
The link expiration time in HH:MM format.
expiration_clicks
optional integer
The number of clicks after which the link should expire.
target_type
optional integer
The type of targeting. Possible values are: 0 for Yok, 1 for Coğrafi, 2 for Platform, 4 for Dönüşüm.
country[index][key]
optional string
The code of the targeted country. The code must be in ISO 3166-1 alpha-2 standard.
country[index][value]
optional string
The link where the user will be redirected to.
platform[index][key]
optional string
The name of the targeted platform. Possible values are: iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.
platform[index][value]
optional string
The link where the user will be redirected to.
language[index][key]
optional string
The code of the targeted language. The code must be in ISO 639-1 alpha-2 standard.
language[index][value]
optional string
The link where the user will be redirected to.
rotation[index][value]
optional string
The link where the user will be redirected to.
Sil

API endpoint:

DELETE
https://kisalinks.com/api/v1/links/{id}

Request example:

curl --location --request DELETE 'https://kisalinks.com/api/v1/links/{id}' \
--header 'Authorization: Bearer {api_key}'