Developer API
OceanLinuxREST API Documentation
Integrate VPS provisioning, wallet management, and order automation into your applications with our REST API.
Base URL
oceanlinux.com/api/v1
Authentication
Bearer Token
Rate Limit
1000/month
Security
HTTPS Only
Getting Started
Learn how to quickly get started with the OceanLinux API
2. Set Up Authentication
Include your API key in the Authorization header of every request.
curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
https://oceanlinux.com/api/v1/wallet3. Check Your Wallet
Before purchasing servers, ensure you have sufficient wallet balance.
Authentication
Secure your API requests with proper authentication
API Key Authentication
All API requests must include a valid API key in the Authorization header using Bearer token format.
Authorization: Bearer ol_1234567890abcdef...Permissions
API keys can have different permission levels:
servers:read
View server information
servers:write
Purchase and manage servers
wallet:read
View wallet balance
Wallet Management
Manage your wallet balance for API-based server purchases
Server Operations
Purchase and manage servers using your wallet balance
Error Handling
Understanding API error responses and status codes
HTTP Status Codes
Error Response Format
{
"error": "Insufficient wallet balance",
"message": "Your wallet balance (₹500) is insufficient for this purchase (₹1200)",
"code": "INSUFFICIENT_BALANCE",
"required": 1200.00,
"available": 500.00,
"timestamp": "2024-01-15T10:30:00Z"
}Code Examples
Ready-to-use code snippets in different languages
Complete examples for common API operations
View All Examples
A product of 