This endpoint returns a media_id by default and can optionally return a media_key when a media_category is specified. These values are used by Twitter endpoints that accept images.
We need to specify 'media_category' parameter to make the media/upload endpoint return 'media_key'.
'media_key' is required when using media in Twitter Ads API.
Description
As explained in https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload
We need to specify 'media_category' parameter to make the
media/upload
endpoint return 'media_key'. 'media_key' is required when using media in Twitter Ads API.Testing