# REST Resource: customers.enrollmentTokens

- [Resource: EnrollmentToken](https://developers.google.com/chrome/management/reference/rest/v1/customers.enrollmentTokens.md.txt#EnrollmentToken)
  - [JSON representation](https://developers.google.com/chrome/management/reference/rest/v1/customers.enrollmentTokens.md.txt#EnrollmentToken.SCHEMA_REPRESENTATION)
- [EnrollmentTokenState](https://developers.google.com/chrome/management/reference/rest/v1/customers.enrollmentTokens.md.txt#EnrollmentTokenState)
- [EnrollmentTokenType](https://developers.google.com/chrome/management/reference/rest/v1/customers.enrollmentTokens.md.txt#EnrollmentTokenType)
- [Methods](https://developers.google.com/chrome/management/reference/rest/v1/customers.enrollmentTokens.md.txt#METHODS_SUMMARY)

## Resource: EnrollmentToken

Enrollment token for a chrome device.

| JSON representation |
|---|
| ``` { "name": string, "tokenPermanentId": string, "token": string, "customerId": string, "orgUnitId": string, "state": enum (`EnrollmentTokenState`), "createTime": string, "revokeTime": string, "creatorId": string, "revokerId": string, "tokenType": enum (`EnrollmentTokenType`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of the enrollment token. Format: customers/{customer}/enrollmentTokens/{tokenPermanentId} |
| `tokenPermanentId` | `string` Output only. Unique identifier of the enrollment token used to access information on tokens. |
| `token` | `string` Output only. The value of the token stored on the device and used to identify it to the management service handling the enrollment request. |
| `customerId` | `string` Output only. The obfuscated ID of the customer to whom this token is associated. |
| `orgUnitId` | `string` Optional. Obfuscated ID of the organization unit this token is associated with. If not set, the token is created for the root organization unit. |
| `state` | ``enum (`EnrollmentTokenState`)`` Output only. The state of the token. |
| `createTime` | ``string (`Timestamp` format)`` Output only. The creation time of the token. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `revokeTime` | ``string (`Timestamp` format)`` Output only. The revocation time of the token, null if the token is not revoked. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `creatorId` | `string` Output only. The id of the user who created the token. |
| `revokerId` | `string` Output only. The id of the user who revoked the token, null if the token is not revoked. |
| `tokenType` | ``enum (`EnrollmentTokenType`)`` Optional. The device type this token is used for. If not set, defaults to `ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER`. |

## EnrollmentTokenState

The state of an EnrollmentToken.

| Enums ||
|---|---|
| `ENROLLMENT_TOKEN_STATE_UNSPECIFIED` | Unknown token state. |
| `ENROLLMENT_TOKEN_STATE_ACTIVE` | The token is still active and valid. |
| `ENROLLMENT_TOKEN_STATE_EXPIRED` | The token has expired. |
| `ENROLLMENT_TOKEN_STATE_REVOKED` | The token has been revoked by user. |

## EnrollmentTokenType

The device type of an EnrollmentToken to be used on.

| Enums ||
|---|---|
| `ENROLLMENT_TOKEN_TYPE_UNSPECIFIED` | Unknown token device type. |
| `ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER` | The token is used to enroll a Chrome Browser device. |

| ## Methods ||
|---|---|
| ### `create` | Creates a new enrollment token for a browser device. |
| ### `get` | Gets a browser device enrollment token. |
| ### `list` | Lists all browser device enrollment tokens. |
| ### `revoke` | Revokes a browser device enrollment token. |