---
title: "Get Opportunity Detail Data"
method: GET
path: "/opportunities/detail"
tags: ["OPPORTUNITIES"]
---

# Get Opportunity Detail Data

`GET /opportunities/detail`

Hydrated single opportunity with comments and (for SE-authored priority opps) priority metadata.

## Query parameters

- `opportunity_id` string, required
- `instance_id` integer, required
- `navigationSource` string, nullable

## Headers

- `x-tenant` string, required

## Response `200`

Successful Response

- OpportunityDetailResponse
  - `opportunity_id` string, required
  - `instance_id` integer, required
  - `resource_name` string, required
  - `resource_type` 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30, required
  - `resource_uri` string, required
  - `opportunity_name` string, required
  - `description` string, nullable
  - `last_seen` string, date-time, required
  - `first_seen` string, date-time, required
  - `count` integer, required
  - `total_count` integer, nullable
  - `resources` AppSchemasOpportunitiesResource[], required
    - `resource_name` string, required
    - `resource_uri` string, required
    - `resource_type` 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30, required
  - `money_savings` object, required
  - `time_savings` string, required
  - `effort` 1 | 2 | 3, required
  - `owner` string, nullable
  - `status` 1 | 2 | 3 | 4, required
  - `from_state` string, nullable
  - `target_state` string, nullable
  - `era_key` string, nullable
  - `redirect_url` string, nullable
  - `savings_attribution` SavingsAttributionResponse
    - `id` string, nullable
    - `opportunity_id` string, nullable
    - `instance_id` string, nullable
    - `owner` integer, nullable
    - `attribution_type` string, nullable
    - `altimate_estimated_cost_saving` number, nullable
    - `altimate_estimated_time_saving` number, nullable
    - `user_estimated_cost_saving` number, nullable
    - `user_estimated_time_saving` number, nullable
    - `user_savings_updated_by` integer, nullable
    - `savings_metadata` unknown
    - `start_date` string, date-time, nullable
    - `end_date` string, date-time, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `created_by` integer, nullable
    - `last_modified_by` integer, nullable
    - `target_state` string, nullable
  - `comments_count` integer
  - `comments` CommentResponse[]
    - `id` string, required
    - `opportunity_id` string, required
    - `instance_id` integer, nullable
    - `comment` string, required
    - `created_by` integer, nullable
    - `timestamp` string, date-time, required
    - `updated_at` string, date-time, nullable
    - `edited` boolean
  - `priority_rank` integer, nullable
  - `priority_se_notes` string, nullable
  - `metadata` OpportunityMetadata — Agent-actionable metadata attached to an opportunity. `agent_instructions` is the canonical, pre-formatted markdown the detail page renders. `extra="allow"` forwards every other metadata key untouched so new keys are never silently dropped.
    - `agent_instructions` string, nullable
  - `opportunity_type` string, nullable

## Other responses

- `404` — Opportunity not found
- `422` — Validation Error

## Changes

- **2026-09-15** `8a08bdb37cfa` — 1 info
  - added the optional property `savings_attribution` to the response with the `200` status
- **2026-09-11** `70e0a3e5cb0d` — 2 warning, 3 info
  - added the new `30.00` enum value to the `resource_type` response property for the response status `200`
  - added the new `30.00` enum value to the `resources/items/resource_type` response property for the response status `200`
  - added the optional property `era_key` to the response with the `200` status
  - added the optional property `from_state` to the response with the `200` status
  - …1 more
- **2026-09-02** `fcb62c79da95` — 2 warning
  - added the new `29.00` enum value to the `resource_type` response property for the response status `200`
  - added the new `29.00` enum value to the `resources/items/resource_type` response property for the response status `200`
- **2026-08-25** `64fc5b1ea2a2` — 8 warning
  - added the new `25.00` enum value to the `resource_type` response property for the response status `200`
  - added the new `25.00` enum value to the `resources/items/resource_type` response property for the response status `200`
  - added the new `26.00` enum value to the `resource_type` response property for the response status `200`
  - added the new `26.00` enum value to the `resources/items/resource_type` response property for the response status `200`
  - …4 more
- …earlier changes not shown

[Full history](https://skmtc.dev/myaltimate/apis/fastapi/changes/opportunities/detail/get.md)

---

[API](https://skmtc.dev/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.dev/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc.dev/myaltimate/apis/fastapi/revisions/4dfe86ff412c?raw)
