Domainler

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/domains

Request example:

curl --location --request GET 'https://kisalinks.com/api/v1/domains' \
--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: name for Ad. Varsalılan to: name.
sort_by
optional string
Sort by. Possible values are: id for Date created, name for Ad. 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/domains/{id}

Request example:

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

API endpoint:

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

Request example:

curl --location --request POST 'https://kisalinks.com/api/v1/domains' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}'
Parametre
Tip
Açıklama
name
required string
The domain name.
index_page
optional string
The index page to redirect to.
not_found_page
optional string
The 404 page to redirect to.
Update

API endpoint:

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

Request example:

curl --location --request PUT 'https://kisalinks.com/api/v1/domains/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parametre
Tip
Açıklama
index_page
optional string
The index page to redirect to.
not_found_page
optional string
The 404 page to redirect to.
Sil

API endpoint:

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

Request example:

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