> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# ContactPartner

# Package: partners

# Namespace: PublicPartnerProfiles

# Method link: https://dev.wix.com/docs/api-reference/account-level/partners/partner-profile-v1/contact-partner.md

## Introduction

Reserved for Wix first-party client UI use. This endpoint is not intended for third-party integration.
Submits a contact request from a site visitor to a partner. Triggers a PartnerContacted domain event
and eventually sends a notification email to the partner.

---

## REST API

### Schema

```
 Method: contactPartner
 Description: Reserved for Wix first-party client UI use. This endpoint is not intended for third-party integration. Submits a contact request from a site visitor to a partner. Triggers a PartnerContacted domain event and eventually sends a notification email to the partner.
 URL: https://www.wixapis.com/partners/profile/v1/partner-profiles/{partnerId}/contact
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  email, subject, message, fullName
 Method parameters: 
   param name: email | type: email | description: Contact email address of the person submitting the request. | required: true | validation: format EMAIL
   param name: fullName | type: fullName | description: Full name of the person submitting the request. | required: true | validation: minLength 1, maxLength 100
   param name: message | type: message | description: Body of the contact message. | required: true | validation: minLength 1, maxLength 2000
   param name: subject | type: subject | description: Subject of the contact request. | required: true | validation: minLength 1, maxLength 200
 Return type: ContactPartnerResponse
  EMPTY-OBJECT {}


```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.partnerProfiles.partnerProfiles.contactPartner(partnerId, email, options)
 Description: Reserved for Wix first-party client UI use. This endpoint is not intended for third-party integration. Submits a contact request from a site visitor to a partner. Triggers a PartnerContacted domain event and eventually sends a notification email to the partner.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  partnerId, email, options.subject, options.message, options.fullName, options
 Method parameters: 
   param name: email | type: string | description: Contact email address of the person submitting the request. | required: true | validation: format EMAIL
   param name: options | type: ContactPartnerOptions  none | required: true 
        - name: subject | type: string | description: Subject of the contact request. | required: true | validation: minLength 1, maxLength 200
        - name: message | type: string | description: Body of the contact message. | required: true | validation: minLength 1, maxLength 2000
        - name: fullName | type: string | description: Full name of the person submitting the request. | required: true | validation: minLength 1, maxLength 100
   param name: partnerId | type: string | description: GUID of the partner to contact. | required: true | validation: format GUID
 Return type: PROMISE<ContactPartnerResponse>
  EMPTY-OBJECT {}


```

### Examples

### contactPartner
```javascript
import { partnerProfiles } from '@wix/partner-profiles';

async function contactPartner(partnerId,email,options) {
  const response = await partnerProfiles.contactPartner(partnerId,email,options);
};
```

### contactPartner (with elevated permissions)
```javascript
import { partnerProfiles } from '@wix/partner-profiles';
import { auth } from '@wix/essentials';

async function myContactPartnerMethod(partnerId,email,options) {
  const elevatedContactPartner = auth.elevate(partnerProfiles.contactPartner);
  const response = await elevatedContactPartner(partnerId,email,options);
}
```

### contactPartner (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { partnerProfiles } from '@wix/partner-profiles';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { partnerProfiles },
  // Include the auth strategy and host as relevant
});


async function contactPartner(partnerId,email,options) {
  const response = await myWixClient.partnerProfiles.contactPartner(partnerId,email,options);
};
```

---