---
title: "Obter detalhes de uma meta"
method: GET
path: "/api/management/goals/{goal}"
tags: ["goals"]
---

# Obter detalhes de uma meta

`GET /api/management/goals/{goal}`

Retorna os dados de uma meta, com as metas filhas e a contagem de resultados já apurados. Enviar o parâmetro `refresh` recalcula e grava o progresso antes de responder.

## Query parameters

- `refresh` string

## Response `200`

Sucesso

- object
  - `response` boolean
  - `goal` object
    - `id` string
    - `title` string
    - `description` string
    - `status` string
    - `start_date` string, date
    - `end_date` string, date
    - `periodicity` integer
    - `type` string
    - `target` integer
    - `unit` string
    - `comparison_mode` string
    - `progress` integer
    - `children` unknown[]
      - unknown
    - `progress_change_percentage` integer
    - `percentage` integer
    - `results_count` integer
    - `is_past_calculable` boolean
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `404` — Meta não encontrada

## Changes

- **2026-09-22** `b43a04f35145` — 3 warning
  - removed the optional property `goal/deleted_at` from the response with the `200` status
  - removed the optional property `goal/funnel_step_id` from the response with the `200` status
  - removed the optional property `goal/user_id` from the response with the `200` status
- **2026-09-18** `3202abfa17f9` — 2 info
  - added the media type `application/json` for the response with the status `200`
  - added the non-success response with the status `404`
- **2026-09-18** `0abcbb399fb0` — 1 info
  - added the new optional `query` request parameter `refresh`

[Change history](https://skmtc.dev/olie-ai/apis/olie-api/changes/api/management/goals/:goal/get.md)

---

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