//In interface Call<User> createPost(@Body User user,@Query("key") String key); //In call RetrofitUserApi retrofitAPI = retrofit.create(RetrofitUserApi.class); Call<User> call = retrofitAPI.createPost(farmUser,"YOURAPIKEY");