How can I send events from a server app to GTM server container?

I’m sorry if this has been asked before, but I couldn’t find any resources on this topic. How can I send events from my server application to my server container?

I’m trying to use the TikTok Events API to send purchase (CompletePayment) events to TikTok. These purchase events are generated on the server using a third-party service which is Appsflyer (I’m receiving them via a webhook from Appsflyer), so I can’t use client apps to send events to the web container and then to the server container.

I found a relevant section here, but it lacks detailed explanations and examples. I’m also not sure if I should be using the measurement protocol at all.

For context, I’m a developer working with Node.js. I’m still new to server-side tagging and would appreciate any guidance or resources you can provide. Thanks in advance!

Please check these out: