---
title: "POST /v1/{+app}:exchangeDebugToken"
method: POST
path: "/v1/{+app}:exchangeDebugToken"
tags: ["projects"]
---

# POST /v1/{+app}:exchangeDebugToken

`POST /v1/{+app}:exchangeDebugToken`

Validates a debug token secret that you have previously created using CreateDebugToken. If valid, returns an AppCheckToken. Note that a restrictive quota is enforced on this method to prevent accidental exposure of the app to abuse.

## Path parameters

- `app` string, required

## Request body

- GoogleFirebaseAppcheckV1ExchangeDebugTokenRequest — Request message for the ExchangeDebugToken method.
  - `limitedUse` boolean — Specifies whether this attestation is for use in a *limited use* (`true`) or *session based* (`false`) context. To enable this attestation to be used with the *replay protection* feature, set this to `true`. The default value is `false`.
  - `debugToken` string — Required. A debug token secret. This string must match a debug token secret previously created using CreateDebugToken.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/firebaseappcheck.md) · [All operations](https://skmtc.net/google/apis/firebaseappcheck/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/firebaseappcheck/versions/b321501ef5a5/schema)
