Issues with media attachement

Hi everyone! sorry if this is not the right place to post this, but I’m trying to develop an app, using the API to post on mastodon.social, and although the text is working, the media is not being attached to it.

The steps are the following:

  1. I POST the file to https://mastodon.social/api/v1/media, with authentication, and everything works fine. The file is uploaded and I can see it on the url.

  2. I POST the status to https://mastodon.social/api/v1/statuses, with authentication too, and with the uploaded media_id as follows:
    {status: 'some text', media_ids:["234324234"]}

and although the text is posted, the attachment is not :frowning:

I tried some variants, like media_ids:[{id: "32432424"}] and isn’t working neither.

This is really strange, because the attachment is there, but is not being posted along with the status

Anybody has any idea on how to solve this issue?