# Generating a refresh token for eBay

## Introduction

When adding an instance for the [eBay connector](/product-documentation/connectors-and-instances/patchworks-connectors/ebay-prebuilt-connector.md), you are required to provide a `refresh token`. The instructions below guide you through the steps required to generate this token manually. In doing so, you remove the need to allow Patchworks direct access to your eBay account.

## The steps

{% stepper %}
{% step %}
**Gather required information**

To obtain your `client id` and `client secret`, you need to create and configure an application in the eBay Developer Portal. For more information, please refer to Ebay's guide: [Getting your OAuth credentials](https://developer.ebay.com/api-docs/static/oauth-credentials.html)
{% endstep %}

{% step %}

###

{% endstep %}
{% endstepper %}


---

# Agent Instructions: 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://doc.wearepatchworks.com/product-documentation/connectors-and-instances/patchworks-connectors/ebay-prebuilt-connector/generating-a-refresh-token-for-ebay.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.
