> For the complete documentation index, see [llms.txt](https://docs.getmesa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getmesa.com/connect/rebuy.md).

# Rebuy

## Connection <a href="#connect" id="connect"></a>

When you're setting up your first workflow with Rebuy, you'll need a Rebuy API Key.

<figure><img src="/files/0HjEThm2Z6XRik1dw9Gf" alt="Screenshot of the Rebuy step in the MESA workflow builder prompting for a Rebuy API Key. Spotlight the API Key field and Add Connection button."><figcaption></figcaption></figure>

1\. To get a Rebuy API Key, you will need to login into your Rebuy account: <https://rebuyengine.com/account>.

2\. Once logged into your Rebuy account, go to the Settings page.

<figure><img src="/files/4OhVVQlpPxdqChVdxcjH" alt="Screenshot of the Rebuy account dashboard after logging in. Spotlight the Settings page navigation."><figcaption></figcaption></figure>

3\. Click on API Keys under Account.

4\. If you have an existing API Key, you can click on the copy icon under API Key.

<figure><img src="/files/AZFtibP7yooyDMclGF43" alt="Screenshot of the Rebuy Settings API Keys page under Account showing an existing key. Spotlight the copy icon under API Key."><figcaption></figcaption></figure>

5\. If you don't have an existing one, you can click on the Create new API Key button.

![Screenshot of the Rebuy Settings API Keys page under Account with no existing key. Spotlight the Create new API Key button.](/files/gQwMvvn1mQnowAP7IjUV)

6\. If you are creating a new API Key, you can name it MES&#x41;**.** Then, click on Create Key.

7\. Back into your MESA workflow with the Rebuy step, paste the copied API Key values into the step's API Key field.

8\. Then, click on Add Connection and you are all set.
