Przejdź do głównej zawartości

Custom HTTP notification

The Custom HTTP provider sends notification payloads to a URL you specify (GET or POST).

Configure the provider

ProvidersAdd. Set Category to Notification, Type to Custom HTTP. Fill in:

FieldDescription
MethodGET or POST
Parameter nameQuery (GET) or body (POST) parameter name for the message
ContentMessage content or template
EndpointFull HTTP(S) URL to call
Chat IDOptional identifier

custom_http_provider

When you use Send Notification Message, Casdoor sends a request to Endpoint with the message in the chosen parameter. Example:

custom_http_request

Recipient forwarding

The send-notification API accepts an optional recipient field in its request body:

{
"content": "Your message",
"recipient": "user@example.com"
}

When a recipient is provided, the Custom HTTP provider forwards it to your Endpoint as an additional recipient request parameter — a query parameter for GET, or a form field for POST — alongside the message in your configured Parameter name. The recipient parameter is only sent when it is non-empty, so requests without a recipient are unchanged.

Notification providers that do not support recipient-aware sending simply ignore the recipient value, so their behavior is unchanged.