Enrollment
Generating enrollment tokens and onboarding new devices.
Overview
Enrollment tokens are used to register new devices with the central server. Each token can be configured with expiry dates and usage limits.
Generating Tokens
- Navigate to Enrollment
- Click Generate Token
- Configure:
- Expiry date — When the token expires
- Max uses — Maximum number of devices that can use this token (0 = unlimited)
- Description — Label for tracking purposes
Token Validation
A token is valid when:
- It has not expired
- Its use count has not reached
max_uses(if set) - It has not been manually revoked
Enrollment Flow
1. Admin generates enrollment token
2. IT installs agent on endpoint with the token
3. Agent sends POST /api/v1/enroll with token + device info
4. Server validates token, creates device record
5. Server returns device_id, API key, tenant_id, and full policy
6. Agent saves credentials and begins heartbeat loopEnrollment Request
The agent sends these fields during enrollment:
enrollment_token— The token stringhostname— Device hostnameos— Operating system (Windows/macOS)os_version— Detailed OS versiondevice_model— Hardware modelserial_number— Device serial numbermac_address— Network MAC addressagent_version— BlueSentinel agent version
Post-Enrollment
After successful enrollment, the device:
- Receives a unique
device_id(UUID) - Receives an
api_key(48-byte URL-safe token) for all future API calls - Is assigned to the tenant's default group and policy
- Begins sending heartbeats every 60 seconds