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

POST/v1/device-agent/exchange-code

Exchange 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

GET/v1/device-agent/agent.sh

Device 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

GET/v1/device-agent/agent.ps1

Device 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

POST/v1/device-agent/install-code

Create 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

POST/v1/device-agent/link/start

Start 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

POST/v1/device-agent/link/poll

Check 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

POST/v1/device-agent/link/approve

Approve 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

GET/v1/device-agent/installers

Which 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

GET/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

osstringrequired

Responses

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

GET/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

filenamestringrequired

Responses

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

POST/v1/device-agent/auth-code

Create 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

GET/v1/device-agent/my-organizations

List 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

POST/v1/device-agent/register

Register 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

POST/v1/device-agent/check-in

Submit 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

GET/v1/device-agent/status

Get device-agent status in Complianz. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.

Query parameters

deviceIdstringrequired
organizationIdstringrequired

Responses

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

GET/v1/device-agent/mac

Downloads 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

GET/v1/device-agent/windows

Downloads 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

DELETE/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

deviceIdstringrequired

Responses

204
curl --request DELETE \
  --url https://api.complianz.ai/v1/device-agent/sessions/<deviceId> \
  --header 'X-API-Key: <api-key>'