Ethiack Docs
Events

Add an event credential (deprecated path)

POST
/v1/events/{event_slug}/credentials/

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.

AuthorizationBearer <token>

An API key created in Portal → Settings → API, sent as Authorization: Bearer <key>.

In: header

Path Parameters

event_slug*string

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/string/credentials/" \  -H "Content-Type: application/json" \  -d '{    "kind": "login",    "login_url": "https://app.example.com/login",    "username": "[email protected]",    "password": "<password>",    "totp_secret": "JBSWY3DPEHPK3PXP"  }'
{
  "id": 0,
  "kind": "login",
  "login_url": "string",
  "username": "string",
  "password": "string",
  "sso_provider": "google",
  "totp_secret": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}