用戶推播
用戶推播有兩種方式可以使用,依據使用環境來選擇適用的推播
Authorizations
AuthorizationstringRequired
Bearer token for API authentication
Query parameters
botIdstringRequired
The bot ID for the API request
Body
Additional validation rules:
- Either intentId or message must be provided (cannot both be empty)
- fbTag is required when platform is 'facebook'
secretstringRequiredExample:
Secret key for API authentication
your_secret_key_hereintentIdstringOptionalExample:
Intent identifier for the broadcast (required if message is empty)
VolejRejNmessagestringOptionalExample:
Message content to broadcast (required if intentId is empty)
Hello, this is a broadcast messageclientIdsstring[]OptionalExample:
Array of platform UUIDs to send the broadcast to
["client_1","client_2","client_3"]platformstring · enumRequiredExample:
Platform to send the broadcast on (required)
linePossible values: fbTagstringOptionalExample:
Facebook tag for the broadcast (required when platform is 'facebook')
ACCOUNT_UPDATEnamestringRequiredExample:
Name of this broadcast
Openapi BroadcastResponses
200
Broadcast sent successfully
application/json
401
JWT token is invalid or expired
application/json
403
Permission or broadcast creation failed
application/json
404
Resource not found
application/json
429
Rate limit exceeded
application/json
500
Internal server error
application/json
post
/openapi/broadcastLast updated