API Documentation

RESTful API for automated mirror management

Authentication

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
POST

/trust/api.php

Add a new mirror URL to your service.

Request Headers

Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Request Body

{
  "action": "add_mirror",
  "onion_url": "http://example.onion"
}

Response (Success)

{
  "success": true,
  "message": "Mirror added successfully",
  "mirror_id": 123
}

Response (Error)

{
  "success": false,
  "error": "Invalid API key"
}

Example Usage (cURL)

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"}'

⚠️ Rate Limits

  • • Maximum 100 requests per hour per API key
  • • Maximum 10 mirror additions per day
  • • Excessive usage may result in API key suspension

Get Your API Key

Login or register to get your API key.

Login