链接
                                GET https://www.cxb.wiki/api/links/
                            
                        
                                curl --request GET \
--url 'https://www.cxb.wiki/api/links/' \
--header 'Authorization: Bearer {api_key}' \
                        --url 'https://www.cxb.wiki/api/links/' \
--header 'Authorization: Bearer {api_key}' \
| 参数 | 细节 | 描述 | 
|---|---|---|
| page | 可选 整数 | 你想获取结果的页码。默认为 1 | 
| results_per_page | 可选 整数 | 每页显示多少结果。允许的值为: 10,25,50,100,250,500,1000。默认为25。 | 
{
    "data": [
        {
            "id": 1,
            "project_id": null,
            "domain_id": 0,
            "type": "link",
            "url": "example",
            "location_url": "https://example.com/",
            "settings": {
                "password": null,
                "sensitive_content": false
            },
            "clicks": 10,
            "order": 0,
            "start_date": null,
            "end_date": null,
            "datetime": "2025-10-31 01:51:05",
        }
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://www.cxb.wiki/api/links?page=1",
        "last": "https://www.cxb.wiki/api/links?page=1",
        "next": null,
        "prev": null,
        "self": "https://www.cxb.wiki/api/links?page=1"
    }
}
                        
                                GET https://www.cxb.wiki/api/links/{link_id}
                            
                        
                                curl --request GET \
--url 'https://www.cxb.wiki/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
                        --url 'https://www.cxb.wiki/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
{
    "data": {
        "id": 1,
        "project_id": null,
        "domain_id": 0,
        "type": "link",
        "url": "example",
        "location_url": "https://example.com/",
        "settings": {
            "password": null,
            "sensitive_content": false
        },
        "clicks": 10,
        "order": 0,
        "start_date": null,
        "end_date": null,
        "datetime": "2025-10-31 01:51:05",
    }
}
                        
                                POST https://www.cxb.wiki/api/links
                            
                        | 参数 | 细节 | 描述 | 
|---|---|---|
| type | 可选 字符串 | link | 
| location_url | 必需 字符串 | 目的地的URL可用于: is_bulk = 0 | 
| location_urls | 必需 字符串 | 目的地的URL可用于: is_bulk = 1 | 
| url | 可选 字符串 | 生成链接的URL别名。如需随机生成,请留空可用于: is_bulk = 0 | 
| is_bulk | 可选 布尔值 | |
| domain_id | 可选 整数 | - | 
| project_id | 可选 整数 | - | 
| pixels_ids | 可选 数组 整数 | - | 
| email_reports | 可选 数组 | Notification handler ids | 
| schedule | 可选 布尔值 | - | 
| start_date | 可选 字符串 | 可用于: schedule = true | 
| end_date | 可选 字符串 | 可用于: schedule = true | 
| clicks_limit | 可选 整数 | - | 
| expiration_url | 可选 字符串 | - | 
| sensitive_content | 可选 布尔值 | - | 
| http_status_code | 可选 整数 | 允许的值: 301,302,307,308 | 
| app_linking_is_enabled | 可选 布尔值 | - | 
| cloaking_is_enabled | 可选 布尔值 | - | 
| cloaking_title | 可选 字符串 | - | 
| cloaking_meta_description | 可选 字符串 | - | 
| cloaking_custom_js | 可选 字符串 | - | 
| cloaking_favicon | 可选 文件 | - | 
| cloaking_opengraph | 可选 文件 | - | 
| password | 可选 字符串 | - | 
| forward_query_parameters_is_enabled | 可选 布尔值 | - | 
| utm_source | 可选 字符串 | - | 
| utm_medium | 可选 字符串 | - | 
| utm_campaign | 可选 字符串 | - | 
| targeting_type | 可选 字符串 | continent_code,country_code,device_type,browser_language,rotation,os_name,browser_name | 
| targeting_continent_code_key[index] | 可选 字符串 | 可用于: targeting_type = continent_code | 
| targeting_continent_code_value[index] | 可选 字符串 | 可用于: targeting_type = continent_code | 
| targeting_country_code_key[index] | 可选 字符串 | 可用于: targeting_type = country_code | 
| targeting_country_code_value[index] | 可选 字符串 | 可用于: targeting_type = country_code | 
| targeting_city_name_key[index] | 可选 字符串 | 可用于: targeting_type = city_name | 
| targeting_city_name_value[index] | 可选 字符串 | 可用于: targeting_type = city_name | 
| targeting_device_type_key[index] | 可选 字符串 | 可用于: targeting_type = device_type | 
| targeting_device_type_value[index] | 可选 字符串 | 可用于: targeting_type = device_type | 
| targeting_browser_language_key[index] | 可选 字符串 | 可用于: targeting_type = browser_language | 
| targeting_browser_language_value[index] | 可选 字符串 | 可用于: targeting_type = browser_language | 
| targeting_rotation_key[index] | 可选 字符串 | 可用于: targeting_type = rotation | 
| targeting_rotation_value[index] | 可选 字符串 | 可用于: targeting_type = rotation | 
| targeting_os_name_key[index] | 可选 字符串 | 可用于: targeting_type = os_name | 
| targeting_os_name_value[index] | 可选 字符串 | 可用于: targeting_type = os_name | 
| targeting_browser_name_key[index] | 可选 字符串 | 可用于: targeting_type = browser_name | 
| targeting_browser_name_value[index] | 可选 字符串 | 可用于: targeting_type = browser_name | 
                                curl --request POST \
--url 'https://www.cxb.wiki/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://www.cxb.wiki/' \
                            
                        --url 'https://www.cxb.wiki/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://www.cxb.wiki/' \
{
    "data": {
        "id": 1
    }
}
                        
                                POST https://www.cxb.wiki/api/links/{link_id}
                            
                        | 参数 | 细节 | 描述 | 
|---|---|---|
| location_url | 可选 字符串 | 目的地的URL | 
| url | 可选 字符串 | 生成链接的URL别名。如需随机生成,请留空 | 
| domain_id | 可选 整数 | - | 
| project_id | 可选 整数 | - | 
| pixels_ids | 可选 数组 整数 | - | 
| email_reports | 可选 数组 | Notification handler ids | 
| schedule | 可选 布尔值 | - | 
| start_date | 可选 字符串 | 可用于: schedule = true | 
| end_date | 可选 字符串 | 可用于: schedule = true | 
| clicks_limit | 可选 整数 | - | 
| expiration_url | 可选 字符串 | - | 
| sensitive_content | 可选 布尔值 | - | 
| http_status_code | 可选 整数 | 允许的值: 301,302,307,308 | 
| app_linking_is_enabled | 可选 布尔值 | - | 
| cloaking_is_enabled | 可选 布尔值 | - | 
| cloaking_title | 可选 字符串 | - | 
| cloaking_meta_description | 可选 字符串 | - | 
| cloaking_custom_js | 可选 字符串 | - | 
| cloaking_favicon | 可选 文件 | - | 
| cloaking_opengraph | 可选 文件 | - | 
| password | 可选 字符串 | - | 
| forward_query_parameters_is_enabled | 可选 布尔值 | - | 
| utm_source | 可选 字符串 | - | 
| utm_medium | 可选 字符串 | - | 
| utm_campaign | 可选 字符串 | - | 
| targeting_type | 可选 字符串 | continent_code,country_code,device_type,browser_language,rotation,os_name,browser_name | 
| targeting_continent_code_key[index] | 可选 字符串 | 可用于: targeting_type = continent_code | 
| targeting_continent_code_value[index] | 可选 字符串 | 可用于: targeting_type = continent_code | 
| targeting_country_code_key[index] | 可选 字符串 | 可用于: targeting_type = country_code | 
| targeting_country_code_value[index] | 可选 字符串 | 可用于: targeting_type = country_code | 
| targeting_city_name_key[index] | 可选 字符串 | 可用于: targeting_type = city_name | 
| targeting_city_name_value[index] | 可选 字符串 | 可用于: targeting_type = city_name | 
| targeting_device_type_key[index] | 可选 字符串 | 可用于: targeting_type = device_type | 
| targeting_device_type_value[index] | 可选 字符串 | 可用于: targeting_type = device_type | 
| targeting_browser_language_key[index] | 可选 字符串 | 可用于: targeting_type = browser_language | 
| targeting_browser_language_value[index] | 可选 字符串 | 可用于: targeting_type = browser_language | 
| targeting_rotation_key[index] | 可选 字符串 | 可用于: targeting_type = rotation | 
| targeting_rotation_value[index] | 可选 字符串 | 可用于: targeting_type = rotation | 
| targeting_os_name_key[index] | 可选 字符串 | 可用于: targeting_type = os_name | 
| targeting_os_name_value[index] | 可选 字符串 | 可用于: targeting_type = os_name | 
| targeting_browser_name_key[index] | 可选 字符串 | 可用于: targeting_type = browser_name | 
| targeting_browser_name_value[index] | 可选 字符串 | 可用于: targeting_type = browser_name | 
                                curl --request POST \
--url 'https://www.cxb.wiki/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
                            
                        --url 'https://www.cxb.wiki/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
    "data": {
        "id": 1
    }
}
                        
                                DELETE https://www.cxb.wiki/api/links/{link_id}
                            
                        
                                curl --request DELETE \
--url 'https://www.cxb.wiki/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
                            
                        --url 'https://www.cxb.wiki/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \