Method: projects.apps.debugTokens.create
Stay organized with collections
Save and categorize content based on your preferences.
Creates a new DebugToken
for the specified app.
For security reasons, after the creation operation completes, the token
field cannot be updated or retrieved, but you can revoke the debug token using debugTokens.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 uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The relative resource name of the parent app in which the specified DebugToken will be created, in the format:
projects/{project_number}/apps/{app_id}
|
Request body
The request body contains an instance of DebugToken
.
Response body
If successful, the response body contains a newly created instance of DebugToken
.
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 the Authentication Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-05 UTC.
[null,null,["Last updated 2024-04-05 UTC."],[],[],null,["Creates a new [DebugToken](/docs/reference/appcheck/rest/v1/projects.apps.debugTokens#DebugToken) for the specified app.\n\nFor security reasons, after the creation operation completes, the [`token`](/docs/reference/appcheck/rest/v1/projects.apps.debugTokens#DebugToken.FIELDS.token) field cannot be updated or retrieved, but you can revoke the debug token using [debugTokens.delete](/docs/reference/appcheck/rest/v1/projects.apps.debugTokens/delete#google.firebase.appcheck.v1.ConfigService.DeleteDebugToken).\n\nEach app can have a maximum of 20 debug tokens.\n\nHTTP request\n\n`POST https://firebaseappcheck.googleapis.com/v1/{parent=projects/*/apps/*}/debugTokens`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\nRequest body\n\nThe request body contains an instance of [DebugToken](/docs/reference/appcheck/rest/v1/projects.apps.debugTokens#DebugToken).\n\nResponse body\n\nIf successful, the response body contains a newly created instance of [DebugToken](/docs/reference/appcheck/rest/v1/projects.apps.debugTokens#DebugToken).\n\nAuthorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `https://www.googleapis.com/auth/firebase`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]