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

# MeWe setup

> Register the MeWe application and give PostQueen its keys

MeWe hands out API access by application, so the first step here is getting into their developer program, and the rest is the app id and API key that follow.

<Note>
  MeWe's Developer Program is currently in beta with limited spots. Your application will be reviewed, and selected participants will be granted access to the API.
</Note>

## Set up MeWe

<Steps>
  <Step title="Create a MeWe Developer Account">
    Head over to the [MeWe Developer Portal](https://dev.mewe.com/) and sign in with your MeWe account.

    Submit an application to join the MeWe Developer Program. The MeWe team will review your request and grant access once approved.
  </Step>

  <Step title="Create a new application">
    Once approved, go to your [MeWe Developer Settings](https://mewe.com/developer) and create a new application.

    When selecting the application type, choose **Standalone App** since PostQueen operates as an external application that connects to MeWe's API.

    Configure the permissions your application requires for posting and group access.
  </Step>

  <Step title="Configure OAuth2 Redirect URI">
    <Snippet file="oauth2redirect.mdx" />

    **Your MeWe OAuth2 Redirect URI:**

    * Production: `https://postqueen.example.com/integrations/social/mewe`
    * Local development: `http://localhost:4200/integrations/social/mewe`
    * Docker: `http://localhost:4007/integrations/social/mewe`

    <Warning>
      MeWe requires HTTPS for redirect URIs in production. Make sure your PostQueen instance is served over HTTPS.
    </Warning>
  </Step>

  <Step title="Copy your credentials">
    From your MeWe Developer Settings, copy the **App ID** and **API Key** for your application, and add them to your `.env` file:

    ```env theme={"system"}
    MEWE_APP_ID="your_app_id"
    MEWE_API_KEY="your_api_key"
    ```

    <Warning>
      Keep your API Key confidential. Never expose it in client-side code or public repositories. All API requests using the API Key should originate from your backend server.
    </Warning>
  </Step>

  <Step title="Add MeWe channel in PostQueen">
    Restart PostQueen to apply the new environment variables. If you are using Docker Compose, run `docker compose down` and then `docker compose up`.

    Go to the PostQueen web interface, click on "Add Channel", and select **MeWe**. You will be redirected to MeWe to authorize the connection.

    Once authorized, you can choose to post to your **Timeline** or to a specific **Group** when creating posts.
  </Step>
</Steps>

<Check>
  The channel is in the left sidebar with its avatar and name. That is the whole confirmation: if it is in the list, she can post to it.
</Check>

## Next steps

<CardGroup cols={2}>
  <Card title="What she can post to MeWe" icon="https://mintcdn.com/forceplay/LL5FipRv-7nhg1To/images/channels/mewe.svg?fit=max&auto=format&n=LL5FipRv-7nhg1To&q=85&s=69a11ffad607bfb74d7e510cc9191f84" href="/providers/mewe" width="64" height="64" data-path="images/channels/mewe.svg">
    Limits, post types and settings
  </Card>

  <Card title="Configuration reference" icon="list" href="/configuration/reference">
    Every variable she reads
  </Card>

  <Card title="Connect errors" icon="plug-circle-xmark" href="/troubleshooting/oauth-connect">
    Invalid state, invalid\_grant and the rest
  </Card>

  <Card title="Another channel" icon="plug" href="/providers/overview">
    Every network, and what each one asks for
  </Card>
</CardGroup>
