---
title: "Creates a webtoken instance"
method: POST
path: "/v0/enterprise/{enterprise_id}/emm/{emm_id}/webtoken/"
tags: ["esper_cloud_api_Application"]
---

# Creates a webtoken instance

`POST /v0/enterprise/{enterprise_id}/emm/{emm_id}/webtoken/`

We recommend enrolling in EMM (Google Play) through the UI. See [Setting Up Google Play](https://help.esper.io/hc/en-us/articles/12652188061585-Setting-Up-Google-Play-EMM-Enrollment) for more information. Create a new web token for a Google Enterprise (EMM) instance. Generates a new web token scoped to a specified parent_url, which can then be used to access the Managed Google Play interface within the Esper Console or a custom management application. Returns the created token including its id, token value, parent_url, and active status.

Required request body fields

emm — the integer ID of the EMM instance (from GET /v0/enterprise/{enterprise_id}/emm/)

parent_url — the URL of the application that will host the Play Store iFrame; must use the https scheme

## Path parameters

- `enterprise_id` string, required
- `emm_id` integer, required

## Request body

- EsperCloudApiGoogleWebTokenUpdate
  - `id` integer
  - `emm` integer, required
  - `token` string
  - `parent_url` string, url, required
  - `is_active` boolean

## Response `201`

successful operation

- EsperCloudApiGoogleWebToken
  - `id` integer
  - `emm` integer
  - `token` string
  - `parent_url` string, url
  - `is_active` boolean
  - `created_on` string, date-time

## Other responses

- `401` — Authorization information is missing or invalid.
- `500` — Internal server error

---

[API](https://skmtc.dev/esper/apis/esper-api-reference.md) · [All operations](https://skmtc.dev/esper/apis/esper-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/esper/esper-api-reference/revisions/6b55f43485ae/schema)
