---
title: "Estimate selected target segments using the segment-evidence model"
method: POST
path: "/api/estimates/segment-evidence/selected-segments"
tags: ["Estimates"]
---

# Estimate selected target segments using the segment-evidence model

`POST /api/estimates/segment-evidence/selected-segments`

## Request

- Base URL: `https://courseprofiler.com`
- URL: `https://courseprofiler.com/api/estimates/segment-evidence/selected-segments`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
  - none

Responsive operation for interactive UI use. Accepts selected segment targets plus either raw USRProf JSON or a USRProf artifact ID, and returns estimates/rejections with diagnostics directly.

## Request body

- union
  - object
    - `usrprof_artifact_id` string, required: USRProf artifact to use as evidence source.
    - `usrprof` object: Inline USRProf payload to use as evidence source.
    - `segments` object[], required: Ordered selected targets with segment_index, geometry, horizon, optional start_state, and estimate flag.
    - `options` object: Optional analysis settings such as gap_algorithm and flat_grade under options.analysis.
  - object
    - `usrprof_artifact_id` string: USRProf artifact to use as evidence source.
    - `usrprof` object, required: Inline USRProf payload to use as evidence source.
    - `segments` object[], required: Ordered selected targets with segment_index, geometry, horizon, optional start_state, and estimate flag.
    - `options` object: Optional analysis settings such as gap_algorithm and flat_grade under options.analysis.

## Response `200`

Selected target estimates and rejected targets

- SelectedSegmentEvidenceEstimateResponse
  - `estimates` object[], required
  - `rejected` object[], required

## Other responses

- `400`: Invalid request
- `404`: Resource not found
- `429`: Rate limit exceeded

---

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