POST
/
v2
/
mdm
/
enroll
/
codes
Generate enrollment code
curl --request POST \
  --url https://coreapi-dev.us.bcpapers.ca/v2/mdm/enroll/codes \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "preassigned_serial": "<string>",
  "type": "<string>"
}
'
{
  "bootstrapToken": "<string>",
  "code": "<string>",
  "enroll_url": "<string>",
  "expires_at": "<string>"
}

Authorizations

Authorization
string
header
required

Paste the JWT token only (no "Bearer " prefix needed — the UI adds it automatically).

Body

application/json

Enrollment code request

preassigned_serial
string

COD only

type
string

"byod" | "cod" | "dep"

Response

Created

bootstrapToken
string

present when bootstrap_credential feature is enabled

code
string
enroll_url
string
expires_at
string