X (Twitter) API Integration

Connect your X (Twitter) account to OneScrip using Twitter API v2.

Prerequisites

  • Active X (Twitter) account
  • Approved Twitter Developer account
  • Basic understanding of API keys and tokens

Step 1: Create Twitter Developer Account

  1. Visit developer.twitter.com
  2. Apply for a developer account (approval may take a few days)
  3. Create a new project and app
  4. Navigate to your app settings

Step 2: Generate API Keys

  1. Go to "Keys and tokens" tab
  2. Generate API Key and API Secret Key
  3. Generate Access Token and Access Token Secret
  4. Set app permissions to "Read and Write"

Required Information for OneScrip

You'll need the following credentials to connect your X account:

API Key

Your app's API key from the Twitter Developer portal.

API Secret

Your app's API secret from the Twitter Developer portal.

Access Token

Your account's access token for posting on your behalf.

Access Token Secret

Your account's access token secret for authentication.

Security Notes

  • Never share your API keys publicly
  • OneScrip encrypts and securely stores your credentials
  • You can revoke access at any time from your Twitter Developer dashboard
  • Regularly review your connected applications for security

Troubleshooting

Common Issues

401 Unauthorized Error

  • Check that your API keys are correct
  • Verify your app has "Read and Write" permissions
  • Ensure your access tokens are valid

403 Forbidden Error

  • Your developer account may not be approved
  • Check if your app has the required permissions
  • Verify your account is not suspended

Rate Limiting

  • Twitter API has rate limits
  • Consider upgrading your Twitter API plan for higher limits

Next Steps

Once connected, you can:

  • Schedule posts to X
  • Use AI to generate content
  • Analyze your posting performance
  • Manage multiple X accounts (with separate API keys)

Start by creating an account

OneScrip’s basic features are available for free. You can upgrade or cancel your plan at any time.

Sign up for free