---
updatedAt: 2026-04-20T19:43:46.000Z
agentTools:
  projectIndex: https://docs.trybadge.com/llms.txt
---

# Generate a Google Wallet JWT

This endpoint generates a signed JSON Web Token (JWT) that can be used to add a pass to Google Wallet. The JWT is valid for 1 hour.

**Adding a pass to Google Wallet:**

* **Android App:** Use the following documentation for integrating with an Android application: [https://developers.google.com/wallet/generic/android](https://developers.google.com/wallet/generic/android)
* **Web:** Use the following documentation for integrating with a web application: [https://developers.google.com/wallet/generic/web](https://developers.google.com/wallet/generic/web)


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Badge API",
    "version": "0"
  },
  "servers": [
    {
      "url": "https://api.trybadge.com/v0"
    }
  ],
  "security": [
    {
      "WorkspaceAuth": []
    }
  ],
  "tags": [
    {
      "name": "Pass"
    }
  ],
  "paths": {
    "/passTemplates/{passTemplateId}/passes/{passId}/googleWalletJwt": {
      "get": {
        "operationId": "passGoogleWalletJwt",
        "tags": [
          "Pass"
        ],
        "summary": "Generate a Google Wallet JWT",
        "description": "This endpoint generates a signed JSON Web Token (JWT) that can be used to add a pass to Google Wallet. The JWT is valid for 1 hour.\n\n**Adding a pass to Google Wallet:**\n\n* **Android App:** Use the following documentation for integrating with an Android application: [https://developers.google.com/wallet/generic/android](https://developers.google.com/wallet/generic/android)\n* **Web:** Use the following documentation for integrating with a web application: [https://developers.google.com/wallet/generic/web](https://developers.google.com/wallet/generic/web)\n",
        "parameters": [
          {
            "in": "path",
            "name": "passTemplateId",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "passId",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "jwt"
                  ],
                  "properties": {
                    "jwt": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400ErrorMessage"
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "$ref": "#/components/responses/422ErrorMessage"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "WorkspaceAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "responses": {
      "422ErrorMessage": {
        "description": "Request could not be processed in its current state.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "message"
              ],
              "properties": {
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "400ErrorMessage": {
        "description": "Invalid input was received.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "message"
              ],
              "properties": {
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
```