Updated create keypair api to allow download for response