/v1/deployments/activityReturns 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
daysintegerHow 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-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
Run counts per day.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item attributes
datestring (date)RequiredDay (YYYY-MM-DD, West Africa Time).
countintegerRequiredRuns started that day.
succeededintegerRequiredOf those, runs that are ready.
failedintegerRequiredOf those, runs that failed.
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
Errors use the standard error format.