Forum Discussion
0203amit
9 hours agoSupporter
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
1 Reply
Sort By
- jamesyiInfluencer
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.
Related Content
- 4 months ago
- 3 years ago
- 3 months ago