All request must have an Authorization header with your API key.
This API allows you to manage your domains using the create, delete, and delete-all methods. Each method is designed to either add new domain, delete individual domain, or remove all domains under a given domain. The API handles requests and responses in JSON format. You can interact with the API using a bash script. API URL:
https://sector.biz/api.php http://sector3neq5ymog2aeempwnv22bbvvx4lneyysadf63ztrtc5ndfwyyd.onion/api.phpIf the request should go through Tor, add torsocks before curl so that the requests are routed through Tor:torsocks curl -X POST "$API_URL" \Example Usage
1. Create domain: To add domains, run the script with create followed by the network type and domain:
Command:
bash pushmirror.sh create Tor:domain1.onion Clearnet:domain2.com Rotator:domain3.netSuccess:{"status":"success","message":"Domains have been successfully added."}Error:{"status":"error","message":"Domain 'domain1.onion' already exists."} {"status":"error","message":"Domain 'domain2.com' already exists."} {"status":"error","message":"Domain 'domain3.net' already exists."} Invalid network '..'. Only 'Tor', 'Clearnet', or 'Rotator' are allowed.
2. Delete a domain: To delete a specific domain, run the script with delete and provide the domain: Command:
bash pushmirror.sh delete domain1.onionSuccess:{"status":"success","message":"Domain has been deleted."}Error:{"status":"error","message":"Domain not found or already deleted."}
3. Delete All domains: To delete all domains, run the script with delete-all: Command:
bash pushmirror.sh delete-allSuccess:{"status":"success","message":"All domains have been deleted."}Error:{"status":"error","message":"No domain found to delete."}