API Overview
The Uncloud API is a RESTful interface for managing all platform resources. Every action available in the dashboard is also available through the API.Base URL
/api/v1.
Authentication
Include your API token in the request header:Request Format
- Content-Type:
application/jsonfor all POST/PATCH requests - Accept:
application/jsonfor all responses
Response Format
All responses follow a consistent JSON structure:Success Response
List Response
Error Response
HTTP Methods
| Method | Usage |
|---|---|
GET | Retrieve resources |
POST | Create resources or trigger actions |
PATCH | Partially update resources |
DELETE | Remove resources |
Resource ID Prefixes
| Resource | Prefix | Example |
|---|---|---|
| Project | proj_ | proj_default |
| Droplet | dpl_ | dpl_a1b2c3d4 |
| Volume | vol_ | vol_e5f6g7h8 |
| App | app_ | app_i9j0k1l2 |
| Database | db_ | db_m3n4o5p6 |
| SSH Key | sk_ | sk_q7r8s9t0 |