سجل الأن لدينا واحصل على 10 رابط مختصر مجانا تحت اسم منشأتك والروابط لا تحذف ابدا في حسابك

النطاقات

Notes
مستوى الخبراء
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
List

نقطة نهاية API:

GET
https://cut.sa/api/v1/domains

مثال الطلب:

curl --location --request GET 'https://cut.sa/api/v1/domains' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
النوع
الوصف
search
optional string
The search query.
search_by
optional string
البحث بواسطة. Possible values are: name for الأسم. Defaults to: name.
sort_by
optional string
اختصر بواسطة. Possible values are: id for تاريخ الانشاء, name for الأسم. Defaults to: id.
sort
optional string
قصير. Possible values are: desc for تنازلي, asc for تصاعدي. Defaults to: desc.
per_page
optional integer
النتيجة لكل صفحة. Possible values are: 10, 25, 50, 100. Defaults to: 10.
Show

نقطة نهاية API:

GET
https://cut.sa/api/v1/domains/{id}

مثال الطلب:

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

نقطة نهاية API:

POST
https://cut.sa/api/v1/domains

مثال الطلب:

curl --location --request POST 'https://cut.sa/api/v1/domains' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}'
Parameter
النوع
الوصف
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:

PUT PATCH
https://cut.sa/api/v1/domains/{id}

مثال الطلب:

curl --location --request PUT 'https://cut.sa/api/v1/domains/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
النوع
الوصف
index_page
optional string
The index page to redirect to.
not_found_page
optional string
The 404 page to redirect to.
حذف

نقطة نهاية API:

DELETE
https://cut.sa/api/v1/domains/{id}

مثال الطلب:

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