Tail Worker Logs
Opens a server-sent events (SSE) stream that delivers real-time worker logs for a project. The stream includes log messages, request data, and exception information. A keep-alive is sent every 15 seconds. The stream times out after 5 minutes (300 seconds).
Each event is a JSON object delivered as an SSE data field. Parse the data value as JSON before reading the fields described in the response schema.
If the project cannot be found after the stream opens, the stream delivers a single event whose data is {"error": "The requested project was not found."} and then closes.
Note: This endpoint is served from the streaming API server, not the main API gateway.
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 real-time worker log entries. The data attribute is stringified JSON.