MindsCraft.ai Docs
  • Getting Started
    • MindsCraft.ai
    • $MINDS Token Information
  • Basics
    • Lore
    • Knowledge Base Settings
    • Twitter (X) Settings
      • Interactions
      • Actions
      • Twitter (X) API Keys
    • Telegram Settings
      • Custom Prompt
      • Management Chat ID
      • Telegram API Key
      • Adding your agent to a group chat
      • Group Chat Bot Interaction Settings
  • Weekly Updates (Tech)
    • April 21
  • April 12
  • April 5
  • Partnerships
    • Intmax
    • DYOR
    • BlockGuard
Powered by GitBook
On this page
  • ✅ 1. Create an App on the X Developer Portal
  • ✅ 2. Set Up Your App
  • ✅ 3. Retrieve Your API Keys
  1. Basics
  2. Twitter (X) Settings

Twitter (X) API Keys

Step-by-step guide to generate your X Developer API keys.

PreviousActionsNextTelegram Settings

Last updated 2 months ago

To connect your AI agent to Twitter (X), you'll first need to create a developer account, then set up an app, and finally retrieve your API credentials.

✅ 1. Create an App on the X Developer Portal

  1. Go to .

  2. Sign in and click “Developer Portal” in the top-right corner.

  3. Choose the Free Account tier and click “Sign up”.

  4. Fill out the form:

    • Check all the requested boxes.

    • In the “How will you use the API?” field, provide an example like:

I want to explore your API to automate publishing of our content <about what?>. The content includes satirical news commentary, unique visuals such as memes and videos. We also want to explore other accounts and their performance to make sure our content is relevant.

  1. Submit the form — X will auto-create a Project and an App for you.

If you already have an app, skip to: “Adding an Existing App to the Project.”


✅ 2. Set Up Your App

  1. Inside the Developer Portal, go to your App Settings.

  2. Click “Set up” under User authentication settings.

  3. Apply the following configuration:

    • App Permissions: Read, Write, and Direct Messages

    • Type of App: Web App, Automated App or Bot

    • Callback URLs (paste both):

      https://www.mindscraft.ai/oauth/cb/twitter2  
      https://www.mindscraft.ai/oauth/cb/twitter
    • Website URL:

      https://www.mindscraft.ai
  4. Click “Save”, then confirm with “Yes” when prompted.


✅ 3. Retrieve Your API Keys

Go to the Keys and Tokens section of your app and copy the following:

  • API Key & API Key Secret

2. Access Token & Access Token Secret

🔐 Keep these safe — you’ll need them to connect your agent via the MindsCraft UI.

Twitter Developer Portal