Browse API

Deployment events

Follow build/status events of an exact App deployment.

GET/api/v0/projects/<key>/apps/<app>/deploy/<deployment>/events

Request

GET https://repopack.com/api/v0/projects/<key>/apps/<app>/deploy/<deployment>/events
Authorization: Bearer <token>
Accept: text/event-stream

<deployment> is the App-local deployment number. The route also accepts a server-provided deployment_id query value: when it is a positive integer, lookup uses that ID instead of the path number, then verifies the deployment belongs to the same App and project. Omit the query to select by path number. An account needs app.read for a normal App; app.preview can inspect a task App only when its task is visible. The SSE stream first sends existing deployment events; when no longer building, it sends deployment_status and closes. While building it relays new events and closes on a terminal status. A missing/unreadable project returns 401, missing role or task access 403, unknown/mismatched deployment 404. Token revocation closes the stream. Reconnect and inspect App state after a disconnect; do not create another deployment solely because event attachment failed.