After some experimentation, I realised that the data is sent as form data, and the way to extract it on the back-end in an Astro endpoint is with
data = await request.formData();