Add new endpoint or app

Hi I want to add new endpoint/app in hue which should work if there is no session in hue or It should work independent to hue service ideally.

Below is my use case:
Idea is to have endpoint where I can perform some operation before independent to hue service or some files operation on hue server.