---
title: "Get threat model version"
method: GET
path: "/api/threat-model/versions/{versionId}"
tags: ["Threat Model"]
---

# Get threat model version

`GET /api/threat-model/versions/{versionId}`

## Request

- Base URL: `https://app.cotool.ai`
- URL: `https://app.cotool.ai/api/threat-model/versions/{versionId}`
- Auth: HTTP bearer

Get one threat model version from the organization history by ID.

## Path parameters

- `versionId` string, uuid, required: Unique identifier for a threat model version in the organization history

## Response `200`

Successful response

- object
  - `id` string, uuid, required: Unique identifier for this threat model version
  - `version` integer, required: Monotonic version number
  - `isCurrent` boolean, required: Whether this version is currently active for the organization
  - `authorType` 'ai' | 'user', required: Whether this version was created by AI or a human
  - `authorId` string, uuid, nullable, required: User ID for human edits, or null for AI-authored versions
  - `modelAlias` string, nullable, required: Model alias that produced this version, or null for human edits
  - `changeDescription` string, nullable, required: Short description of why this version was created
  - `createdAt` string, required: Timestamp when this version was created
  - `content` string, required: Full markdown content for this threat model version

## Other responses

- `400`: Bad request — input validation failed or the request was malformed
- `401`: Unauthorized — missing or invalid API key / session
- `403`: Forbidden — the authenticated user lacks the required permissions
- `500`: Internal server error

---

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