Google Android Enrollment Tokens API

The EnrollmentTokens API from Google Android — 1 operation(s) for enrollmenttokens.

GitHub OpenAPI
Business capability
Device Management & Provisioning AE-200.40

Operations 1

POST /androidenterprise/v1/enterprises/{enterpriseId}/enrollmentTokens Create enrollmentTokens #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-android:google-android-enrollmenttokens-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-android-enrollmenttokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Play EMM Enrollment Tokens API
  version: v1
  description: Generated from Google's published Discovery document for Google Play EMM API (androidenterprise v1, revision 20261110). 1 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://androidenterprise.googleapis.com
tags:
- name: EnrollmentTokens
paths:
  /androidenterprise/v1/enterprises/{enterpriseId}/enrollmentTokens:
    post:
      operationId: androidenterprise.enrollmentTokens.create
      summary: Create enrollmentTokens
      description: Returns a token for device enrollment. The DPC can encode this token within the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-device API to authenticate the user. The token can be generated for each device or reused across multiple devices.
      parameters:
      - name: enterpriseId
        in: path
        required: true
        description: Required. The ID of the enterprise.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnrollmentToken'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnrollmentToken'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/androidenterprise
      - apiKey: []
      tags:
      - EnrollmentTokens
components:
  schemas:
    EnrollmentTokenGoogleAuthenticationOptions:
      properties:
        requiredAccountEmail:
          description: '[Optional] Specifies the managed Google account that the user must use during enrollment.`AuthenticationRequirement` must be set to`REQUIRED` if this field is set.'
          type: string
        authenticationRequirement:
          type: string
          description: '[Optional] Specifies whether user should authenticate with Google during enrollment. This setting, if specified,`GoogleAuthenticationSettings` specified for the enterprise resource is ignored for devices enrolled with this token.'
          enum:
          - authenticationRequirementUnspecified
          - optional
          - required
      type: object
      description: Options for Google authentication during the enrollment.
    EnrollmentToken:
      properties:
        googleAuthenticationOptions:
          $ref: '#/components/schemas/EnrollmentTokenGoogleAuthenticationOptions'
          description: '[Optional] Provides options related to Google authentication during the enrollment.'
        enrollmentTokenType:
          type: string
          description: '[Required] The type of the enrollment token.'
          enum:
          - enrollmentTokenTypeUnspecified
          - userlessDevice
          - userDevice
        token:
          type: string
          description: The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.
        duration:
          type: string
          description: '[Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour. In the JSON REST API, this is represented as a string (e.g., `3600s`).'
          format: google-duration
      type: object
      description: A token used to enroll a device.
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/androidenterprise: Manage corporate Android devices
externalDocs:
  url: https://developers.google.com/android/work/play/emm-api
x-provenance:
  method: harvested
  publisher: Google
  source: https://androidenterprise.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261110)