> For the complete documentation index, see [llms.txt](https://docs.we360.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.we360.ai/deployment-and-it-ops/integrations-and-api-access/integrations/oauth-for-direct-api-access/project-suite/project-report-api.md).

# Project Report API

Retrieve project-level time, billing, and cost rollups.

Retrieve project time and costing data with explicit column selection.

### Endpoint

```http
POST https://api.in.we360.ai/query/external/reports/project_report
```

### Request body

```json
{
  "start_date": "2026-04-01T00:00:00",
  "end_date": "2026-04-30T23:59:59",
  "mode": "summary",
  "columns": ["project_id", "project_name", "status", "currency", "logged_duration", "billable_duration", "non_billable_duration", "task_count", "member_count", "billable_cost"],
  "page": 1,
  "limit": 50,
  "project_id": "",
  "status": [],
  "group_id": "",
  "user_id": ""
}
```

| Parameter                | Required | Description                                                                               |
| ------------------------ | -------- | ----------------------------------------------------------------------------------------- |
| `start_date`, `end_date` | Yes      | ISO datetime range. Time uses the log date.                                               |
| `mode`                   | Yes      | `summary` returns one row per project. `detailed` returns one row per project and member. |
| `columns`                | Yes      | Explicit fields to return.                                                                |
| `page`                   | No       | Page number. Defaults to `1`.                                                             |
| `limit`                  | No       | Page size. Use `0` for all records.                                                       |
| `project_id`             | No       | Comma-separated project UUIDs.                                                            |
| `status`                 | No       | Status filter, such as `["ACTIVE","ARCHIVED"]`.                                           |
| `group_id`, `user_id`    | No       | Comma-separated member group or user UUIDs.                                               |

### Available columns

* **Identity:** `project_id`, `project_name`, `color`, `status`, `currency`, `billing_type`, `owner_name`, `owner_identity_id`, `created_date`.
* **Time:** `logged_duration`, `billable_duration`, `non_billable_duration`, `estimated_duration`, `task_count`, `member_count`.
* **Cost:** `billable_cost`, `total_cost`, `budget`, `budget_utilization_percent`.
* **Detailed mode:** `identity_id`, `employee_id`, `first_name`, `last_name`, `email`, `member_logged_duration`, `member_billable_duration`, `member_cost`.

Durations use `HH:MM:SS`. Project-level totals repeat for each member in `detailed` mode.

### Response

```json
{
  "data": [
    {
      "project_id": "a1b2c3d4-1111-2222-3333-444455556666",
      "project_name": "Case 4821 — Acme Litigation",
      "status": "ACTIVE",
      "currency": "USD",
      "logged_duration": "128:45:00",
      "billable_duration": "112:30:00",
      "non_billable_duration": "16:15:00",
      "task_count": 23,
      "member_count": 6,
      "billable_cost": 16875.00
    }
  ],
  "pagination": { "page": 1, "limit": 50, "total_records": 14, "total_pages": 1, "has_next": false, "has_previous": false },
  "meta": { "mode": "summary", "selected_columns": ["project_id", "project_name", "status", "currency", "logged_duration"] }
}
```

### Example

```bash
curl -X POST "https://api.in.we360.ai/query/external/reports/project_report" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${access_token}" \
  -d '{"start_date":"2026-04-01T00:00:00","end_date":"2026-04-30T23:59:59","mode":"summary","columns":["project_id","project_name","status","logged_duration","billable_duration","billable_cost"],"page":1,"limit":25}'
```

Use `summary` for dashboards. Use `detailed` for per-member cost analysis. Invalid columns or filters return validation errors.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.we360.ai/deployment-and-it-ops/integrations-and-api-access/integrations/oauth-for-direct-api-access/project-suite/project-report-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
