# Finding service connector credentials for Emarsys (FTP)

## Required credentials

To [add a Patchworks connector](https://doc.wearepatchworks.com/product-documentation/patchworks-services/service-connectors/adding-a-service-connector) for **Emarsys**, the following details are required for authentication:

<table><thead><tr><th>Credential</th><th data-type="checkbox">Required</th><th>Note</th></tr></thead><tbody><tr><td><a href="#username-and-secret">Username</a></td><td>true</td><td>Generated when a <a href="#username-and-secret">new API is added to the Emarsys dashboard</a>.</td></tr><tr><td><a href="#username-and-secret">Secret</a></td><td>true</td><td>Generated when a <a href="#username-and-secret">new API is added to the Emarsys dashboard</a>.</td></tr><tr><td><a href="#ftp-details">FTP Host</a></td><td>true</td><td>-</td></tr><tr><td><a href="#ftp-details">FTP Port</a></td><td>true</td><td>-</td></tr><tr><td><a href="#ftp-details">FTP Username</a></td><td>true</td><td></td></tr><tr><td><a href="#ftp-details">FTP Password</a></td><td>true</td><td>-</td></tr><tr><td><a href="#ftp-details">FTP Mode</a></td><td>true</td><td>-</td></tr></tbody></table>

{% hint style="info" %}
Emarsys is both an API and FTP connector. Some data is uploaded to an S3 bucket (via FTP) for Emarsys to retrieve, but all other aspects are handled via the API.
{% endhint %}

## Obtaining credentials

The credentials listed above are needed so that Patchworks can access the required data in **Emarsys**. To obtain these details, follow the steps below.

### Username & Secret

**Step 1**\
In your browser, open the URL that you use to access the **Emarsys** dashboard.

**Step 2**\
Select **management** from the left-hand navigation menu, then select **user management**:\
\
![](https://content.gitbook.com/content/5mpqoXPMbUuPa8JpCLWe/blobs/Js1F3fn2nINyr5JLhRyY/emarsys%20user%20management%201.png)<br>

**Step 3**\
Select **API** from the left-hand navigation menu, then click the **create API user** button:

<figure><img src="https://content.gitbook.com/content/5mpqoXPMbUuPa8JpCLWe/blobs/TxolJMEtGulJ2yoFCyUO/emarsys%20user%20management%202.png" alt=""><figcaption></figcaption></figure>

**Step 4**\
When prompted, confirm that you wish to proceed:\
\
![](https://content.gitbook.com/content/5mpqoXPMbUuPa8JpCLWe/blobs/1cdVoKjdWeIh8zbupdCx/emarsys%20user%20management%202a.png)

**Step 5**\
A new API user is created - the username and secret are displayed:

<figure><img src="https://content.gitbook.com/content/5mpqoXPMbUuPa8JpCLWe/blobs/m1vWYicnv2Qz8xAft87c/emarsys%20user%20management%203.png" alt=""><figcaption></figcaption></figure>

**Step 6**\
Add this information to your password manager - these details can't be retrieved once this window is closed, so make sure they're safe.

### FTP details

Please contact Patchworks support for advice on the required FTP setup.
