Add a custom API end point in redash

I would like to add a custom function in redash to make an api call from the visualization. I just need to call a function or URL in redash and return an array back. Can anyone clarify which file I need to edit to add a function inorder to receive the api call?

They’re in the handlers folder. You can add it to