v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1336218221.3 KB
projects

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

post/v1/{+name}:generateChatToken

Path parameters

namestring required

Required. The session name to generate the chat token for. Format: projects/{project}/locations/{location}/apps/{app}/sessions/{session}

Request body

liveHandoffEnabledboolean

Optional. Indicates if live handoff is enabled for the session.

recaptchaTokenstring

Optional. The reCAPTCHA token generated by the client-side chat widget.

deploymentstring

Required. The deployment of the app to use for the session. Format: projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}

Response

Successful response