> For the complete documentation index, see [llms.txt](https://doc.wearepatchworks.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.wearepatchworks.com/product-documentation/patchworks-services/service-systems/supported-service-systems/torque-service-connector/finding-service-connector-credentials-for-torque.md).

# Finding service connector credentials for Torque

## Required credentials

To [add a Patchworks connector](/product-documentation/patchworks-services/service-connectors/adding-a-service-connector.md) for **Torque**, 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="#authentication-token">Authentication Token</a></td><td>true</td><td>-</td></tr><tr><td><a href="#url">URL</a></td><td>true</td><td>-</td></tr><tr><td><a href="#api-version">API Version</a></td><td>true</td><td>-</td></tr><tr><td><a href="#client-id-client-group-site-id-ship-dock-config-id-owner-id-and-pallet-config">Client Id</a></td><td>false</td><td>-</td></tr><tr><td><a href="#client-id-client-group-site-id-ship-dock-config-id-owner-id-and-pallet-config">Client Group</a></td><td>false</td><td>-</td></tr><tr><td><a href="#client-id-client-group-site-id-ship-dock-config-id-owner-id-and-pallet-config">Site ID</a></td><td>false</td><td>-</td></tr><tr><td><a href="#client-id-client-group-site-id-ship-dock-config-id-owner-id-and-pallet-config">Ship Dock</a></td><td>false</td><td>-</td></tr><tr><td><a href="#client-id-client-group-site-id-ship-dock-config-id-owner-id-and-pallet-config">Config ID</a></td><td>false</td><td>-</td></tr><tr><td><a href="#client-id-client-group-site-id-ship-dock-config-id-owner-id-and-pallet-config">Owner ID</a></td><td>false</td><td>-</td></tr><tr><td><a href="#client-id-client-group-site-id-ship-dock-config-id-owner-id-and-pallet-config">Pallet Config</a></td><td>false</td><td>-</td></tr></tbody></table>

## Prerequisites

Please ensure the Patchworks IP address has been whitelisted inside your instance of **Torque**. The required IP address is:

```
159.65.213.3 
```

{% hint style="warning" %}
Please contact Torque Support if you need assistance with this step.
{% endhint %}

## Obtaining credentials

All values for required and optional fields are supplied by **Torque**. Please contact their support team or your representative if these have not already been provided to you.&#x20;

For reference, some notes on these credentials are below.

### Authentication token

We require an **authentication token** to authenticate and connect to your specific instance of Torque.&#x20;

This value is supplied by Torque. The token may differ between **live** and **staging** instances so please ensure you are using the relevant token for the environment you are trying to connect to.

### URL

The Torque system uses two slightly different URLs depending on which environment you are connecting to:

| Environment | URL                                      |
| ----------- | ---------------------------------------- |
| Live        | <https://wmsapi.torque.eu/torqueapi>     |
| Staging     | <https://wmsapi.torque.eu/torqueapitest> |

### API version

Currently, there is only one version of the Torque API: V1, though we have included it as an option in case Torque increments the version in future.&#x20;

Until such time that multiple versions are available, you can disregard this field and leave it set to the default value.  &#x20;

### Client Id, Client Group, Site ID, Ship Dock, Config ID, Owner ID & Pallet Config

These fields are not strictly required. If they are needed, Torque will provide the required values together with your  API token.&#x20;

If these fields are not set, the API uses default values for your Torque instance. These fields can be edited at a later date by [updating the settings for your Torque connector in Patchworks](/product-documentation/patchworks-services/service-connectors/updating-a-service-connector.md).
