---
title: "Retrieve forecast cost for a specific project"
method: GET
path: "/rest/api/v1/projects/{projectId}/costs/forecast"
tags: ["Project API"]
---

# Retrieve forecast cost for a specific project

`GET /rest/api/v1/projects/{projectId}/costs/forecast`

## Request

- Base URL: `https://api.metacopier.io`
- URL: `https://api.metacopier.io/rest/api/v1/projects/{projectId}/costs/forecast`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/metacopier/apis/metacopier-api/docs/rest/api/v1/projects/:projectId/costs/forecast/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `projectId` string, uuid, required

## Response `200`

OK

- ForecastDTO
  - `currency` CurrencyTypeDTO: You have only to set the id e.g 1 for USD, 2 for EUR, 3 for CHF. Example: {id:1}
    - `id` integer, required
    - `name` string
  - `positions` string[]
  - `total` number

## Changes

- **2025-02-07** `f3a76dd2ff82`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/metacopier/apis/metacopier-api/changes/rest/api/v1/projects/:projectId/costs/forecast/get.md)

---

[API](https://skmtc.dev/metacopier/apis/metacopier-api.md) - [All operations](https://skmtc.dev/metacopier/apis/metacopier-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metacopier/apis/metacopier-api/revisions/cbf3e7810fc2?raw)
