Jellyfin Forum
10.9.0 Webooks Notifications - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Guides, Walkthroughs & Tutorials (https://forum.jellyfin.org/f-guides-walkthroughs-tutorials)
+--- Thread: 10.9.0 Webooks Notifications (/t-10-9-0-webooks-notifications)



10.9.0 Webooks Notifications - paulc - 2024-05-12

Notifications used to come as email in email human readable form. 

I was able to setup smtp webhook notifications. At one point the info came in json form in the email body.

After Googling, I setup my template like:

Code:
<pre>Username: {{Username}}
Action: {{NotificationType}}
Timestamp: {{UtcTimestamp}}
Title:: {{Name}}


Series: {{SeriesName}}
Season: {{SeasonNumber00}}
Episode: {{EpisodeNumber00}}


DeviceName: {{DeviceName}}
ClientName: {{ClientName}}
PlaybackPosition: {{PlaybackPosition}}
</pre>


and subject template like
Code:
{{Username}} Action: {{NotificationType}}  Series: {{SeriesName}} Title:: {{Name}}

Username is coming back empty. Any help would be appreciated.

I would venture to say, not many people that setup as 'home users' have experienced webhooks before and many are probably inclined not to take up the hobby of learning about them.

Does anyone have a better template for SMTP webhook notifications? How do I get the Username to show up? A link to all the possible fields?


RE: 10.9.0 Webooks Notifications - paulc - 2024-05-12

(2024-05-12, 07:23 PM)paulc Wrote: Does anyone have a better template for SMTP webhook notifications? How do I get the Username to show up? A link to all the possible fields?

I stripped the early notification where the data came in json form and got the below fields:

ServerId:{{ServerId}}

ServerName:{{ServerName}}

ServerVersion:{{ServerVersion}}

ServerUrl:{{ServerUrl}}

NotificationType:{{NotificationType}}

Timestamp:{{Timestamp}}

UtcTimestamp:{{UtcTimestamp}}

Name:{{Name}}

Overview:{{Overview}}

Tagline:{{Tagline}}

ItemId:{{ItemId}}

ItemType:{{ItemType}}

RunTimeTicks:{{RunTimeTicks}}

RunTime:{{RunTime}}

Year:{{Year}}

PremiereDate:{{PremiereDate}}

SeriesName:{{SeriesName}}

SeriesId:{{SeriesId}}

SeasonId:{{SeasonId}}

SeriesPremiereDate:{{SeriesPremiereDate}}

SeasonNumber:{{SeasonNumber}}

SeasonNumber00:{{SeasonNumber00}}

SeasonNumber000:{{SeasonNumber000}}

EpisodeNumber:{{EpisodeNumber}}

EpisodeNumber00:{{EpisodeNumber00}}

EpisodeNumber000:{{EpisodeNumber000}}

Provider_imdb:{{Provider_imdb}}

Provider_tvdb:{{Provider_tvdb}}

Provider_tvmaze:{{Provider_tvmaze}}

Provider_tmdb:{{Provider_tmdb}}

Provider_trakt:{{Provider_trakt}}

PlaybackPositionTicks:{{PlaybackPositionTicks}}

PlaybackPosition:{{PlaybackPosition}}

MediaSourceId:{{MediaSourceId}}

IsPaused:{{IsPaused}}

IsAutomated:{{IsAutomated}}

DeviceId:{{DeviceId}}

DeviceName:{{DeviceName}}

ClientName:{{ClientName}}

PlayMethod:{{PlayMethod}}

NotificationUsername:{{NotificationUsername}}

UserId:{{UserId}}

Username is showing now with {{NotificationUsername}}

Please share your SMTP webhooks templates


RE: 10.9.0 Webooks Notifications - SethBacon - 2024-06-23

I think you might want {{NotificationUsername}}. Thats what i use for reporting back via slack.