Tool

Upload media

The Twitter Upload Media tool allows users to effortlessly upload new media files to Twitter directly through an API interface. It supports precise media categorization to optimize the upload process for specific use cases such as video amplification.

twitter

Features

  • Supports uploading various media files by specifying file path or URL.
  • Enables media categorization with predefined options like 'amplify_video' to tailor media usage.
  • Integrates seamlessly with Twitter's official API for reliable media uploads.
  • Accepts file inputs from the temporary server directory (/tmp) for streamlined processing.
  • Provides clear documentation linking to Twitter's API reference for easy implementation.

Benefits

  • Simplifies media upload workflows for developers and social media managers.
  • Enhances content distribution by categorizing media for targeted amplification.
  • Reduces manual handling with automated uploads via API calls.
  • Ensures compatibility with Twitter’s latest media upload standards and protocols.
  • Supports efficient content management by allowing predefined media categories.

Description

Upload new media. See the documentation

Parameters

2 parameters

NameTypeDescription
filePathrequiredstring

Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.pdf).

media_categoryenum

The category representing the media usage.

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .