Create a pentest
Create a pentest in draft: continuous, or an ordered SWIFT / DEPTH.
Conflicts (HTTP 409) when the organization is already running as many continuous pentests as its subscription meters.
With category, a fixed-price SWIFT / DEPTH pentest whose cost is reserved as pending debits. Nothing is charged and the balance is not checked yet; that happens on start.
Either way the pentest is left in draft: POST {slug}/start is what puts it to work.
An API key created in Portal → Settings → API, sent as Authorization: Bearer <key>.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://api.ethiack.com/v1/pentests/" \ -H "Content-Type: application/json" \ -d '{ "organization_id": 0, "add_assets": true, "launch_recon": true, "end_date": "2019-08-24T14:15:22Z", "name": "string", "category": "SWIFT" }'{
"code": 0,
"description": "string",
"id": 0,
"success": true
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Get an organization's visualizer graph GET
Return the asset/IP graph used by the organization visualizer. Scoped to organization and partner integrators, and gated on the `visualizer` entitlement for billing callers. Nodes and links are assembled from the organization's assets and their IP numbers; `pentest_slug` narrows the node set to one pentest's scope in SQL, so a client does not have to page the scope endpoint and intersect.
Add a pentest credential POST
Add a credential of any kind to a pentest, TOTP included. One body for every caller: the kind's spec, as GraphQL validates it. A URL-bound kind binds to the asset its `login_url`'s host names, and the whole URL, path included, is stored. One for an account that already has a credential replaces it. A body that fails its kind's spec is refused before this runs (422), without echoing the input.