Skip to content

Redeems a one-time 30-minute enrollment code.

POST
/api/workspace/file-protection/agent/v1/enroll
curl --request POST \
--url https://example.com/api/workspace/file-protection/agent/v1/enroll \
--header 'Content-Type: application/json' \
--data '{ "Code": "example", "DisplayName": "example", "OperatingSystem": 0, "AgentVersion": "example", "MachineFingerprint": "example", "DeviceToken": "example", "ExpectedAgentId": "example" }'

Requires TLS at the API connection. A workspace bearer token does not authenticate an Agent.

Redeems the one-time enrollment code in the request body. Store the returned device credential securely; use it for subsequent protocol operations.

Redeems one short-lived, one-time enrollment code.

object
Code
string
nullable
DisplayName
string
nullable
OperatingSystem

Operating systems supported by the universal File Protection tools.

integer format: int32
Allowed values: 0 1
AgentVersion
string
nullable
MachineFingerprint
string
nullable
DeviceToken
string
nullable
ExpectedAgentId

Required exact identity for a reconnect code; must be absent for a new enrollment.

string
nullable

OK

Media typeapplication/json
object
Data

Returns the enrolled identity and a write-only device token.

object
AgentId
string
nullable
DeviceToken
string
nullable
EnrolledAtUtc
string format: date-time
HeartbeatInterval
string format: date-span
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}