Skip to content

Create a Google Web Token
Stable

Request

Headers
Authorizationstringrequired

Bearer token for authorization

Bodyapplication/jsonrequired
google_enterprise_idstring, non-emptyrequired

The ID of the Google enterprise. It is required and cannot be empty.

Example:"test"
parent_urlstring, (uri)^https://required

The parent URL. It must be a valid URL with the https scheme.

Example:"https://valid.url"
cURL
curl -i -X POST \
  https://api.esper.io/_mock/openapi/v2/emm/web-token/ \
  -H 'Authorization: string' \
  -H 'Content-Type: application/json' \
  -d '{
    "google_enterprise_id": "test",
    "parent_url": "https://valid.url"
  }'

Responses

Successful Response

Bodyapplication/json
tokenstring

The generated token.

Example:"test_1245"
Response
{ "token": "test_1245" }