List all proposals to change threats made for the organization
const url = 'https://api.adversarial.com/api/v1/threats/proposals?page=1&page_size=5';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.adversarial.com/api/v1/threats/proposals?page=1&page_size=5'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”1-indexed page number. Defaults to 1; zero is rejected.
Rows per page. Defaults to 5, max 100; zero is rejected.
Responses
Section titled “Responses”List all proposals
Paginated list envelope: { "results": [...], "pagination": {...} }.
object
Pagination metadata describing the slice.
object
1-indexed page number of this result slice.
Number of items requested per page.
Total number of matching items across all pages.
Total number of pages at this page size.
The items on this page.
A threat profile change proposal together with every action it contains.
object
A single proposed threat change, with the inherent scores it would set.
object
object
A User as returned by the API.
Profile images are not embedded — clients fetch them from
GET /api/v1/{icon} when icon is Some.
object
Relative path to the user’s avatar endpoint, e.g.
"users/{id}/avatar?v={hash}". None when the user has no avatar.
The current inherent scoring of a threat objective.
An inherent score is always scoped to one organization and one threat objective; it has no meaning outside that pairing.
object
The date the score was created.
An auto-incrementing PK value that uniquely identifies the score given the threat objective name
The y-axis
Whether this inherent score is a draft (excluded from some threat-level responses).
The x-axis
The proposal action PK that this score is associated with
The proposal PK that this score is associated with
The threat objective PK
object
A User as returned by the API.
Profile images are not embedded — clients fetch them from
GET /api/v1/{icon} when icon is Some.
object
Relative path to the user’s avatar endpoint, e.g.
"users/{id}/avatar?v={hash}". None when the user has no avatar.
A User as returned by the API.
Profile images are not embedded — clients fetch them from
GET /api/v1/{icon} when icon is Some.
object
Relative path to the user’s avatar endpoint, e.g.
"users/{id}/avatar?v={hash}". None when the user has no avatar.
A User as returned by the API.
Profile images are not embedded — clients fetch them from
GET /api/v1/{icon} when icon is Some.
object
Relative path to the user’s avatar endpoint, e.g.
"users/{id}/avatar?v={hash}". None when the user has no avatar.
Example
{ "results": [ { "actions": [ { "scores": [ { "impact": "Very Low", "likelihood": "Remote", "threat_objective_name": "Sabotage" } ] } ] } ]}