# Webhook, HTTP response code 415 (unsupported media type)

**URL:** <https://forums.plex.tv/t/webhook-http-response-code-415-unsupported-media-type/865097>\
**Category:** General Discussions\
**Tags:** webhooks\
**Created:** [January 4, 2024, 8:19pm UTC](https://forums.plex.tv/t/webhook-http-response-code-415-unsupported-media-type/865097 "2024-01-04T20:19:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BK89](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@BK89](https://forums.plex.tv/u/BK89)\
**Post date:** [January 4, 2024, 8:19pm UTC](https://forums.plex.tv/t/webhook-http-response-code-415-unsupported-media-type/865097/1 "2024-01-04T20:19:56Z")

</div>

Hi!

I’m trying to use the webhook feature to send a message to an [asp.net](http://asp.net) core webapi that I wrote.  
I’m kinda guessing the media type of the http post the webhook is doing, and guessing app/json is the wrong one. As I’m getting response code 415 in [server logs.](https://support.plex.tv/articles/200250417-plex-media-server-log-files/)

Anyone know what kind of mediatype the post is?

When I send the sample body from the webhook article, everything is working as it should be.  
But that is without any additional headers. So I guess it could be missing something else too.

//B

EDIT:

If anyone else stumbles upon this:

![image](https://global.discourse-cdn.com/plex/original/4X/2/a/6/2a67d2faf0dfcfb523edcafe35dd99304cc0bd5b.png)

This was how I handled the multipart form. (i ignore the second part, and only care about the first.)

---

<div class="post-metadata">

**Author:** ![SwiftPanda16](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/swiftpanda16/32/81839_2.png) [@SwiftPanda16](https://forums.plex.tv/u/SwiftPanda16)\
**Post date:** [January 4, 2024, 8:26pm UTC](https://forums.plex.tv/t/webhook-http-response-code-415-unsupported-media-type/865097/2 "2024-01-04T20:26:46Z")

</div>

[https://support.plex.tv/articles/115002267687-webhooks/](https://support.plex.tv/articles/115002267687-webhooks/)

> As stated above, the payload is sent in JSON format inside a multipart HTTP POST request. For the `media.play` and `media.rate` events, a second part of the POST request contains a JPEG thumbnail for the media.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [April 3, 2024, 8:27pm UTC](https://forums.plex.tv/t/webhook-http-response-code-415-unsupported-media-type/865097/3 "2024-04-03T20:27:01Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
