---
title: "Get project deployment insights"
method: GET
path: "/projects/{id}/insights"
tags: ["Projects"]
---

# Get project deployment insights

`GET /projects/{id}/insights`

## Request

- Base URL: `https://sg.deployhq.com`
- URL: `https://sg.deployhq.com/projects/{id}/insights`
- Auth: HTTP basic

Returns aggregated deployment statistics and per-server metrics for the specified time period.

## Path parameters

- `project_id` string, required
- `id` string, required

## Query parameters

- `period` string

## Response `200`

Success

- PeriodServersSummaryObject
  - `period` integer
  - `servers` object[]
    - `identifier` string
    - `name` string
    - `group` boolean
    - `latest_status` string
    - `recent_deploys` object[]
      - `status` string
      - `duration` integer
    - `speed` integer
    - `reliability` unknown
    - `deploys_per_week` unknown
    - `total` integer
  - `summary` object
    - `total_deploys` object
      - `value` integer
      - `delta` unknown
    - `success_rate` object
      - `value` unknown
      - `delta` unknown
    - `avg_duration` object
      - `value` integer
      - `delta` unknown
    - `active_servers` object
      - `value` integer
      - `delta` string

## Other responses

- `401`: You are not authorized to access this resource. You need to authenticate yourself first.
- `403`: You are not allowed to access this resource. You do not have the necessary permissions.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation.md) · [All operations](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/revisions/830264ae58be?raw)
