Skip to content

List deployment activity

GET/v1/deployments/activity

Returns how many runs were started per day across the whole workspace, with how many succeeded (ready) and failed. Only days with at least one run are included, oldest first. Days are calendar dates in West Africa Time (UTC+1).

This counts every run in the workspace, including runs of pull request previews and of one-click app components. For a single deployment, use List activity for a deployment.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Query parameters

daysinteger

How many days back to count, up to 366. Missing, non-numeric, zero, negative or larger values use 365.

Default 365min 1 · max 366

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

Run counts per day.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataarray of objects
Show item attributes
datestring (date)Required

Day (YYYY-MM-DD, West Africa Time).

countintegerRequired

Runs started that day.

succeededintegerRequired

Of those, runs that are ready.

failedintegerRequired

Of those, runs that failed.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.

Errors use the standard error format.