When was the first recorded time an all-black team played an all-white team in baseball?

The first recorded time an all-black team played an all-white team in baseball was in 1869.

The all-black baseball club of Philadelphia, the Pythians, became the first all-black team to play an exhibition game against an all-white team. The Pythians won 27-17.