---
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, 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, required
  - `money_savings` object, required
  - `time_savings` string, required
  - `effort` 1 | 2 | 3, required
  - `owner` string, nullable
  - `status` 1 | 2 | 3 | 4, required
  - `redirect_url` 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

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/50769cbf05d5/schema)
