> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Manage a Wix Partner Profile

## Article: Manage a Wix Partner Profile

## Article Link: https://dev.wix.com/docs/api-reference/account-level/studio-workspace/skills/manage-a-wix-partner-profile.md

## Article Content:

# Manage a Wix Partner Profile

This recipe covers all 7 methods in the Wix **Partner Profile V1** API under Account Level → Studio Workspace.

**Docs:** https://dev.wix.com/docs/api-reference/account-level/studio-workspace/partner-profile-v1.md

**A 404 `NOT_FOUND` from Get Current Partner Profile means the account has no partner profile yet.** It isn't a wrong URL or an outage: don't try other URLs or search the docs again; tell the partner they have no profile and offer to create one.

---

## Key Concepts

The API has **two distinct layers**:

| Layer | Service | Auth | Purpose |
|---|---|---|---|
| Owner-facing | `PartnerProfiles` | Required | Read/write your own editable profile |
| Public-facing | `PublicPartnerProfiles` | None | Read verified published profiles |

- Every Wix partner account has exactly **one** profile.
- After a `Create` or `Update`, the profile enters a **verification queue**. Only verified changes appear in the `PublicPartnerProfile`.
- `revision` is required on `Update` to prevent conflicting writes — it increments by 1 on every update.
- The partner's `slug` is auto-generated from `businessName` at creation, but can be changed via the API.

---

## Base URL

```
https://www.wixapis.com/partners/profile/v1
```

Owner-facing calls (Create, Get Current, Update, Delete) are account-level: make them with account scope, with no site ID. The public reads need no authentication.

A partner's public profile page is `https://www.wix.com/studio/community/partners/{slug}` ([Partner Profile V1 introduction](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/partner-profile-v1/introduction.md)); give it when the partner asks for their profile link.

---

## Methods

---

### 1. Create Partner Profile

**`POST https://www.wixapis.com/partners/profile/v1/partner-profiles`**
**Permission:** `PARTNERS.PROFILE_CREATE`

Creates the partner profile for the authenticated account. Each account can only have one profile.

If the partner hasn't given the business name and country, ask for them before creating; never use placeholders. Creating publishes a profile that goes through verification and then appears on the partner's public page: if the partner asked to create it with these exact details, that request is the go-ahead; otherwise list what you will create and wait for their confirmation.

**Required fields:**
- `partnerProfile.address.country` — ISO country code (e.g. `"US"`)
- `partnerProfile.professionalInformation.businessName` — Agency/freelancer name

**Example request:**
```json
{
  "partnerProfile": {
    "address": {
      "country": "US",
      "city": "New York",
      "subdivision": "NY"
    },
    "professionalInformation": {
      "businessName": "Acme Studio",
      "tagline": "Award-winning Wix design studio",
      "about": "We build high-performing Wix sites for global brands.",
      "businessWebsite": "https://acme.studio",
      "email": "hello@acme.studio",
      "socials": {
        "linkedIn": "https://linkedin.com/company/acme-studio"
      }
    },
    "platforms": {
      "wix": true,
      "studio": true
    },
    "languages": ["en", "fr"]
  }
}
```

**Returns:** `{ partnerProfile: PartnerProfile }` — the created profile including its `id`, `revision`, `slug`, and `validation.validationStatus`.

**cURL:**
```bash
curl -X POST \
  'https://www.wixapis.com/partners/profile/v1/partner-profiles' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{ "partnerProfile": { "address": { "country": "US" }, "professionalInformation": { "businessName": "Acme Studio" } } }'
```

---

### 2. Get Current Partner Profile

**`GET https://www.wixapis.com/partners/profile/v1/partner-profiles/current`**
**Permission:** `PARTNERS.PROFILE_READ`

Retrieves the **editable** (owner-facing) profile of the authenticated partner. This is the working copy that may include unverified changes.

**No request body or path parameters required.**

**Returns:** `{ partnerProfile: PartnerProfile }` — includes `validation.validationStatus` (PENDING_VALIDATION, VALID, or NOT_VALID) and `validation.failedValidationReasons` if applicable.

If the account has no profile, it returns 404 with `applicationError.code` `NOT_FOUND`. Tell the partner they don't have a partner profile yet and offer to create one (method 1); don't treat it as an error.

To read the partner's own profile, run this script as its own call, unchanged:

```javascript
async function () {
  try {
    const res = await wix.request({
      scope: "account",
      method: "GET",
      url: "https://www.wixapis.com/partners/profile/v1/partner-profiles/current"
    });
    const p = (res.partnerProfile ? res : res.data || {}).partnerProfile || {};
    const v = p.validation || {};
    return {
      hasProfile: true,
      businessName: (p.professionalInformation || {}).businessName || "",
      slug: p.slug || "",
      profileUrl: p.slug ? "https://www.wix.com/studio/community/partners/" + p.slug : "",
      revision: p.revision,
      validationStatus: v.validationStatus || "",
      failedValidationReasons: v.failedValidationReasons || [],
      hideFromDirectory: Boolean(p.hideFromDirectory),
      partnerProfile: p
    };
  } catch (e) {
    const msg = String((e && e.message) || e);
    if (!/404|NOT_FOUND|not found/i.test(msg)) throw e;
    return {
      hasProfile: false,
      note: "This account has no partner profile yet: say so and offer to create one. The 404 is the API's answer, not an error or a wrong URL; don't try other URLs."
    };
  }
}
```

**cURL:**
```bash
curl -X GET \
  'https://www.wixapis.com/partners/profile/v1/partner-profiles/current' \
  -H 'Authorization: Bearer <token>'
```

---

### 3. Update Partner Profile

**`PATCH https://www.wixapis.com/partners/profile/v1/partner-profiles`**
**Permission:** `PARTNERS.PROFILE_UPDATE`

Updates the authenticated partner's profile. Supports **partial updates** — only the fields you send are changed. Uses optimistic concurrency: the current `revision` must be included.

**Required fields:**
- `partnerProfile.revision` — current revision string (get it from `Get Current Partner Profile`)

**Workflow:**
1. Run the Get Current Partner Profile script (method 2) to get the current `revision`. If it returns `hasProfile: false` (a 404 `NOT_FOUND`), the account has no partner profile to update: tell the partner they don't have one yet and offer to create it. Don't call Update, don't try other URLs, and don't create a profile on your own.
2. Build your update body with only the fields you want to change, plus the `revision`.
3. Confirm the change: if the partner asked for this exact change (for example "set my tagline to …"), that request is the go-ahead; otherwise say what will change and wait for their confirmation.
4. Call `Update Partner Profile`.
5. Check `Get Current Partner Profile` for `validation.validationStatus` (`VALID` or `NOT_VALID`), at most 3 times, spacing the calls out rather than firing them back to back. If it is still `PENDING_VALIDATION`, tell the partner the changes are saved and waiting for verification, and stop checking.

**Example — updating tagline and adding a scheduling link:**
```json
{
  "partnerProfile": {
    "revision": "3",
    "professionalInformation": {
      "tagline": "Wix Studio experts since 2018"
    },
    "scheduling": {
      "name": "Book a free consultation",
      "link": "https://calendly.com/acme-studio"
    }
  }
}
```

**If validation fails:** Check `validation.failedValidationReasons` — each entry identifies the affected field and the failure category. Fix the content and call `Update` again.

**cURL:**
```bash
curl -X PATCH \
  'https://www.wixapis.com/partners/profile/v1/partner-profiles' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{ "partnerProfile": { "revision": "3", "professionalInformation": { "tagline": "Wix Studio experts since 2018" } } }'
```

---

### 4. Delete Partner Profile

**`DELETE https://www.wixapis.com/partners/profile/v1/partner-profiles`**
**Permission:** `PARTNERS.PROFILE_DELETE`

Deletes the partner profile of the **currently authenticated** partner. No profile ID is needed — identity is determined by the auth token.

Deleting removes the partner from the directory. Before calling it, say that, end your reply with the question, and delete only after the partner confirms.

**No request body or path parameters.**

**Returns:** Empty `{}` on success.

**cURL:**
```bash
curl -X DELETE \
  'https://www.wixapis.com/partners/profile/v1/partner-profiles' \
  -H 'Authorization: Bearer <token>'
```

---

### 5. Get Public Partner Profile

**`GET https://www.wixapis.com/partners/profile/v1/partner-profiles/{publicPartnerProfileId}/public`**
**Permission:** None (unauthenticated)

Retrieves the **verified, published** profile as shown on public partner directory pages. This is the `PublicPartnerProfile` entity, not the editable working copy.

**Path parameter:**
- `publicPartnerProfileId` — The partner's profile ID (same `id` as in `PartnerProfile`)

**Returns:** `{ publicPartnerProfile: PublicPartnerProfile }` — only contains fields that have passed verification.

A 404 `NOT_FOUND` means no verified public profile has this ID (a wrong ID, or a profile not verified yet): say so; it isn't an outage.

**cURL:**
```bash
curl -X GET \
  'https://www.wixapis.com/partners/profile/v1/partner-profiles/<PARTNER_PROFILE_ID>/public' \
  -H 'Content-Type: application/json'
```

---

### 6. Find Public Partner Profile By Slug

**`GET https://www.wixapis.com/partners/profile/v1/partner-profiles/slug/{slug}/public`**
**Permission:** None (unauthenticated)

Retrieves a verified public profile by the partner's **URL slug** (e.g. `acme-studio`). Useful when you know the slug from a directory URL but not the profile ID.

**Path parameter:**
- `slug` — The partner's slug (case-sensitive)

**Returns:** `{ publicPartnerProfile: PublicPartnerProfile }`

Run this as its own call; set `SLUG` to the slug the user gave. It returns the fields people usually ask about and the whole profile; answer from it without checking the docs again. A 404 means no verified public profile has this slug.

```javascript
async function () {
  const SLUG = "acme-studio"; // the partner's slug, case-sensitive
  try {
    const res = await wix.request({
      scope: "account",
      method: "GET",
      url: "https://www.wixapis.com/partners/profile/v1/partner-profiles/slug/" + encodeURIComponent(SLUG) + "/public"
    });
    const p = (res.publicPartnerProfile ? res : res.data || {}).publicPartnerProfile || {};
    const info = p.professionalInformation || {};
    const addr = p.address || {};
    return {
      found: true,
      businessName: info.businessName || "",
      tagline: info.tagline || "",
      country: addr.country || "",
      city: addr.city || "",
      businessWebsite: info.businessWebsite || "",
      languages: p.languages || [],
      profileUrl: p.slug ? "https://www.wix.com/studio/community/partners/" + p.slug : "",
      publicPartnerProfile: p
    };
  } catch (e) {
    if (!/404|NOT_FOUND|not found/i.test(String((e && e.message) || e))) throw e;
    return { found: false, note: "No verified public partner profile has this slug: say so." };
  }
}
```

**cURL:**
```bash
curl -X GET \
  'https://www.wixapis.com/partners/profile/v1/partner-profiles/slug/acme-studio/public'
```

---

### 7. Contact Partner

**`POST https://www.wixapis.com/partners/profile/v1/partner-profiles/{partnerId}/contact`**
**Permission:** `PARTNERS.AGENCY_PROFILE_CONTACT`

> ⚠️ **Reserved for Wix first-party UI use.** This method is not intended for third-party integrations. Don't call it to message a partner.

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.

**Path parameter:**
- `partnerId` — ID of the partner to contact

**Required body fields:**
- `email` — Submitter's email address
- `subject` — Subject line (1–200 chars)
- `message` — Message body (1–2000 chars)
- `fullName` — Submitter's full name (1–100 chars)

**Returns:** Empty `{}` on success.

---

## PartnerProfile Fields Reference

| Field | Type | Writable | Notes |
|---|---|---|---|
| `id` | string (GUID) | Read-only | Auto-assigned |
| `revision` | string (uint64) | Read-only | Required on Update |
| `professionalInformation.businessName` | string | ✅ | Required on Create; drives slug |
| `professionalInformation.tagline` | string | ✅ | Subject to content verification |
| `professionalInformation.about` | string | ✅ | Subject to content verification |
| `professionalInformation.businessWebsite` | string | ✅ | URL is fetched and scanned; subject to verification |
| `address.country` | string (COUNTRY) | ✅ | Required on Create; ISO code |
| `slug` | string | ✅ | Auto-generated from `businessName`; can be changed |
| `hideFromDirectory` | boolean | ✅ | Hides from directory listing; public API access still works |
| `validation.validationStatus` | enum | Read-only | `PENDING_VALIDATION`, `VALID`, `NOT_VALID` |
| `validation.failedValidationReasons` | array | Read-only | Set when status is `NOT_VALID` |

The other writable fields (contact email, socials, address details, languages, platforms, services, portfolio, display settings and the scheduling link) are listed in [Update Partner Profile](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/partner-profile-v1/update-partner-profile.md); read it when the partner asks to change one of them.

---

## Verification Lifecycle

After **Create** or **Update**:

```
Partner saves changes
        ↓
validationStatus = PENDING_VALIDATION (usually resolves within seconds)
        ↓
   VALID ──────────────────────────────────► PublicPartnerProfile created/updated
        │
   NOT_VALID ──► check failedValidationReasons ──► fix fields ──► Update again
```

Fields subject to verification: `professionalInformation.about`, `professionalInformation.tagline`, `professionalInformation.businessWebsite` (URL content is fetched and scanned).