Remove an event credential (deprecated path)
Deprecated: use DELETE /v1/pentests/{pentest_slug}/credentials/{credential_id} instead.
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/events/string/credentials/0"{
"code": 0,
"description": "string",
"id": 0,
"success": true
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}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.
List event credentials (deprecated path) GET
Deprecated: use `GET /v1/pentests/{pentest_slug}/credentials/` instead. List the credentials provisioned for a pentest, optionally by kind. Each item carries its `kind` and only that kind's keys.