---
title: "GET /model-hub/prompt-templates/{id}/get-run-status/"
method: GET
path: "/model-hub/prompt-templates/{id}/get-run-status/"
tags: ["model-hub"]
---

# GET /model-hub/prompt-templates/{id}/get-run-status/

`GET /model-hub/prompt-templates/{id}/get-run-status/`

## Request

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

Get the current status and results of a template run

## Query parameters

- `template_version` string

## Response `200`

OK

- PromptRunStatusResponse
  - `status` boolean, required
  - `result` PromptRunStatusResult, required
    - `status` string, nullable, required
    - `error_message` string, nullable, required
    - `executions_result` PromptHistoryExecution, required
      - `id` string, uuid
      - `template_version` string, required
      - `output` object, nullable
      - `prompt_config_snapshot` object: Get prompt_config_snapshot with backward compatibility for modelDetail. If modelDetail is missing from configuration, generate it from the model name.
      - `template_name` string
      - `original_template` string, uuid, nullable
      - `metadata` object, nullable
      - `variable_names` object
      - `evaluation_results` object, nullable
      - `evaluation_configs` object, nullable
      - `created_at` string, date-time
      - `is_default` boolean
      - `commit_message` string, nullable
      - `updated_at` string, date-time
      - `is_draft` boolean
      - `labels` object
      - `placeholders` object, nullable
      - `prompt_base_template` string, uuid, nullable

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `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)
