Getting X (Twitter) API Credentials - Step by Step
Step 1: Go to the Developer Portal
- Open your browser and go to: https://developer.twitter.com/en/portal/dashboard
- Log in with your @OwlCoder Twitter account
- If prompted, apply for a developer account (it’s free and usually approved instantly)
Step 2: Create a New Project & App
- Click ”+ Create Project” (or use an existing one)
- Give it a name like:
Blog Auto-Tweet - Select use case: “Making a bot”
- Provide a description:
Automatically tweets when new blog posts are published - Click “Next” through the prompts
Step 3: Create an App
- Give your app a name:
nightowlcoder-blog-bot - Click “Complete”
Step 4: Get Your API Keys
You’ll see your API Key and API Key Secret - SAVE THESE!
- Copy the API Key somewhere safe
- Copy the API Key Secret somewhere safe
- Click “Yes, I saved them”
Step 5: Enable Write Permissions
- In your app dashboard, click “Settings”
- Scroll to “User authentication settings”
- Click “Set up”
- Under “App permissions”, select “Read and Write”
- Fill in required fields:
- Type of App: Web App
- Callback URI:
https://nightowlcoder.github.io/ - Website URL:
https://nightowlcoder.github.io/
- Click “Save”
Step 6: Generate Access Tokens
- Go to the “Keys and tokens” tab
- Under “Access Token and Secret”, click “Generate”
- Copy these values:
- Access Token
- Access Token Secret
✅ You should now have 4 values:
- ✓ API Key (Consumer Key)
- ✓ API Key Secret (Consumer Secret)
- ✓ Access Token
- ✓ Access Token Secret
Keep these safe! We’ll add them to GitHub in the next step.
Once you have all 4 values, let me know and I’ll set up the GitHub Action!