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

# Connect X (Twitter) for Social Posting

> Create your own X developer app and connect your X account to publish from Hiveku

Hiveku posts to X through your own X developer app. Setup takes 10–15 minutes and there is no review process — but X's API is **pay-per-use**, so you'll add a payment method to your X developer account.

<Info>
  What it costs: roughly **$0.015 per post**, or about **$0.20 for a post containing a link**. A typical small business posting daily spends a few dollars a month. You prepay credits in X's developer console and posting draws them down.
</Info>

## Create the X App

<Steps>
  <Step title="Sign up as an X developer">
    Go to [developer.x.com](https://developer.x.com) and sign in with your **business's X account** (posts publish as whoever authorizes). Complete the self-serve developer signup.
  </Step>

  <Step title="Add a payment method and credits">
    In the developer console, add a payment method and purchase a small amount of API credits. Nothing works until credits exist.
  </Step>

  <Step title="Create a Project and App">
    Create a Project, then an App inside it. Name them after your company.
  </Step>

  <Step title="Set up user authentication">
    In the App's **User authentication settings** click **Set up**:

    * **OAuth 2.0**: enabled
    * **Type of App**: Web App, Automated App or Bot
    * **Callback URI**: paste Hiveku's redirect URI:

    ```
    https://app.hiveku.com/api/oauth/x/callback
    ```

    * **Website URL**: your website

    Save, and copy the **OAuth 2.0 Client ID** and **Client Secret** shown.
  </Step>
</Steps>

## Connect in Hiveku

<Steps>
  <Step title="Open the connect dialog">
    Go to **Marketing > Social > Accounts** and click **Connect Account** on the X card.
  </Step>

  <Step title="Register your app and authorize">
    Paste the Client ID and Client Secret into a new OAuth app entry, then click **Connect with your app** and approve the popup while logged into your business's X account.
  </Step>
</Steps>

## Good to Know

* **280-character limit.** Hiveku blocks longer posts before they reach X — use the per-platform override in the composer to write a shorter X version of a long post.
* **Media:** up to 4 images or 1 video per post.
* **Links cost more.** X charges \~$0.20 for posts containing a URL versus ~$0.015 for plain posts. If you post links heavily, factor that into your credit balance.
* X sessions refresh automatically in the background. If X ever revokes access (password change, credit exhaustion), Hiveku notifies you to reconnect.
