> ## Documentation Index
> Fetch the complete documentation index at: https://davinci.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# X

> Setup your X account so that your users will be able to post on their X accounts via Social Media Suite Extension

## X Configuration

Follow these steps to setup your X Developer Account and include your API keys in Davinci AI.

<Steps>
  <Step title="Step 1">
    Go to <a href="https://developer.x.com/" target="_blank">X Developer Portal</a> and sign in there, afterwards click on the **Developer Portal** link.

    <img src="https://mintcdn.com/davinci/3pda1EWrnfASIwNh/images/extensions/social-media/xai-1.png?fit=max&auto=format&n=3pda1EWrnfASIwNh&q=85&s=35afaea941148ad961e33c0317cce6b7" width="460" height="189" data-path="images/extensions/social-media/xai-1.png" />
  </Step>

  <Step title="Step 2">
    Create a new Project and a new APP within that project and name it as you prefer. X free tier allows you to create only 1 app, which is enough for Social Media Extension.
  </Step>

  <Step title="Step 3">
    Select your newly created APP, click on the **Settings** tab and under **User authentication settings** section click on the **Edit** button.

    <img src="https://mintcdn.com/davinci/3pda1EWrnfASIwNh/images/extensions/social-media/xai-2.png?fit=max&auto=format&n=3pda1EWrnfASIwNh&q=85&s=5f23cee907f4f1e855bc589f3e43438c" width="1880" height="958" data-path="images/extensions/social-media/xai-2.png" />
  </Step>

  <Step title="Step 4">
    Configure your APP as shown below, make sure that your callback URL ends with **/app/oauth/callback/twitter** and click on **Save** button.

    <img src="https://mintcdn.com/davinci/3pda1EWrnfASIwNh/images/extensions/social-media/xai-3.png?fit=max&auto=format&n=3pda1EWrnfASIwNh&q=85&s=b55b128043f377789b4a7f645c1ec612" width="658" height="817" data-path="images/extensions/social-media/xai-3.png" />

    <img src="https://mintcdn.com/davinci/3pda1EWrnfASIwNh/images/extensions/social-media/xai-4.png?fit=max&auto=format&n=3pda1EWrnfASIwNh&q=85&s=c6b8723cd01ef21ce2d2b9e2f52834f2" width="627" height="547" data-path="images/extensions/social-media/xai-4.png" />
  </Step>

  <Step title="Step 5">
    1. Next, while you have your APP selected, click on the **Keys and Tokens** tab, under the **OAuth 2.0 Client ID and Client Secret** section, copy your **Client ID** and **Client Secret**.

    <img src="https://mintcdn.com/davinci/3pda1EWrnfASIwNh/images/extensions/social-media/xai-5.png?fit=max&auto=format&n=3pda1EWrnfASIwNh&q=85&s=cb1223955ef17fb58151f1817b505b51" width="964" height="862" data-path="images/extensions/social-media/xai-5.png" />

    2. Go to **AI Settings** page in Admin Panel, click on **Extensions** tab, and select **Social Media Suite** extension.
    3. Under **Twitter Settings** section, include your **Twitter Client ID** and **Twitter Client Secret** which you just copied earlier.

    <img src="https://mintcdn.com/davinci/3pda1EWrnfASIwNh/images/extensions/social-media/xai-6.png?fit=max&auto=format&n=3pda1EWrnfASIwNh&q=85&s=2f8245787c610963f169ad0120ed525b" width="704" height="776" data-path="images/extensions/social-media/xai-6.png" />
  </Step>

  <Step title="Step 6">
    1. Next, while you are at the **Keys and Tokens** tab, under the **Authentication Tokens** section, generate and copy your **Access Token** and **Secret Token**.

    <img src="https://mintcdn.com/davinci/3pda1EWrnfASIwNh/images/extensions/social-media/xai-7.png?fit=max&auto=format&n=3pda1EWrnfASIwNh&q=85&s=4082aa3086c726e4de8522b495aa4e44" width="945" height="840" data-path="images/extensions/social-media/xai-7.png" />

    2. Go to **AI Settings** page in Admin Panel, click on **Extensions** tab, and select **Social Media Suite** extension.
    3. Under **Twitter Settings** section, include your **Twitter Access Token** and **Twitter Access Token Secret** which you just copied earlier.

    <img src="https://mintcdn.com/davinci/3pda1EWrnfASIwNh/images/extensions/social-media/xai-8.png?fit=max&auto=format&n=3pda1EWrnfASIwNh&q=85&s=7c648f730de2ba3be6fc2de23bc746a3" width="706" height="775" data-path="images/extensions/social-media/xai-8.png" />
  </Step>

  <Step title="Step 7">
    1. The last step, while you are at the **Keys and Tokens** tab, under the **Consumer Keys** section, generate and copy your **API Key** and **Secret Key**.

    <img src="https://mintcdn.com/davinci/3pda1EWrnfASIwNh/images/extensions/social-media/xai-9.png?fit=max&auto=format&n=3pda1EWrnfASIwNh&q=85&s=2413244f77c18ba28fe57103e27b1610" width="945" height="840" data-path="images/extensions/social-media/xai-9.png" />

    2. Go to **AI Settings** page in Admin Panel, click on **Extensions** tab, and select **Social Media Suite** extension.
    3. Under **Twitter Settings** section, include your **Twitter API Key** and **Twitter API Secret** which you just copied earlier.

    <img src="https://mintcdn.com/davinci/3pda1EWrnfASIwNh/images/extensions/social-media/xai-10.png?fit=max&auto=format&n=3pda1EWrnfASIwNh&q=85&s=63a195ed35322c3b30146a2d583b0186" width="701" height="774" data-path="images/extensions/social-media/xai-10.png" />
  </Step>

  <Step title="Step 9">
    After you have included all API keys in the **Twitter Settings** section, click **Save** button.
  </Step>

  <Step title="Step 9">
    You know have completed the X configuration.
  </Step>
</Steps>
