API Credentials for Twitter

Guide to obtaining tokens, keys, and connections.

Connecting to the X API requires you to follow a series of steps to obtain the necessary credentials. Below is a step-by-step guide to help you get them.

Register a project

  1. 1

    Go to https://developer.x.com

  2. 2

    Click on the 'Developer Portal' section.

  3. 3

    Click the 'Create Project' button.

  4. 4

    Under 'Project name', enter a name for your project and click 'Next'. For example: 'botize'.

  5. 5

    Under 'Select a use case', choose a use case and click 'Next'. For example: 'Making a bot'.

  6. 6

    Under 'Project description', describe how you plan to use the API and click 'Next'. For example: 'We use the API to automate tasks between different services on Botize, our automation platform. Users can connect their apps and create workflows that trigger specific actions, such as sending data, posting content, or syncing information across platforms.'

Register an app

  1. 1

    Under 'App name', enter a unique name for your application and click 'Next'. For example: 'botize123'.

  2. 2

    As a result, X will provide you with an 'API Key', 'API Key Secret', and a 'Bearer Token', which you won't need just yet. Click the 'App Settings' button.

Configure read and write access

We will configure your API access to allow reading and writing posts and direct messages. However, keep in mind that X's free API is limited to reading posts only. If you need to publish content or send direct messages, you must subscribe to X's paid API.

  1. 1

    Scroll down to the 'User authentication settings' section and click the 'Set up' button.

  2. 2

    Under 'App permissions', select the option 'Read and write and Direct message'.

  3. 3

    Under 'Type of App', select 'Web App, Automated App or Bot'.

  4. 4

    Under 'Callback URI / Redirect URL', enter: https://botize.com/callback/twitter

  5. 5

    Under 'Website URL', enter: https://botize.com

  6. 6

    Click the 'Save' button.

  7. 7

    Confirm the prompt 'Changing permissions might affect your App' by clicking 'Yes'.

  8. 8

    X will then provide you with a 'Client ID' and a 'Client Secret', which are not needed for this process. Click the 'Done' button.

Get the 'API Key' and 'API Key Secret'

  1. 1

    Click on the 'Keys and tokens' section at the top.

  2. 2

    Click the 'Regenerate' button in the 'Consumer Keys' section.

  3. 3

    X will provide an 'API Key' and an 'API Key Secret'. Save these credentials in a safe place and click the button 'Yes, I saved them'.

Get the 'Access Token' and 'Access Token Secret'

  1. 1

    Click the 'Generate' button in the 'Authentication Tokens' section.

  2. 2

    X will provide you with an 'Access Token' and an 'Access Token Secret'. Save these credentials in a safe place and click the button 'Yes, I saved them'.