# How to use app/callbacks/server hooks from an App?

**URL:** <https://forums.rocket.chat/t/how-to-use-app-callbacks-server-hooks-from-an-app/12152>\
**Category:** Rocket.Chat Apps\
**Tags:** rocketchat-apps\
**Created:** [September 10, 2021, 9:33pm UTC](https://forums.rocket.chat/t/how-to-use-app-callbacks-server-hooks-from-an-app/12152 "2021-09-10T21:33:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zane.woodard](https://avatars.discourse-cdn.com/v4/letter/z/a5b964/32.png) [@zane.woodard](https://forums.rocket.chat/u/zane.woodard)\
**Post date:** [September 10, 2021, 9:33pm UTC](https://forums.rocket.chat/t/how-to-use-app-callbacks-server-hooks-from-an-app/12152/1 "2021-09-10T21:33:38Z")

</div>

Is it possible to add to or invoke the app/callbacks/server/index.js hooks from a Rocket.Chat App? Or any other approach other than forking Rocket.Chat?

There’s a [callback hook](https://github.com/RocketChat/Rocket.Chat/blob/79c553dc70187c82e44c2793e46ea6da564ae73b/app/livechat/server/api/lib/departments.js#L23) for filtering departments that would be absolutely perfect for a use case I have, if I could add my own custom logic to the callback to run when invoked. Unfortunately, Rocket.Chat enterprise’s units functionality doesn’t satisfy this as the filtering logic I need to run is very niche.

If there was some way to just perform a callback.add() from a Rocket.Chat App?
