設定回呼網址

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

Set customer callback URL

post

Configure the callback URL for customer notifications

Authorizations
AuthorizationstringRequired

Bearer token for API authentication

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
/openapi/set/callback
POST /api/openapi/set/callback?botId=text&customerCallbackUrl=https%3A%2F%2Fexample.com HTTP/1.1
Host: mantago.cc
Authorization: Bearer YOUR_SECRET_TOKEN
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