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

# POST /v1/{+name}:generateChatToken

`POST /v1/{+name}:generateChatToken`

Generates a session scoped token for chat widget to authenticate with Session APIs.

## Path parameters

- `name` string, required

## Request body

- GenerateChatTokenRequest — Request message for WidgetService.GenerateChatToken.
  - `liveHandoffEnabled` boolean — Optional. Indicates if live handoff is enabled for the session.
  - `recaptchaToken` string — Optional. The reCAPTCHA token generated by the client-side chat widget.
  - `deployment` string — Required. The deployment of the app to use for the session. Format: projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}

## Response `200`

Successful response

---

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