Remove a pentest credential
Remove a credential of any kind from a pentest.
Absent, invisible, and other-pentest credentials all answer 404, so ids cannot be probed; 403 is only possible on a credential the caller can read but not delete.
An API key created in Portal → Settings → API, sent as Authorization: Bearer <key>.
In: header
Path Parameters
Response Body
application/json
application/json
curl -X DELETE "https://api.ethiack.com/v1/pentests/string/credentials/0"{
"code": 0,
"description": "string",
"id": 0,
"success": true
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}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.
List pentest credentials GET
List the credentials provisioned for a pentest, optionally by kind. Each item carries its `kind` and only that kind's keys.