Overview
This KB will show an example of calling Kolide API in Workflows.
Applies To
- Okta Workflows
Solution
How to make the following Kolide API call from Workflow:
curl --request GET \
--url 'https://api.kolide.com/audit_logs?per_page=25' \
--header 'accept: application/json' \
--header 'authorization: Bearer faux_token_here' \
--header 'x-kolide-api-version: 2023-05-26'
The Kolide API passes the authorization information in the header. To prevent storing the token in plain text in the flow itself, create a connection to Kolide in Workflows.
Kolide connection.
To call the Kolide API, set up any additional parameters and then use the API Connector – Get card with the Kolide connection to make the call.
Calling Kolide API.
The flow above passes the API version (x-kolide-api-version) in the header and results per page (per_page) in the query.
