Alanlar

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

Request example:

curl --location --request GET 'https://kisalinks.com/api/v1/spaces' \
--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/spaces/{id}

Request example:

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

API endpoint:

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

Request example:

curl --location --request POST 'https://kisalinks.com/api/v1/spaces' \
--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 space name.
color
optional integer
The color code. Possible values are: 1, 2, 3, 4, 5, 6. Varsalılan to: 1.
Update

API endpoint:

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

Request example:

curl --location --request PUT 'https://kisalinks.com/api/v1/spaces/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parametre
Tip
Açıklama
name
optional string
The space name.
color
optional integer
The color code. Possible values are: 1, 2, 3, 4, 5, 6.
Sil

API endpoint:

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

Request example:

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