DevArmor Threat Model Version Diffs API
The threat-model-version-diffs API from DevArmor — 2 operation(s) for threat-model-version-diffs.
The threat-model-version-diffs API from DevArmor — 2 operation(s) for threat-model-version-diffs.
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-version-diffs-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 Version Diffs API
version: 1.14.0
tags:
- name: threat-model-version-diffs
paths:
/projects/{project_id}/threat-models/{threat_model_id}/diff:
post:
tags:
- threat-model-version-diffs
summary: Trigger a diff job between two threat model versions, covering all object types
operationId: create_version_diff
security:
- APIGatewayAuth: []
parameters:
- name: project_id
in: path
required: true
schema:
type: string
title: Project Id
- name: threat_model_id
in: path
required: true
schema:
type: string
title: Threat Model Id
- name: head_version
in: query
required: true
schema:
type: string
title: Head Version
- name: force
in: query
required: false
schema:
type: boolean
default: false
title: Force
responses:
'202':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/VersionDiffStatusResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/projects/{project_id}/threat-models/{threat_model_id}/diff/{object_type}:
get:
tags:
- threat-model-version-diffs
summary: Get object diffs of a given type between two threat model versions
operationId: get_version_diff_objects
security:
- APIGatewayAuth: []
parameters:
- name: object_type
in: path
required: true
schema:
$ref: '#/components/schemas/DiffObjectType'
- 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: head_version
in: query
required: true
schema:
type: string
title: Head Version
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/VersionDiffResponse'
'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
ObjectRefFieldDiff:
properties:
equivalent:
type: boolean
title: Equivalent
common:
anyOf:
- items:
$ref: '#/components/schemas/ObjectRef'
type: array
- type: 'null'
title: Common
base:
anyOf:
- items:
$ref: '#/components/schemas/ObjectRef'
type: array
- type: 'null'
title: Base
head:
anyOf:
- items:
$ref: '#/components/schemas/ObjectRef'
type: array
- type: 'null'
title: Head
summary:
anyOf:
- type: string
- type: 'null'
title: Summary
type: object
required:
- equivalent
title: ObjectRefFieldDiff
ChangedFieldRef:
properties:
name:
type: string
title: Name
title:
type: string
title: Title
type: object
required:
- name
- title
title: ChangedFieldRef
ListScalarFieldDiff:
properties:
equivalent:
type: boolean
title: Equivalent
common:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Common
base:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Base
head:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Head
type: object
required:
- equivalent
title: ListScalarFieldDiff
VersionDiffResponse:
properties:
base_version:
$ref: '#/components/schemas/VersionRef'
head_version:
$ref: '#/components/schemas/VersionRef'
status:
$ref: '#/components/schemas/VersionDiffStatus'
added:
items:
$ref: '#/components/schemas/ObjectDiffSummary'
type: array
title: Added
removed:
items:
$ref: '#/components/schemas/ObjectDiffSummary'
type: array
title: Removed
edited:
items:
$ref: '#/components/schemas/ObjectDiffRich'
type: array
title: Edited
unchanged:
items:
$ref: '#/components/schemas/ObjectDiffSummary'
type: array
title: Unchanged
type: object
required:
- base_version
- head_version
- status
- added
- removed
- edited
- unchanged
title: VersionDiffResponse
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ObjectRef:
properties:
id:
type: integer
title: Id
title:
type: string
title: Title
type: object
required:
- id
- title
title: ObjectRef
ObjectDiffSummary:
properties:
id:
type: integer
title: Id
title:
anyOf:
- type: string
- type: 'null'
title: Title
description:
anyOf:
- type: string
- type: 'null'
title: Description
summary:
type: string
title: Summary
changed_fields:
anyOf:
- items:
$ref: '#/components/schemas/ChangedFieldRef'
type: array
- type: 'null'
title: Changed Fields
type: object
required:
- id
- summary
title: ObjectDiffSummary
VersionDiffStatusResponse:
properties:
id:
type: integer
title: Id
base_version:
$ref: '#/components/schemas/VersionRef'
head_version:
$ref: '#/components/schemas/VersionRef'
status:
$ref: '#/components/schemas/VersionDiffStatus'
type: object
required:
- id
- base_version
- head_version
- status
title: VersionDiffStatusResponse
DiffObjectType:
type: string
enum:
- control
- risk
- threat
title: DiffObjectType
VersionRef:
properties:
id:
type: integer
title: Id
version:
type: string
title: Version
type: object
required:
- id
- version
title: VersionRef
FieldDiff:
anyOf:
- $ref: '#/components/schemas/LLMTextFieldDiff'
- $ref: '#/components/schemas/ScalarFieldDiff'
- $ref: '#/components/schemas/ListScalarFieldDiff'
- $ref: '#/components/schemas/ObjectRefFieldDiff'
VersionDiffStatus:
type: string
enum:
- pending
- completed
- failed
title: VersionDiffStatus
ScalarFieldDiff:
properties:
equivalent:
type: boolean
title: Equivalent
base:
anyOf:
- type: string
- type: 'null'
title: Base
head:
anyOf:
- type: string
- type: 'null'
title: Head
type: object
required:
- equivalent
title: ScalarFieldDiff
ObjectDiffRich:
properties:
id:
type: integer
title: Id
title:
anyOf:
- type: string
- type: 'null'
title: Title
description:
anyOf:
- type: string
- type: 'null'
title: Description
summary:
type: string
title: Summary
changed_fields:
anyOf:
- items:
$ref: '#/components/schemas/ChangedFieldRef'
type: array
- type: 'null'
title: Changed Fields
fields:
anyOf:
- additionalProperties:
$ref: '#/components/schemas/FieldDiff'
type: object
- type: 'null'
title: Fields
type: object
required:
- id
- summary
title: ObjectDiffRich
LLMTextFieldDiff:
properties:
equivalent:
type: boolean
title: Equivalent
common:
anyOf:
- type: string
- type: 'null'
title: Common
base:
anyOf:
- type: string
- type: 'null'
title: Base
head:
anyOf:
- type: string
- type: 'null'
title: Head
summary:
anyOf:
- type: string
- type: 'null'
title: Summary
type: object
required:
- equivalent
title: LLMTextFieldDiff
securitySchemes:
APIGatewayAuth:
type: http
scheme: bearer