β“˜ Changes are on the way!
Braze Bonfire is read-only from April 6–April 13, 2026. 

Braze Bonfire is getting an upgrade. From April 6 through April 13, 2026, Bonfire will be read-only while we tinker behind the scenes to improve your experience in the community. Read more.

Google Tag Manager

Forum Discussion

0203amit's avatar
0203amit
Influencer
1 year ago
Solved

Getting Error while creating API campaign through braze webhook

Hi All,

I am trying to create an API Campaign through Braze webhook in my sandbox instance.

I am getting the following error

Message: 415 Unsupported Media Type

Raw Response: {"error": "The provided content-type 'text/plain' is not supported."}


Below is my webhook code

POST https://rest.fra-02.braze.eu/messages/send { "external_user_ids": ["MON0002"], "messages":{ "email":{ "app_id":"Here Added my APP ID", "subject" : "This is my subject", "body": "This is my body", "from": "NEWS <news@demo01.broze.com>", } } }

Thanks in advance

  • Hi,

    Can we confirm that you set "Content-Type" to "application/json"?

    Your headers should specify the content type as application/json when making the POST request.

     

2 Replies

Replies have been turned off for this discussion
  • Hi,

    Can we confirm that you set "Content-Type" to "application/json"?

    Your headers should specify the content type as application/json when making the POST request.