Hi,

it’s very frustrating actually since I’m trying to post an image with text to the new v2 api.
I’ve tried with the media option and raw or base64 data - but I always get a json error. Sending normal tweets in the text params works like charm.

The docs are also not very meaningful on v2 tweets.

When I download other sample code like bird-elephant or twitter oauth, they all use the v1.1 media/upload but I’m not unlocked to use it. Isn’t it possible to post media with v2?!?

What way should I have to go?

Regards,
Sascha

1 Like

Thanks, @cloudworxx. Thanks for your feedback here.

It’s a bit confusing since we currently don’t have a v2 endpoint for available uploading media. However, you can do with the v2 API Tweet endpoint, which can attach previously uploaded media to a Tweet. Of course, you would have to have uploaded the media using the v1 media endpoint or Twitter Studio.

One bit of strangeness is you have essential access. So you will need elevated access before you a v1.1 endpoint.

What can we do to make our documentation here better? What were you expecting to see which you didn’t?

Thanks again!

Jessica

Hello, random user here:

Just making sure I understood this correctly then:

With the current Twitter API v2 in basic access I am not able to post a new tweet with an image media file?

Because I have not found any json examples in the twitter documentation which explicity posted image files, and in this post, another user claims it is not possible to upload images yet?

Hi 5_daydream,

yes, that’s correct - with v2 it’s actually not possible to upload media.

Hi @jessicagarson ,

thank you for your reply.

First of all - I find the actual construct complete confusing, because it’s not clear when I login, that I have no access to most of the endpoints. It’s not clearly explained, what I can do and what I cannot do. For example when I look at the features of Essential and Elevated, it looks almost the same. When I then create the endpoints and get the errors for essential restrictions, I really don’t know what to do anymore.

Happily I’ve been accepted for the Elevated Access - now I can post tweets with media.

The documentation could have been more descriptive for the media option on POST /2/tweets. Most of the options have examples, but not the media one. That’s very often the case. I think the documentation can here be made better.

Feel free to contact me if you have any questions :wink:

Thanks,
Sascha

1 Like

@5_daydreams Thanks for following up here. Our current implementation is a bit confusing, but you can attach previously uploaded media to a Tweet at this time. First, you would have to use the v1 media endpoint or Twitter Studio to accomplish this task.

If you do have media already uploaded, you can attach the media to a Tweet like this:

{"text": "Tweeting with media!", "media": {"media_ids": ["1455952740635586573"]}}

We are currently working on a v2 media endpoint, and I have passed your feedback onto the team.

Thanks, @cloudworxx, for your feedback. I can understand how it could be confusing right now, and the fact that you can attach media but not upload it is a bit tricky right now.

Currently we have this is the example listed on the API reference page:

{"text": "Tweeting with media!", "media": {"media_ids": ["1455952740635586573"]}}

We’ve considered adding a second integrate page for this endpoint with more context and examples. I’m interested in hearing from you if you think this would be worthwhile.

Best,

Jessica

Hi Jessica,

sorry for the late reply ;-( Have a lot to do the days before christmas :wink:

I’ve checked the documentation and I think your example helps a lot.
A second integrate page for this endpoint would be very helpful in my opinion.

Love to see, that developers are valued at twitter :wink:

Hope you have great holidays.

Best,
Sascha

2 Likes

No worries! Thank you so much for your feedback here! I’m in the same boat.

Best,

Jessica

Hey, I was trying to do the same, but encountered, that it is impossible to upload image with v2 access, right? I mean, if I want user to tweet something with an image, they need to access with old api v1.1 and it’s not possible for user to access with v2.0 and also upload the image right? I’m asking that, because I don’t understand what’s the use of media_ids if you can’t upload anything in v2 (to tweet already uploaded images? idk)

1 Like

Thanks, @lashaandghulad1.

I do appreciate your feedback here. The current implementation is confusing as you can only attach a previously uploaded media file using the v1.1 endpoint. However, you can access v1.1 endpoints with elevated access, which you can apply to within the developer portal. We’re hoping to have a v2 media endpoint shortly, but at this point, I don’t have a timeframe or ETA I can share yet.

Thanks for the quick response. I’m looking forward to it! I was looking at your roadmap, and was wondering, if it’s possible to add some queue or EST to see which features are next to be added or it’s not just like that easy? haha

I’ll pass on that suggestion to our team. Thanks!

1 Like

Hi.
Are there any updates on when the end point will be available for v2?
We applied for elevated access to get access to the v1 upload endpoint but the request was denied.
Is there any other way or workaround?

Appreciate your help. Thanks

We’re still working on this, but I’ll pass on this feedback internally.

I have submit a request of elevated access for other reasons but got rejected. Now I have to upload image and realized I need elevated access but I have already got rejected, can you help me with this? Thank you very much.

Same here. Trying to make a NFT Sales bot, and cant upload the jpg/png without API 1.1. Applied for elevated and got denied. I made a sales bot in December and was approved, another one in January and was approved, so whats changed now?

Hi, this has been hanging for more than a month, just wondering if there is any update on these, as there are a number of developers wish to have this functionality to work

Thanks, @wgg, for following up. I still don’t have much of an update as I haven’t released a v2 media endpoint, but this is still on our roadmap, and we are very much aware of this issue.

I see, since then, is there any current temp solution?
I have applied for “evaluated” for another reason earlier, and got rejected, and now for using v1.1’s media upload, I wish to apply “evaluated” again but it seems I don’t get anymore chance to apply again. is it possible for you to solve this?
thank you very much for your response anyway.