Get Deployment Event Stream
Opens a server-sent events (SSE) stream that delivers real-time deployment progress updates. The stream remains open until the deployment completes, fails, or the connection times out (30 seconds).
Each event is a JSON object delivered as an SSE data field. Parse the data value as JSON before reading the fields below.
Event payload
If the deployment cannot be found after the stream opens, the stream delivers a single event whose data is {"error": "The requested deployment was not found."} and then closes.
| deployment_hostnames | array of strings | Hostnames serving the deployment. Always present, but empty ([]) until the deployment reaches finalizing. Prefix the first entry with https:// to build the deployment URL. |
Not every step appears in every deployment, so drive any progress display from the event.step and event.progress values as they arrive rather than expecting a fixed sequence.
Deployment error codes
When deployment_status is failed, error.code identifies the failure reason:
Treat any other code as an unexpected failure: retry the deployment, and contact support if it persists.
Authentication
OAuth scopes
Authentication header
Further reading
For example requests and more information about authenticating BigCommerce APIs, see Authentication and Example Requests.
For more about BigCommerce OAuth scopes, see our Guide to API Accounts.
For a list of API status codes, see API Status Codes.
Path parameters
Response
A stream of server-sent events with deployment progress updates. The data attribute is stringified JSON.
The hostnames serving the deployment. Always present, but empty until the deployment reaches finalizing. Prefix the first entry with https:// to build the deployment URL.
Error information if the deployment failed. Present only when deployment_status is failed.