---
title: "Create an enrollment token for a given enterprise"
method: POST
path: "/api/v2/google-emm/enterprises/{enterpriseObjectId}/enrollment-tokens"
tags: ["Google EMM"]
---

# Create an enrollment token for a given enterprise

`POST /api/v2/google-emm/enterprises/{enterpriseObjectId}/enrollment-tokens`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/google-emm/enterprises/{enterpriseObjectId}/enrollment-tokens`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/google-emm/enterprises/:enterpriseObjectId/enrollment-tokens/post.ts> (a function with typed inputs; its response is checked against the schema)

Gets an enrollment token to enroll a device into Google EMM.

#### Sample Request

```
curl -X POST https://console.jumpcloud.com/api/v2/google-emm/enterpries/{enterprise_object_id}/enrollment-tokens \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "x-api-key: ${API_KEY}"
```

## Path parameters

- `enterpriseObjectId` string, byte, required

## Request body

- object
  - `allowPersonalUsage` 'PERSONAL_USAGE_ALLOWED' | 'PERSONAL_USAGE_DISALLOWED' | 'PERSONAL_USAGE_DISALLOWED_USERLESS'
  - `createdWhere` 'API' | 'ADMIN_PORTAL' | 'USER_PORTAL'
  - `displayName` string
  - `duration` string
  - `enrollmentType` 'WORK_PROFILE' | 'FULLY_MANAGED' | 'DEDICATED' | 'BYOD' | 'COPE'
  - `oneTimeOnly` boolean
  - `provisioningExtras` JumpcloudGoogleEmmProvisioningExtras
    - `allowOfflineProvisioning` boolean
    - `enableSystemApps` boolean
    - `keepScreenOn` boolean
    - `language` string
    - `skipEducationScreens` boolean
    - `timeZone` string
    - `useMobileNetworkForProvisioning` boolean
    - `wifiHiddenNetwork` boolean
    - `wifiPassword` string
    - `wifiSecurityType` 'NONE' | 'WPA' | 'WEP'
    - `wifiSsid` string
  - `userObjectId` string, byte
  - `zeroTouch` boolean

## Response `200`

A successful response.

- JumpcloudGoogleEmmEnrollmentToken
  - `createdBy` string
  - `createdWhere` string
  - `displayName` string
  - `enrollmentLink` string
  - `enrollmentType` string
  - `expirationTime` string
  - `id` string
  - `metadata` string
  - `name` string
  - `oneTimeOnly` boolean
  - `organizationObjectId` string, byte
  - `qrCodeImage` string, byte
  - `value` string

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
