Enterprises: createWebToken

Returns a unique token to access an embeddable UI. To generate a web UI, pass the generated token into the managed Google Play javascript API. Each token may only be used to start one UI session. See the JavaScript API documentation for further information.

Request

HTTP request

POST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/createWebToken

Parameters

Parameter name Value Description
Path parameters
enterpriseId string The ID of the enterprise.

Authorization

This request requires authorization with the following scope:

Scope
https://www.googleapis.com/auth/androidenterprise

For more information, see the authentication and authorization page.

Request body

In the request body, supply data with the following structure:

{
  "kind": "androidenterprise#administratorWebTokenSpec",
  "permission": [
    string
  ],
  "parent": string,
  "playSearch": {
    "enabled": boolean,
    "approveApps": boolean
  },
  "privateApps": {
    "enabled": boolean
  },
  "webApps": {
    "enabled": boolean
  },
  "storeBuilder": {
    "enabled": boolean
  },
  "managedConfigurations": {
    "enabled": boolean
  },
  "zeroTouch": {
    "enabled": boolean
  }
}
Property name Value Description Notes
permission[] list Deprecated. Use PlaySearch.approveApps.
parent string The URI of the parent frame hosting the iframe. To prevent XSS, the iframe may not be hosted at other URIs. This URI must be https. Use whitespaces to separate multiple parent URIs.
playSearch nested object Options for displaying the managed Play Search apps page.
playSearch.enabled boolean Whether the managed Play Search apps page is displayed. Default is true.
playSearch.approveApps boolean Allow access to the iframe in approve mode. Default is false.
privateApps nested object Options for displaying the Private Apps page.
privateApps.enabled boolean Whether the Private Apps page is displayed. Default is true.
webApps nested object Options for displaying the Web Apps page.
webApps.enabled boolean Whether the Web Apps page is displayed. Default is true.
storeBuilder nested object Options for displaying the Organize apps page.
storeBuilder.enabled boolean Whether the Organize apps page is displayed. Default is true.
managedConfigurations nested object Options for displaying the Managed Configuration page.
managedConfigurations.enabled boolean Whether the Managed Configuration page is displayed. Default is true.
kind string
zeroTouch nested object Options for displaying the Zero Touch page.
zeroTouch.enabled boolean Whether zero-touch embedded UI is usable with this token. If enabled, the admin can link zero-touch customers to this enterprise.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "androidenterprise#administratorWebToken",
  "token": string
}
Property name Value Description Notes
token string An opaque token to be passed to the Play front-end to generate an iframe.
kind string