Launchbay

HTTP API

The daemon's HTTP and WebSocket API, which the CLI and the app use.

HTTP on 127.0.0.1:7717, authenticated with Authorization: Bearer <token> or ?token=<token> (for WebSocket clients that can't set headers). Every message is JSON.

GET /jobs?limit=Nrecent jobs, newest first
POST /jobs{lane, cmd: [..], cwd, scheduled_at?} queues a job
GET /jobs/{id}one job
POST /jobs/{id}/cancel / retrycancel, or queue a copy
GET /jobs/{id}/logthe log so far, as text
WS /events{type: "snapshot", jobs} on connect, then {type: "job", job} on every change (a new snapshot if the client falls behind)
GET /listings?project=P&platform=ios|androidan app's listing snapshots, newest first
POST /listings{project, platform, locale, fields, images} saves an edit
POST /listings/pull / push{project, platform, profile?, ids?, at?} queues a pull, or a push of the edits ids
POST /blobs / POST /blobs/importa PNG or JPEG as the body, or {path} of one; returns {hash}
GET /blobs/{hash}a stored image
GET /icon?project=Pthe app's icon from its Expo config (app.json, or app.config.* via expo config)
GET /projectsapps with jobs or listings whose folders still exist, most recently used first
POST /projects/hide{project} takes an app out of /projects until its next job
POST /screenshots{project, platform: ios|android|all, locale?, at?} queues screenshot jobs (see Store screenshots)
WS /jobs/{id}/log/ws{type: "log", id, data} from the start of the log, live while it runs, then {type: "end", job} and close