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=N | recent jobs, newest first |
POST /jobs | {lane, cmd: [..], cwd, scheduled_at?} queues a job |
GET /jobs/{id} | one job |
POST /jobs/{id}/cancel / retry | cancel, or queue a copy |
GET /jobs/{id}/log | the 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|android | an 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/import | a PNG or JPEG as the body, or {path} of one; returns {hash} |
GET /blobs/{hash} | a stored image |
GET /icon?project=P | the app's icon from its Expo config (app.json, or app.config.* via expo config) |
GET /projects | apps 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 |