Preview integration resources as incidents
const url = 'https://api.adversarial.com/api/v1/integrations/example/incidents/import';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/integrations/example/incidents/importParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Integration vendor short name (e.g. ‘jira’, ‘wiz’, ‘bugcrowd’)
Responses
Section titled “Responses”Preview incident integration resources before importing
Paginated list envelope: { "results": [...], "pagination": {...} }.
object
Pagination metadata for responses sourced from an external integration.
Paging is driven by a single opaque next_page_token: pass it back to
fetch the following page, and treat its absence as the end of the
collection. Do not parse the token — its contents are not part of the
contract, and this one field covers every integration regardless of how
the upstream API pages internally. total_items is best-effort and may be
absent when the upstream does not report a total.
object
Opaque continuation token. Absent means there are no further pages — the sole end-of-collection signal.
Total matching items, when the upstream API reports it. Informational only — never used for loop control. Absent when the API reports no total (e.g. HackerOne, GitHub Dependabot).
The items on this page.
Relationship, core incident information
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.
When set, this incident is linked under the named parent incident.
Where the incident was reported from (e.g. “Employee Reported”). Always present.
The status of an incident
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": [ { "id": "INC-00001", "parent_id": "INC-00001", "severity": "SEV-5", "status": "New" } ]}