Method: projects.apps.debugTokens.create

Creates a newDebugToken for the specified app.

For security reasons, after the creation operation completes, thetoken field cannot be updated or retrieved, but you can revoke the debug token usingdebugTokens.delete.

Each app can have a maximum of 20 debug tokens.

HTTP request

POST https://firebaseappcheck.googleapis.com/v1/{parent=projects/*/apps/*}/debugTokens

The URL usesgRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The relative resource name of the parent app in which the specifiedDebugToken will be created, in the format:

projects/{project_number}/apps/{app_id}

Request body

The request body contains an instance ofDebugToken.

Response body

If successful, the response body contains a newly created instance ofDebugToken.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/firebase

For more information, see theOAuth 2.0 Overview.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-25 UTC.