---
title: "Get deployment activity graph showing daily deployment counts Similar to GitHub's contribution graph"
method: GET
path: "/deployments/activity-graph"
tags: ["Deployments"]
---

# Get deployment activity graph showing daily deployment counts Similar to GitHub's contribution graph

`GET /deployments/activity-graph`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/deployments/activity-graph`
- Auth: HTTP bearer

## Query parameters

- `project_id` integer
- `environment_id` integer
- `days` integer

## Response `200`

Successfully retrieved activity graph

- ActivityGraphResponse: Response for activity graph showing daily deployment activity
  - `days` ActivityDay[], required: Array of daily activity counts
    - `count` integer, required: Number of deployments on this day
    - `date` string, required: Date in YYYY-MM-DD format
    - `level` integer, required: Intensity level (0-4) for visualization 0: No activity, 1: Low (1-2), 2: Medium (3-5), 3: High (6-10), 4: Very High (11+)
  - `end_date` string, required: Date range end (YYYY-MM-DD)
  - `start_date` string, required: Date range start (YYYY-MM-DD)
  - `total_count` integer, required: Total count of activities across all days

## Other responses

- `400`: days is out of range
- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 2 breaking
  - removed the required property `extensions` from the response with the `400` status
  - removed the required property `extensions` from the response with the `403` status
- **2026-11-03** `0add2fdd114a`: 1 info
  - added the non-success response with the status `400`
- **2026-11-03** `fcfcfae25744`: 1 info
  - removed the non-success response with the status `400`
- **2026-11-03** `af07888c38c0`: 1 info
  - added the non-success response with the status `400`
- **2026-10-05** `4b228ebed583`: 1 info
  - added the optional property `status` to the response with the `403` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/deployments/activity-graph/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
