AoS
08/12/2019, 8:47 AMcurl -k -X POST -d "{"username": "test", "Password": "test"}" -H "Content-Type: application/json" <https://url/api/v1/kolide/login>
and also curl -X POST -k --user "admin" -H "Content-Type: application/json" <https://url/api/v1/kolide/login>
Chris Broome
08/12/2019, 1:43 PMcurl -k -X POST -d '{"username": "test", "Password": "test"}' -H "Content-Type: application/json"
AoS
08/13/2019, 8:37 AM/api/v1/kolide/queries/run
and /api/v1/kolide/queries/run_by_names
Chris Broome
08/13/2019, 2:51 PMtoken
in the responseAuthorization
headercurl -X POST <http://url/api/v1/kolide/queries/run> -H 'Content-Type: application/json' -H 'Authorization: Bearer <the token you got from the login response>' -d '{"body": "of the request"}'