Create an event (deprecated path)
Deprecated: use POST /v1/pentests/ instead.
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/events/" \ -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": {}
}
]
}Verify domain ownership POST
Run the DNS TXT-record check and mark the domain verified on success. An already verified domain, of either kind, answers success at once without re-running any proof, as legacy did.
Add an event credential (deprecated path) POST
Deprecated: use `POST /v1/pentests/{pentest_slug}/credentials/` instead. 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.