Favicon

You are here: Home > API Reference > Android > Enterprise Creation > Generate enterprise web token

Generate enterprise web token

Required Permission: mdm.android.enterprise.generateWebToken

Generates a web token for embedding Google Play iframe features within parent applications.

POST
/v1/organizations/:organizationId/mdm/android/enterprise/web-token
Copy to clipboard

Generate enterprise web token

Required Permission: mdm.android.enterprise.generateWebToken

Generates a web token for embedding Google Play iframe features within parent applications.

Request

Add parameter in header authorization
Example: Authorization: Bearer <token>
organizationId string
required
Unique identifier for organization managing Apple enterprise application deployments and configurations.
Match pattern: ^(([a-fA-F0-9]{24})|([a-zA-Z0-9\\-]{3,}))$
Body Params application/json
parentFrameUrl string required
URL of parent web application hosting embedded Google Play iframe ensuring proper origin validation and security context.
≤ 256 characters
enabledFeatures array [string] optional
List of Google Play iframe features enabled for web token defining available functionality within embedded management interface.
{
    "parentFrameUrl": "string",
    "enabledFeatures": [
        "PLAY_SEARCH"
    ]
}

Responses

200 Response application/json
status boolean required
data object required
name string required
Google-generated web token resource name in enterprises/*/webTokens/* format identifying token within Android Management API.
value string required
JWT token string encoded for iframe embedding enabling authenticated access to Google Play features within parent application.
parentFrameUrl string required
URL of parent web application hosting embedded Google Play iframe ensuring proper origin validation and security context.
≤ 256 characters
enabledFeatures array [string] required
List of Google Play iframe features enabled for web token defining available functionality within embedded management interface.
permissions array [string] required
Web token permissions granted to embedded iframe controlling authorization scope for application approval and management operations.
{
    "status": true,
    "data": {
        "name": "string",
        "value": "string",
        "parentFrameUrl": "string",
        "enabledFeatures": [
            "PLAY_SEARCH"
        ],
        "permissions": [
            "WEB_TOKEN_PERMISSION_UNSPECIFIED"
        ]
    }
}
400 Response application/json
status boolean optional
false
error object optional
code number optional
5050
message string optional
Feature not allowed for you billing plan
{
    "status": false,
    "error": {
        "code": 5050,
        "message": "Feature not allowed for you billing plan"
    }
}
401 Response application/json
status boolean optional
false
error object optional
code number optional
4004
message string optional
Invalid Token
{
    "status": false,
    "error": {
        "code": 4002,
        "message": "No auth token"
    }
}
404 Response application/json
status boolean optional
false
error object optional
code number optional
3001
message string optional
Entity not found
{
    "status": false,
    "error": {
        "code": 3001,
        "message": "Entity not found"
    }
}