設定回呼網址

根據傳入的參數來設定用戶機器人的回呼網址

Set customer callback URL

post

Configure the callback URL for customer notifications

Authorizations
Query parameters
botIdstringRequired

The bot ID for the API request

customerCallbackUrlstring · uriRequired

The callback URL to set for the customer

Body
secretstringRequired

Secret key for API authentication

Example: your_secret_key_here
callbackstring · uriRequired

The callback URL to set

Example: https://example.com/callback
Responses
200
Callback URL set successfully
application/json
Responseall of
post
POST /api/openapi/set/callback HTTP/1.1
Host: mantago.cc
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 75

{
  "secret": "your_secret_key_here",
  "callback": "https://example.com/callback"
}
{
  "success": true,
  "message": "Set customer callback url successfully",
  "customerCallbackUrl": "https://example.com/callback"
}

Last updated