Get edge error breakdown for the application's domains
Changed onReturns an aggregated view of HTTP errors served at the edge for the application's primary domain and any configured custom domain: status code breakdown, timeseries, top failing paths and per-method breakdown.
Requires both start and end ISO timestamps. Maximum retention window is 7 days; the start is clamped to the application's creation date.
Defaults to 5xx only. Pass include_4xx=true to include 4xx as well (typically noisy with scanner 404s).
Results cached per bucket; on cache miss rate-limited to 20 calls per 60s per owner, shared across the analytics, errors, logs and performance endpoints.
Request
- Base URLhttps://api.squarecloud.app
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Application identifier. Optionally suffixed with -<workspaceId> to act on a workspace-shared application.
Query parameters
ISO 8601 start timestamp.
ISO 8601 end timestamp.
When true, include 4xx responses in addition to 5xx. Defaults to false (5xx only).
Response
Aggregated error breakdown: status-code summary, time-bucketed totals, top failing (method, path) tuples, and per-method breakdown. The status-code keys inside timeseries[].buckets, top_paths[].by_status, and by_method[].by_status are open — whichever status codes the edge served in the window appear there. Returns empty totals/arrays when the requested window has no matching errors or starts before the application's creation date.
Changes
- warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status - warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status - warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status - warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status - warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status - warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status - warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status
- warning
- warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status
- warning