笔记
专家级
API密钥应作为请求的授权头中的承载令牌发送。 获取API密钥.
列表

API终结点:

GET
https://link.xxbtop.com/api/v1/domains

请求示例:

curl --location --request GET 'https://link.xxbtop.com/api/v1/domains' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
参数
类型
说明
search
可选 string
搜索查询。
sort
可选 string
排序. 可能的值是: 降序的值, 提升的值。 默认为:desc
per_page
可选 int
每页结果数. 可能的值是:10100。 默认为:
显示

API终结点:

GET
https://link.xxbtop.com/api/v1/domains/{id}

请求示例:

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

API终结点:

POST
https://link.xxbtop.com/api/v1/domains

请求示例:

curl --location --request POST 'https://link.xxbtop.com/api/v1/domains' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
参数
类型
说明
name
要求的 string
空间名称。
index_page
可选 string
要重定向到的索引页。
not_found_page
可选 string
要重定向到的404页。
更新

API终结点:

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

请求示例:

curl --location --request PUT 'https://link.xxbtop.com/api/v1/domains/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
参数
类型
说明
index_page
可选 string
要重定向到的索引页。
not_found_page
可选 string
要重定向到的404页。
删除

API终结点:

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

请求示例:

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