Overview
Borg UI provides a comprehensive REST API built with FastAPI for managing Borg Backup repositories, archives, schedules, and system configuration.Base URL
When running locally:OpenAPI Documentation
Interactive API documentation is available at:- Swagger UI:
/api/docs - ReDoc:
/api/redoc
API Info Endpoint
Get basic API information:API Version
Current API version: 1.64.1 The API is versioned alongside the application. Check the/api/system/info endpoint for the current version:
Response Format
All API responses use JSON format. Successful responses typically include:HTTP Status Codes
200 OK- Request succeeded201 Created- Resource created successfully204 No Content- Request succeeded with no response body400 Bad Request- Invalid request parameters401 Unauthorized- Authentication required403 Forbidden- Insufficient permissions404 Not Found- Resource not found409 Conflict- Resource conflict (e.g., duplicate name)500 Internal Server Error- Server error
Health Check
Check if the API is running:Authentication
Most API endpoints require authentication. See the Authentication section for details on obtaining and using access tokens.CORS
CORS is configured to allow requests from specified origins. Configure allowed origins using theCORS_ORIGINS environment variable.