# 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="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2Ft12xZ5emwLlcXqa5coX9%2Fimage.png?alt=media&#x26;token=a921583c-9983-486f-aa40-96a74f98a666" alt=""><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="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FXLmeVB25AryTw09KAKaB%2FAS-REBUY-SETTINGS.png?alt=media&#x26;token=1c401bcc-4214-4ba1-8bee-fb6c3c56a4d1" alt=""><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="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FPdaBZM3iOfqVK0P6wYIV%2FAS-REBUY-COPYKEY1.png?alt=media&#x26;token=ae6e45dd-640c-4b09-8a05-aea8c3acae15" alt=""><figcaption></figcaption></figure>

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

![](https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FzrkqDzdzGY8p26mv3zzK%2FAS-REBUY-CREATEKEY1.png?alt=media\&token=bb86484d-74b1-45dc-a17d-ede719576199)

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.
