API Reference
Comprehensive documentation for integrating with our cloud services.
REST API
Our RESTful API for managing resources in our platform using standard HTTP methods.
View documentationCLI Reference
Command-line interface for automating and managing your cloud resources.
View CLI referenceAPI Services
Database API
Manage your database instances, backups, and configurations programmatically.
GET /api/v1/databases
POST /api/v1/databases
GET /api/v1/databases/:id
PUT /api/v1/databases/:id
DELETE /api/v1/databases/:idInfrastructure API
Manage your infrastructure resources including compute, storage, and networking.
GET /api/v1/clusters
POST /api/v1/clusters
GET /api/v1/clusters/:id
PUT /api/v1/clusters/:id
DELETE /api/v1/clusters/:idWebhooks API
Configure webhooks to receive real-time notifications about events in your account.
GET /api/v1/webhooks
POST /api/v1/webhooks
GET /api/v1/webhooks/:id
PUT /api/v1/webhooks/:id
DELETE /api/v1/webhooks/:idCode Examples
// Creating a new database instance
const phineUp = require('phineup-sdk');
const client = new phineUp.Client({
apiKey: 'your-api-key'
});
async function createDatabase() {
try {
const database = await client.databases.create({
name: 'production-db',
type: 'postgresql',
version: '14',
region: 'us-east-1',
plan: 'business',
highAvailability: true
});
console.log(`Database created: ${database.id}`);
return database;
} catch (error) {
console.error('Error creating database:', error);
}
}
createDatabase();API Rate Limits
To ensure the stability and availability of our API for all users, we implement rate limiting on all API endpoints. The rate limits vary depending on your subscription tier.
| Plan | Rate Limit | Burst Limit |
|---|---|---|
| Developer | 60 requests per minute | 100 requests |
| Business | 300 requests per minute | 500 requests |
| Enterprise | 1000 requests per minute | 2000 requests |
Ready to Start Building?
Get your API key and start integrating Phine Up's cloud services into your applications.