API Documentation
The YuuCDN REST API lets you programmatically manage your files, folders, analytics, subscriptions and more. All endpoints are prefixed with:
https://api.yuucdn.org/api/v4NEXT_PUBLIC_API_URL. In production it points to your deployed API server.Authentication
Every request must include your API key in the X-Api-Key header. You can retrieve or regenerate your API key from the API Keys page in your dashboard.
Header
X-Api-Key: YOUR_API_KEYcurl Example
curl -H "X-Api-Key: YOUR_API_KEY" \
https://api.yuucdn.org/api/v4/filesResponse Format
All responses follow a consistent JSON envelope. Paginated endpoints include a meta field.
{
"success": true,
"data": "...",
"message": "OK",
"meta": {
"page": 1,
"page_size": 20,
"total_pages": 5,
"total_items": 92
},
"timestamp": "2026-04-01T10:00:00+07:00",
"error": {
"code": "VALIDATION_ERROR",
"message": "...",
"details": []
}
}| Field | Type | Description |
|---|---|---|
| success | boolean | true on success, false on error |
| data | any | null | The response payload |
| message | string | Human-readable status message |
| meta | object? | Pagination info (page, page_size, total_pages, total_items). Present on list endpoints. |
| timestamp | string | ISO 8601 server timestamp |
| error | object? | Present on error responses: code, message, details |
Files
Manage files: list, upload, move, and delete.
Folders
Create, read, update, and delete folders to organise your files.
Dashboard
Aggregate statistics for the authenticated user.
Roles
Retrieve available subscription plans (roles).
Subscriptions
View your active subscription and subscription history.
Transactions
Create and manage payment transactions.
Analytics
CDN request statistics and per-request logs for your files.