自訂網域
GET https://9qrcode.com/api/domains/
curl --request GET \
--url 'https://9qrcode.com/api/domains/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://9qrcode.com/api/domains/' \
--header 'Authorization: Bearer {api_key}' \
參數 | 細節 | 描述 |
---|---|---|
page | 選擇性 整數 | 您想要結果的頁碼。預設為1 |
results_per_page | 選擇性 整數 | 您想要每頁顯示多少個結果。允許的值為:10 , 25 , 50 , 100 , 250 , 500 , 1000 。默認為25 。 |
{
"data": [
{
"id": 1,
"scheme": "https://",
"host": "example.com",
"custom_index_url": "",
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-07-02 10:40:47"
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://9qrcode.com/api/domains?&page=1",
"last": "https://9qrcode.com/api/domains?&page=1",
"next": null,
"prev": null,
"self": "https://9qrcode.com/api/domains?&page=1"
}
}
GET https://9qrcode.com/api/domains/{domain_id}
curl --request GET \
--url 'https://9qrcode.com/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://9qrcode.com/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"scheme": "https://",
"host": "example.com",
"custom_index_url": "",
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-07-02 10:40:47"
}
}
POST https://9qrcode.com/api/domains
參數 | 細節 | 描述 |
---|---|---|
host | 必要 字串 | - |
custom_index_url | 選擇性 字串 | - |
custom_not_found_url | 選擇性 字串 | - |
curl --request POST \
--url 'https://9qrcode.com/api/domains' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=example.com' \
--form 'custom_index_url=https://example.com/' \
--form 'custom_not_found_url=https://example.com/404-page'
--url 'https://9qrcode.com/api/domains' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=example.com' \
--form 'custom_index_url=https://example.com/' \
--form 'custom_not_found_url=https://example.com/404-page'
{
"data": {
"id": 1
}
}
POST https://9qrcode.com/api/domains/{domain_id}
參數 | 細節 | 描述 |
---|---|---|
host | 選擇性 字串 | - |
custom_index_url | 選擇性 字串 | - |
custom_not_found_url | 選擇性 字串 | - |
curl --request POST \
--url 'https://9qrcode.com/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=example.com' \
--url 'https://9qrcode.com/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=example.com' \
{
"data": {
"id": 1
}
}
DELETE https://9qrcode.com/api/domains/{domain_id}
curl --request DELETE \
--url 'https://9qrcode.com/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://9qrcode.com/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \