Skip to main content
GET
/
api
/
threat-model
/
versions
/
{versionId}
cURL
curl -X GET "https://app.cotool.ai/api/threat-model/versions/:versionId" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "version": 123,
  "isCurrent": true,
  "authorType": "ai",
  "authorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "modelAlias": "<string>",
  "changeDescription": "<string>",
  "createdAt": "<string>",
  "content": "<string>"
}

Authorizations

Authorization
string
header
required

API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here

Path Parameters

versionId
string<uuid>
required

Unique identifier for a threat model version in the organization history

Response

200 - application/json

Successful response

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
enum<string>
required

Whether this version was created by AI or a human

Available options:
ai,
user
authorId
string<uuid> | null
required

User ID for human edits, or null for AI-authored versions

modelAlias
string | null
required

Model alias that produced this version, or null for human edits

changeDescription
string | null
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