DevArmor Threat Model Versions API
The threat-model-versions API from DevArmor — 2 operation(s) for threat-model-versions.
The threat-model-versions API from DevArmor — 2 operation(s) for threat-model-versions.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/devarmor:devarmor-threat-model-versions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: DevArmor Security Reviews Threat Model Versions API
version: 1.14.0
tags:
- name: threat-model-versions
paths:
/projects/{project_id}/threat-models/{threat_model_id}/versions:
get:
tags:
- threat-model-versions
summary: List threat model versions in a project
operationId: list_project_threat_model_versions
security:
- APIGatewayAuth: []
parameters:
- name: threat_model_id
in: path
required: true
schema:
type: string
title: Threat Model Id
- name: project_id
in: path
required: true
schema:
type: string
title: Project Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ThreatModelVersion'
title: Response List Project Threat Model Versions
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- threat-model-versions
summary: Create a new threat model version in a project
operationId: create_project_threat_model_version
security:
- APIGatewayAuth: []
parameters:
- name: threat_model_id
in: path
required: true
schema:
type: string
title: Threat Model Id
- name: project_id
in: path
required: true
schema:
type: string
title: Project Id
- name: copy_builds
in: query
required: false
schema:
anyOf:
- type: array
items:
$ref: '#/components/schemas/ThreatModelBuildType'
- type: 'null'
title: Copy Builds
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ThreatModelVersionCreate'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ThreatModelVersion'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/projects/{project_id}/threat-models/{threat_model_id}/versions/{version}:
get:
tags:
- threat-model-versions
summary: Get a threat model version from a project
operationId: get_project_threat_model_version
security:
- APIGatewayAuth: []
parameters:
- name: version
in: path
required: true
schema:
type: string
title: Version
- name: threat_model_id
in: path
required: true
schema:
type: string
title: Threat Model Id
- name: project_id
in: path
required: true
schema:
type: string
title: Project Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ThreatModelVersion'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
put:
tags:
- threat-model-versions
summary: Update a threat model version in a project
operationId: update_project_threat_model_version
security:
- APIGatewayAuth: []
parameters:
- name: version
in: path
required: true
schema:
type: string
title: Version
- name: threat_model_id
in: path
required: true
schema:
type: string
title: Threat Model Id
- name: project_id
in: path
required: true
schema:
type: string
title: Project Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ThreatModelVersionUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ThreatModelVersion'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- threat-model-versions
summary: Delete a threat model version from a project
operationId: delete_project_threat_model_version
security:
- APIGatewayAuth: []
parameters:
- name: version
in: path
required: true
schema:
type: string
title: Version
- name: threat_model_id
in: path
required: true
schema:
type: string
title: Threat Model Id
- name: project_id
in: path
required: true
schema:
type: string
title: Project Id
- name: force
in: query
required: false
schema:
type: boolean
default: false
title: Force
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ThreatModelVersionDelete'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
UserRole:
type: string
enum:
- admin
- customer_support
title: UserRole
Project:
properties:
symbolic_name:
type: string
pattern: ^[0-9a-z-]+$
title: Symbolic Name
title:
type: string
title: Title
default:
type: boolean
title: Default
default: false
description:
anyOf:
- type: string
- type: 'null'
title: Description
use_memory:
type: boolean
title: Use Memory
default: true
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
id:
type: integer
title: Id
owner_user:
$ref: '#/components/schemas/User'
memory_effective:
anyOf:
- type: boolean
- type: 'null'
title: Memory Effective
memory_effective_reason:
anyOf:
- type: string
- type: 'null'
title: Memory Effective Reason
type: object
required:
- symbolic_name
- title
- id
- owner_user
title: Project
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
User:
properties:
email:
type: string
title: Email
name:
type: string
title: Name
state:
$ref: '#/components/schemas/UserState'
default: active
roles:
items:
$ref: '#/components/schemas/UserRole'
type: array
title: Roles
default: []
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
id:
type: integer
title: Id
type: object
required:
- email
- name
- id
title: User
ThreatModelVersionUpdate:
properties:
version:
anyOf:
- type: string
pattern: ^\d+(\.\d+)*$
- type: 'null'
title: Version
description:
anyOf:
- type: string
- type: 'null'
title: Description
frozen:
anyOf:
- type: boolean
- type: 'null'
title: Frozen
base_version_id:
anyOf:
- type: integer
- type: 'null'
title: Base Version Id
released_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Released At
release_docs_link:
anyOf:
- type: string
maxLength: 2083
minLength: 1
format: uri
- type: 'null'
title: Release Docs Link
reviewer_user_ids:
anyOf:
- items:
type: integer
type: array
- type: 'null'
title: Reviewer User Ids
reviewed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Reviewed At
next_review_by:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Next Review By
repo_link:
anyOf:
- type: string
maxLength: 2083
minLength: 1
format: uri
- type: 'null'
title: Repo Link
type: object
title: ThreatModelVersionUpdate
ThreatModelVersion:
properties:
version:
type: string
pattern: ^\d+(\.\d+)*$
title: Version
description:
anyOf:
- type: string
- type: 'null'
title: Description
frozen:
type: boolean
title: Frozen
default: false
base_version_id:
anyOf:
- type: integer
- type: 'null'
title: Base Version Id
released_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Released At
release_docs_link:
anyOf:
- type: string
maxLength: 2083
minLength: 1
format: uri
- type: 'null'
title: Release Docs Link
reviewer_user_ids:
anyOf:
- items:
type: integer
type: array
- type: 'null'
title: Reviewer User Ids
reviewed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Reviewed At
next_review_by:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Next Review By
repo_link:
anyOf:
- type: string
maxLength: 2083
minLength: 1
format: uri
- type: 'null'
title: Repo Link
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
id:
type: integer
title: Id
project:
anyOf:
- $ref: '#/components/schemas/Project'
- type: 'null'
type: object
required:
- version
- id
title: ThreatModelVersion
UserState:
type: string
enum:
- active
- inactive
- pending_org_approval
title: UserState
ThreatModelVersionCreate:
properties:
version:
anyOf:
- type: string
pattern: ^\d+(\.\d+)*$
- type: 'null'
title: Version
description:
anyOf:
- type: string
- type: 'null'
title: Description
frozen:
type: boolean
title: Frozen
default: false
base_version_id:
anyOf:
- type: integer
- type: 'null'
title: Base Version Id
released_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Released At
release_docs_link:
anyOf:
- type: string
maxLength: 2083
minLength: 1
format: uri
- type: 'null'
title: Release Docs Link
reviewer_user_ids:
anyOf:
- items:
type: integer
type: array
- type: 'null'
title: Reviewer User Ids
reviewed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Reviewed At
next_review_by:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Next Review By
repo_link:
anyOf:
- type: string
maxLength: 2083
minLength: 1
format: uri
- type: 'null'
title: Repo Link
base_version:
anyOf:
- type: string
pattern: ^\d+(\.\d+)*$
- type: 'null'
title: Base Version
type: object
title: ThreatModelVersionCreate
ThreatModelBuildType:
type: string
enum:
- architecture
- findings
- action_items
title: ThreatModelBuildType
description: Build types of the `threat_model` family, for use in Threat Model Version copying.
ThreatModelVersionDelete:
properties:
version:
type: string
pattern: ^\d+(\.\d+)*$
title: Version
description:
anyOf:
- type: string
- type: 'null'
title: Description
frozen:
type: boolean
title: Frozen
default: false
base_version_id:
anyOf:
- type: integer
- type: 'null'
title: Base Version Id
released_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Released At
release_docs_link:
anyOf:
- type: string
maxLength: 2083
minLength: 1
format: uri
- type: 'null'
title: Release Docs Link
reviewer_user_ids:
anyOf:
- items:
type: integer
type: array
- type: 'null'
title: Reviewer User Ids
reviewed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Reviewed At
next_review_by:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Next Review By
repo_link:
anyOf:
- type: string
maxLength: 2083
minLength: 1
format: uri
- type: 'null'
title: Repo Link
type: object
required:
- version
title: ThreatModelVersionDelete
securitySchemes:
APIGatewayAuth:
type: http
scheme: bearer