> 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=""><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=""><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=""><figcaption></figcaption></figure>

5\. If you don't have an existing one, you can click on 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.getmesa.com/connect/rebuy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
