Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.71 KB

File metadata and controls

55 lines (43 loc) · 1.71 KB

API Reference

AppHub exposes a REST API at /api protected by API key authentication (x-api-key header).

Base URL: http://<server>:9000/api

Authentication

All endpoints (except docs/openapi) require an x-api-key header. Internal gateway communication uses a trust key file at /data/config/internal-gateway-auth/trust_key.

API Modules

Module Prefix Description
Apps /api/apps Application catalog, install, lifecycle
Auth /api/auth User authentication and token management
Backup /api/backup Backup jobs, schedules, restore
Compose /api/compose Custom Docker Compose app management
Files /api/files File browser operations
Host Access /api/host-access SSH/SFTP credential management
Integrations /api/integrations Gitea, Portainer, NPM session management
Logs /api/logs System and application log retrieval
Overview /api/overview Dashboard metrics and host info
Proxy /api/proxy NPM proxy host and certificate management
Services /api/services Core service status and control
Settings /api/settings Platform configuration
AppStore Sync /api/appstore Application catalog synchronization
Setup Wizard /api/setup Initial product setup wizard

Common Response Format

{
  "code": 0,
  "message": "success",
  "data": {}
}

Error Response

{
  "code": -1,
  "message": "error description",
  "data": null
}

API Documentation (Swagger)

Interactive API docs are available at:

  • Swagger UI: http://<server>:9000/api/docs
  • ReDoc: http://<server>:9000/api/redoc
  • OpenAPI JSON: http://<server>:9000/api/openapi.json