This API allows developers to interact with the Config Converter backend. It supports saving, loading, editing, and deleting configurations, as well as converting configurations to Singbox format.
https://yebekhe.site/api/tosingbox/api.php
action
parameter to specify the operation.Endpoint: POST /
Request Parameters:
{ "action": "save", "configs": "vmess://example1\nvless://example2", "config_name": "My Config", "tun_mode": "true", "save_only": "false" }
Response:
{ "url": "https://yebekhe.site/api/tosingbox/configs/12345.jsonc", "private_key": "a1b2c3d4e5f6g7h8i9j0" }
Endpoint: POST /
Request Parameters:
{ "action": "load", "private_key": "a1b2c3d4e5f6g7h8i9j0" }
Response:
{ "original_configs": "vmess://example1\nvless://example2", "converted_configs": "//profile-title: base64:...", "name": "My Config", "tun_mode": "true" }
Endpoint: POST /
Request Parameters:
{ "action": "edit_original", "private_key": "a1b2c3d4e5f6g7h8i9j0", "configs": "vmess://updated1\nvless://updated2", "config_name": "Updated Config", "tun_mode": "false", "save_only": "false" }
Response:
{ "message": "Configuration updated successfully." }
Endpoint: POST /
Request Parameters:
{ "action": "edit_converted", "private_key": "a1b2c3d4e5f6g7h8i9j0", "converted_configs": "//profile-title: base64:...", "config_name": "Updated Config" }
Response:
{ "message": "Configuration updated successfully." }
Endpoint: POST /
Request Parameters:
{ "action": "delete", "private_key": "a1b2c3d4e5f6g7h8i9j0" }
Response:
{ "message": "Configuration deleted successfully." }
{ "error": "Invalid private key." }
Rate Limit: 100 requests per hour per IP address.
Response Headers:
X-RateLimit-Limit
: Total allowed requests per hour.X-RateLimit-Remaining
: Remaining requests in the current window.No authentication is required to use the API. However, each configuration is protected by a unique private_key
.
curl -X POST https://yebekhe.site/api/tosingbox/api.php \ -H "Content-Type: application/json" \ -d '{ "action": "save", "configs": "vmess://example1\nvless://example2", "config_name": "My Config", "tun_mode": "true", "save_only": "false" }'
curl -X POST https://yebekhe.site/api/tosingbox/api.php \ -H "Content-Type: application/json" \ -d '{ "action": "load", "private_key": "a1b2c3d4e5f6g7h8i9j0" }'
curl -X POST https://yebekhe.site/api/tosingbox/api.php \ -H "Content-Type: application/json" \ -d '{ "action": "delete", "private_key": "a1b2c3d4e5f6g7h8i9j0" }'
Click the button below to download the Postman Collection for this API.