curl --request POST \
--url https://bloodhound.specterops.io/openapi.json/api/v2/login \
--header 'Content-Type: application/json' \
--data '
{
"login_method": "secret",
"username": "[email protected]",
"secret": "MySup3rS3cr3tPassw0rd!!!"
}
'{
"data": {
"user_id": "54623566-213a-4490-9c68-ac44c39b6590",
"auth_expired": false,
"session_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiNTQ2MjM1NjYtMjEzYS00NDkwLTljNjgtYWM0NGMzOWI2NTkwIiwidXNlciI6ImNvb2xfdXNlckBibG9vZGhvdW5kZW50ZXJwcmlzZS5pbyIsImlhdCI6MTUxNjIzOTAyMn0.1WWo7XpE9a-v6MQ9tHC8ikxmvmS3PuD7bJyNi4hPr_Y"
}
}Login to BloodHound with user credentials or a one time password.
curl --request POST \
--url https://bloodhound.specterops.io/openapi.json/api/v2/login \
--header 'Content-Type: application/json' \
--data '
{
"login_method": "secret",
"username": "[email protected]",
"secret": "MySup3rS3cr3tPassw0rd!!!"
}
'{
"data": {
"user_id": "54623566-213a-4490-9c68-ac44c39b6590",
"auth_expired": false,
"session_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiNTQ2MjM1NjYtMjEzYS00NDkwLTljNjgtYWM0NGMzOWI2NTkwIiwidXNlciI6ImNvb2xfdXNlckBibG9vZGhvdW5kZW50ZXJwcmlzZS5pbyIsImlhdCI6MTUxNjIzOTAyMn0.1WWo7XpE9a-v6MQ9tHC8ikxmvmS3PuD7bJyNi4hPr_Y"
}
}Prefer header, used to specify a custom timeout in seconds using the wait parameter as per RFC7240.
The request body for logging into the application. secret or otp is required, but not both.
The type of login. Currently only secret is supported.
secret The password for the user. This field can be used instead of otp.
The One Time Password for a single login. This field can be used instead of secret
OK
Show child attributes