RESTful API for automated mirror management
All API requests require authentication using an API key. You can generate an API key from your Account Dashboard.
Include your API key in the request header:
Authorization: Bearer YOUR_API_KEY
Add a new mirror URL to your service.
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"action": "add_mirror",
"onion_url": "http://example.onion"
}
{
"success": true,
"message": "Mirror added successfully",
"mirror_id": 123
}
{
"success": false,
"error": "Invalid API key"
}
curl -X POST https://spyus.test/trust/api.php \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"add_mirror","onion_url":"http://example.onion"}'