Skip to main content

REST API Endpoints

The Core Server exposes a REST API for session management, health checks, and file downloads.

Base URL: http://localhost:8765 (Default)

System

Get Health Status

GET /health

Returns the current status of the server.

Response:

{
"status": "ok",
"version": "1.1.0",
"uptime": 123.45
}

Get Version

GET /version

Returns the installed version of JetStart Core.

Response:

{
"version": "1.1.0"
}

Sessions

Create Session

POST /session/create

Initializes a new development session and generates a QR code.

Body:

{
"projectName": "My App",
"projectPath": "/absolute/path/to/project"
}

Response:

{
"session": {
"id": "uuid-string",
"token": "auth-token",
"createdAt": 1700000000
},
"qrCode": "data:image/png;base64,..."
}

Get Session Details

GET /session/:sessionId

Retrieves information about an active session.

Response:

{
"id": "uuid-string",
"projectName": "My App",
"status": "active",
"connectedClients": 1
}

Downloads

Download APK

GET /download/:filename

Downloads the built APK file.

  • filename: Usually app-debug.apk

Response:

  • Binary file stream (application/vnd.android.package-archive)
  • 404 if build not found