grab private key from req headers
adds json method to notify test