Added code to sign a request for executing custom APIs