> For the complete documentation index, see [llms.txt](https://faq.finerymarkets.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://faq.finerymarkets.com/api-reference/rest-api/client-management/connectcounterparty.md).

# connectCounterparty

**POST api/connectCounterparty**<br>

{% tabs %}
{% tab title="Payload" %}

```json
{
    "counterpartyId": 5
}
```

{% endtab %}

{% tab title="200 OK" %}

```json
{}
```

{% endtab %}

{% tab title="400 Bad request" %}

```json
{
  "error": 0
}
```

{% endtab %}
{% endtabs %}

**Request parameters**

| Field name     | Type          | Description                                         |
| -------------- | ------------- | --------------------------------------------------- |
| counterpartyId | Efx::ClientId | Id of counterparty to invite or accept invite from. |
