Where to write new API in jitsi?

I wanted to introduce ClaimHost feature but I am not getting where to edit APIs? (I want to add my own API in which file I need to make change ) can anyone help me!!