From the official government website:
As of Tuesday, 20 September 2022, the Spain Travel Health (SpTH) portal, both the website and the mobile applications (APPs), will no longer be operational. It will no longer be necessary to complete the health control form to travel to Spain nor to show the SpTH QR code at the airport of arrival.
Source: https://www.spth.gob.es/