X (Twitter) API Integration

X (Twitter) API Integration

How Volumn.ai connects to the X API to power all agent actions.

5 min read

OAuth 2.0 Connection

Volumn.ai uses X's OAuth 2.0 PKCE flow to securely connect your account. We never store your X password — only the access token required to perform authorised actions.

API Endpoints Used

Volumn.ai uses the following X API v2 endpoints:

  1. 1POST /2/tweets — publish a new tweet or thread.
  2. 2GET /2/tweets/search/recent — search for recent tweets by topic.
  3. 3GET /2/users/:id/tweets — fetch tweets from a monitored account.
  4. 4GET /2/tweets/:id/liking_users — extract users who liked a tweet.
  5. 5POST /2/dm_conversations — send a direct message.

Rate Limits

The X API enforces rate limits. Volumn.ai queues all requests and respects these limits automatically. If you hit a rate limit, agents will pause and resume after the reset window.

💡

Upgrading your X API tier (Basic or Pro) significantly increases rate limits and allows more agent actions per day. Contact X Developer Portal for details.