Every product through one bridge
All product lines — cloud and VDS servers, dedicated servers, corporate mail, monitors, storage, licenses — are reachable through
/cloud/services. Anything you can click on a service in the client area is a tool (or a module method) and works here too:
# what can I do with service 123?
curl -s https://www.gyrohosting.com/api/v1/client/cloud/services/123/tools -H "Authorization: Bearer $GYRO_TOKEN"
# list mailboxes, then create one
curl -s .../cloud/services/123/tools/mailboxes -H "Authorization: Bearer $GYRO_TOKEN"
curl -s -X POST .../cloud/services/123/tools/mailboxes/create -H "Authorization: Bearer $GYRO_TOKEN" \
-H "Content-Type: application/json" -d '{"email":"[email protected]","password":"S3cure-pass!","quota":2048}'
The discovery answer flags every action with read, confirm (send "confirm": true) and secret
(one-time values, withheld when you send an Idempotency-Key). Domains, DNS, tickets, orders and invoices use the core endpoints listed below with the same key.