Skip to main content
POST
/
api
/
v2
/
login
Error
A valid request URL is required to generate request examples
{
  "data": {
    "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "auth_expired": true,
    "session_token": "<string>"
  }
}
Applies to BloodHound Enterprise and CE

Authorizations

Authorization
string
header
required

Authorization: Bearer $JWT_TOKEN

Headers

Prefer
integer
default:0

Prefer header, used to specify a custom timeout in seconds using the wait parameter as per RFC7240.

Required range: x >= 0

Body

application/json

The request body for logging into the application. secret or otp is required, but not both.

login_method
enum<string>
required

The type of login. Currently only secret is supported.

Available options:
secret
username
string
required
secret
string

The password for the user. This field can be used instead of otp.

otp
string

The One Time Password for a single login. This field can be used instead of secret

Response

OK

data
object