Device Agent
Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Exchange an auth code for device credentials
/v1/device-agent/exchange-codeExchange an auth code for device credentials in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Request body
Responses
201
curl --request POST \
--url https://api.complianz.ai/v1/device-agent/exchange-code \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'Device check script for macOS and Linux
/v1/device-agent/agent.shDevice check script for macOS and Linux in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Responses
200
curl --request GET \
--url https://api.complianz.ai/v1/device-agent/agent.sh \
--header 'X-API-Key: <api-key>'Device check script for Windows
/v1/device-agent/agent.ps1Device check script for Windows in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Responses
200
curl --request GET \
--url https://api.complianz.ai/v1/device-agent/agent.ps1 \
--header 'X-API-Key: <api-key>'Create one-click install commands for this device
/v1/device-agent/install-codeCreate one-click install commands for this device in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Responses
200
curl --request POST \
--url https://api.complianz.ai/v1/device-agent/install-code \
--header 'X-API-Key: <api-key>'Start browser approval for an installer
/v1/device-agent/link/startStart browser approval for an installer in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Responses
200
curl --request POST \
--url https://api.complianz.ai/v1/device-agent/link/start \
--header 'X-API-Key: <api-key>'Check whether the employee approved the install
/v1/device-agent/link/pollCheck whether the employee approved the install in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Responses
200
curl --request POST \
--url https://api.complianz.ai/v1/device-agent/link/poll \
--header 'X-API-Key: <api-key>'Approve an installer from the signed-in portal
/v1/device-agent/link/approveApprove an installer from the signed-in portal in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Responses
200
curl --request POST \
--url https://api.complianz.ai/v1/device-agent/link/approve \
--header 'X-API-Key: <api-key>'Which signed installers are available
/v1/device-agent/installersWhich signed installers are available in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Responses
200
curl --request GET \
--url https://api.complianz.ai/v1/device-agent/installers \
--header 'X-API-Key: <api-key>'Download the installer for macos or windows
/v1/device-agent/download/{os}Download the installer for macos or windows in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Path parameters
osstringrequiredResponses
200
curl --request GET \
--url https://api.complianz.ai/v1/device-agent/download/<os> \
--header 'X-API-Key: <api-key>'Download a device-agent update
/v1/device-agent/updates/{filename}Download a device-agent update in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Path parameters
filenamestringrequiredResponses
200
curl --request GET \
--url https://api.complianz.ai/v1/device-agent/updates/<filename> \
--header 'X-API-Key: <api-key>'Create a device-agent auth code
/v1/device-agent/auth-codeCreate a device-agent auth code in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Request body
Responses
201
curl --request POST \
--url https://api.complianz.ai/v1/device-agent/auth-code \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'List organizations for the current device
/v1/device-agent/my-organizationsList organizations for the current device in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Responses
200
curl --request GET \
--url https://api.complianz.ai/v1/device-agent/my-organizations \
--header 'X-API-Key: <api-key>'Register device agent
/v1/device-agent/registerRegister a Complianz Device Agent installation so employee endpoint checks can report into compliance tasks and device inventory.
Request body
Responses
201
curl --request POST \
--url https://api.complianz.ai/v1/device-agent/register \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'Submit device compliance check-in
/v1/device-agent/check-inSubmit device security check results for encryption, antivirus, password policy, screen lock, and other endpoint controls.
Request body
Responses
201
curl --request POST \
--url https://api.complianz.ai/v1/device-agent/check-in \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'Get device-agent status
/v1/device-agent/statusGet device-agent status in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Query parameters
deviceIdstringrequiredorganizationIdstringrequiredResponses
200
curl --request GET \
--url https://api.complianz.ai/v1/device-agent/status?deviceId=<deviceId>&organizationId=<organizationId> \
--header 'X-API-Key: <api-key>'Download macOS Device Agent
/v1/device-agent/macDownloads the Complianz Device Agent installer for macOS as a DMG file. The agent helps monitor device compliance and security policies.
Responses
ResponsemacOS agent DMG file download
curl --request GET \
--url https://api.complianz.ai/v1/device-agent/mac \
--header 'X-API-Key: <api-key>'Download Windows Device Agent ZIP
/v1/device-agent/windowsDownloads a ZIP package containing the Complianz Device Agent installer for Windows, along with setup scripts and instructions. The package includes an MSI installer, setup batch script customized for the organization and user, and a.
Responses
ResponseWindows agent ZIP file download containing MSI installer and setup scripts
curl --request GET \
--url https://api.complianz.ai/v1/device-agent/windows \
--header 'X-API-Key: <api-key>'Revoke a device agent session
/v1/device-agent/sessions/{deviceId}Revoke a device agent session in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.
Path parameters
deviceIdstringrequiredResponses
204
curl --request DELETE \
--url https://api.complianz.ai/v1/device-agent/sessions/<deviceId> \
--header 'X-API-Key: <api-key>'