Authentication and Bearer Token Usage

LogRhythm SIEM API requires authentication by a Bearer Token. Each API call must include this otherwise it will not be authorized.

To include the Bearer token, you have to add a header to your API call which will be passed to the API endpoint for authentication.

The format of a the bearer token is to include Authorization with a value of the Bearer [API_TOKEN] replacing [API_TOKEN] with the API key provided from Register Third-Party Application.

$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Authorization", "Bearer [API_TOKEN]")