Skip to main content
POST
/
api
/
widget
/
init
Initialize widget session
curl --request POST \
  --url https://api.g-tateth.com/api/widget/init \
  --header 'Content-Type: application/json' \
  --data '
{
  "tenantId": "<string>",
  "customerInfo": {
    "name": "<string>",
    "email": "<string>",
    "phone": "<string>",
    "metadata": {}
  }
}
'
{
  "success": true,
  "data": {
    "sessionId": "<string>",
    "conversationId": "<string>",
    "config": {}
  }
}

Body

application/json
tenantId
string
required

Your tenant ID

customerInfo
object

Response

200 - application/json

Widget session initialized successfully

success
boolean
data
object