Developers
Build on the VASTROX API
A clean, token-authenticated REST API to manage your account, services, invoices, orders and tickets programmatically.
Base URL https://vastrox.com/api/v11Authenticate
Create a personal access token in your Account → API Keys, then send it as a Bearer token:
Authorization: Bearer <your-key>
2Choose a scope
Read-only keys can view everything in your account. Read & write keys can also open/reply to tickets and power VPS servers. Write calls with a read key return 403.
3Read responses
Every response uses one envelope:
{ "ok": true, "data": … }
or{ "ok": false, "error": {…} }
Endpoints
Account
GET
/me
Your profile, company & balance
Services
GET
/services
List your services
GET
/services/{id}
A single service
POST
/services/{id}/power
write Start / stop / restart a VPS
Invoices
GET
/invoices
List invoices
GET
/invoices/{id}
A single invoice
Orders
GET
/orders
List your orders
GET
/orders/{id}
A single order + items
Tickets
GET
/tickets
List tickets
GET
/tickets/{id}
A ticket + replies
POST
/tickets
write Open a new ticket
POST
/tickets/{id}/reply
write Reply to a ticket
Example
# List your services curl -H "Authorization: Bearer <your-key>" \ https://vastrox.com/api/v1/services # Open a ticket (needs a Read & write key) curl -X POST https://vastrox.com/api/v1/tickets \ -H "Authorization: Bearer <your-key>" \ -H "Content-Type: application/json" \ -d '{"department":"support","subject":"Hi","priority":"low","message":"Hello"}'
Rate limit: 90 requests/minute per token. All data is scoped to the token owner.