設定回呼網址
根據傳入的參數來設定用戶機器人的回呼網址
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
secretstringRequiredExample:
Secret key for API authentication
your_secret_key_here
callbackstring · uriRequiredExample:
The callback URL to set
https://example.com/callback
Responses
200
Callback URL set successfully
application/json
Responseall of
401
JWT token is invalid or expired
application/json
403
Permission denied - insufficient access rights
application/json
404
OpenAPI configuration not found
application/json
429
Rate limit exceeded
application/json
500
Internal server error
application/json
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