Grafana Contact Point Webhook notification with Message via multipart form

  • What Grafana version and what operating system are you using?
    Redhat 8 Grafana 12 (not docker)

  • What are you trying to achieve?
    Set up a contact point and custom notification template for a webhook.
    The message for the notification to be sent as a attached multipart form

I’m not sure if it’s possible but I’m hoping that someone here might be able to advise?
I’m fairly used to sending alert notifications via webhook with the message content sent in the body of a POST.

However, I have a new webhook that takes the message content via a multipart form.

Here’s a very quick example of a curl command that posts to the webhook:

curl --request POST \
  --url https://webhookurl/media/notification/streamid \
  --header 'content-type: multipart/form-data' \
  --form 'message=hello world'

I’d like to be able to use a custom Grafana notification template to define the message to be sent and then use a Contact Point to post it via Webhook.

Is this possible?
Can you suggest how I can set this up?
I’m afraid I’m a bit lost :frowning:

Thanks for your help!

Thanks for the pointers but that’s not quite what I’m after.
I’d like to use the custom webhook functionality to submit via form content rather than a body json.
Is this possible?

I don’t think so.