---
title: "GET /model-hub/optimisation/{id}/"
method: GET
path: "/model-hub/optimisation/{id}/"
tags: ["model-hub"]
---

# GET /model-hub/optimisation/{id}/

`GET /model-hub/optimisation/{id}/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/optimisation/{id}/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Response `200`

OK

- OptimizationDatasetGet
  - `id` string, uuid
  - `name` string, required
  - `dataset` string, uuid, required
  - `column` string, uuid, nullable
  - `messages` object[], nullable: List of messages with format [{'role': 'user/assistant', 'content': 'text'}]
  - `user_eval_template_ids` string[]
  - `model_config` object, nullable
  - `optimize_type` 'PROMPT_TEMPLATE' | 'RIGHT_ANSWER' | 'RAG_PROMPT_TEMPLATE', required
  - `status` 'NotStarted' | 'Queued' | 'Running' | 'Completed' | 'Editing' | 'Inactive' | 'Failed' | 'PartialRun' | 'ExperimentEvaluation' | 'Uploading' | 'PartialExtracted' | 'Processing' | 'Deleting' | 'PartialCompleted' | 'OptimizationEvaluation' | 'Error' | 'Cancelled'
  - `created_at` string, date-time
  - `optimized_k_prompts` string[], nullable
  - `user_eval_template_mapping` object, nullable
  - `prompt_name` string, nullable

## Other responses

- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
