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
- Visit developer.twitter.com
- Apply for a developer account (approval may take a few days)
- Create a new project and app
- Navigate to your app settings
Step 2: Generate API Keys
- Go to "Keys and tokens" tab
- Generate API Key and API Secret Key
- Generate Access Token and Access Token Secret
- 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)