An endstation for pump-probe small-angle X-ray scattering (SAXS) experiments at the free-electron laser in Hamburg (FLASH) is presented. The endstation houses a solid-state absorber, optical incoupling for pump-probe experiments, time zero measurement, sample chamber, and detection unit. It can be used at all FLASH beamlines in the whole photon energy range offered by FLASH. The capabilities of the setup are demonstrated by showing the results of resonant magnetic SAXS measurements on cobalt-platinum multilayer samples grown on freestanding Si(3)N(4) membranes and pump-laser-induced grid structures in multilayer samples.