Hey @stevemc,
Like you pointed you, marking a contact as spam is not available as an API.
However, did you check soft delete contact API, not sure if that serves your purpose? If not, I can share it with the Freshdesk support team and they will be able to answer you better.