Green’s Dictionary of Slang

rappie n.

[both men have faced or would face the same charge or rap n.1 (3c); they would also talk or rap v.1 (1e) together when plotting]

[1920s+] (US prison) a confederate.