> 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

# StartVerification

# Package: googleBusinessProfile

# Namespace: GbpLocationsService

# Method link: https://dev.wix.com/docs/api-reference/business-management/google-business-profile/gbplocation-v1/start-verification.md

## Permission Scopes:
Manage SEO Settings: SCOPE.PROMOTE.MANAGE-SEO

## Introduction

Starts verifying a location with Google.

Call Get Verification Options first to find out which methods Google allows for
the location, then specify one here.

For `ADDRESS`, `EMAIL`, `PHONE_CALL` and `SMS`, Google sends a PIN to the site
owner. Pass it to Complete Verification to finish.

For `AUTO`, Google verifies the location itself. There's no PIN and no second
call, and `verificationState` comes back as `VERIFIED` straight away.

`OFFLINE_VIDEO` can't be started here. The site owner records the video on
Google's page at `offlineVideoData.actionUrl`, returned by Get Verification
Options.

`VERIFIED` is narrower than it sounds. It means the location has business
authority and has entered Google's quality review. It does not mean the profile
is live and trusted: for that, check `hasVoiceOfMerchant` with Get Voice Of
Merchant. A location can be verified and still not be publicly visible.

---

## REST API

### Schema

```
 Method: startVerification
 Description: Starts verifying a location with Google.  Call Get Verification Options first to find out which methods Google allows for the location, then specify one here.  For `ADDRESS`, `EMAIL`, `PHONE_CALL` and `SMS`, Google sends a PIN to the site owner. Pass it to Complete Verification to finish.  For `AUTO`, Google verifies the location itself. There's no PIN and no second call, and `verificationState` comes back as `VERIFIED` straight away.  `OFFLINE_VIDEO` can't be started here. The site owner records the video on Google's page at `offlineVideoData.actionUrl`, returned by Get Verification Options.  `VERIFIED` is narrower than it sounds. It means the location has business authority and has entered Google's quality review. It does not mean the profile is live and trusted: for that, check `hasVoiceOfMerchant` with Get Voice Of Merchant. A location can be verified and still not be publicly visible.
 URL: https://www.wixapis.com/gbp/v1/locations/{locationId}:startVerification
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  method
 Method parameters: 
   param name: method | type: VerificationMethod | description: Verification methods supported by Google for a Business Profile location. | required: true 
      - enum:
           ADDRESS - Postcard to the business address
           EMAIL - Email with a PIN
           PHONE_CALL - Automated phone call with a PIN
           SMS - SMS with a PIN
           AUTO - Google-side instant verification (e.g. domain ownership)
           OFFLINE_VIDEO - Video recorded on Google's page at `offline_video_data.action_url`
   param name: methodInput | type: methodInput | description: Input the chosen method needs. Defaults come from the matching GetVerificationOptions option: - EMAIL: full address `user@domain`. May differ from `email_data` only when `email_data.user_name_editable` is true. - PHONE_CALL / SMS: the phone number; normally `phone_number` as returned. - ADDRESS: recipient contact name printed on the postcard (optional).  | validation: maxLength 255
 Return type: StartVerificationResponse
  - name: pendingVerificationId | type: string | description: Opaque GUID for this verification.  For a PIN-based method, pass this back to Complete Verification.  It's also set for automatic verification, which has no PIN and no Complete Verification step. So its presence doesn't tell you whether there's more to do: branch on `verificationState` instead, where `VERIFIED` means the flow is already finished.  | validation: maxLength 255
  - name: verificationState | type: VerificationState | description: Verification state after starting the process.  
     - enum: UNVERIFIED, PENDING_VERIFICATION, VERIFIED

 Possible Errors:
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: AUTO_VERIFICATION_NOT_ELIGIBLE | Description: Google advertised AUTO for this location via GetVerificationOptions and then refused it ("Location is not eligible for the AUTO method"). Typed separately from GOOGLE_API_CALL_FAILED so the caller can offer another method rather than a retry that will always fail (WIXSEO-4775).
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: UNSUPPORTED_VERIFICATION_METHOD | Description: Raised for a method that has no Google counterpart at all (VERIFICATION_METHOD_UNKNOWN), and for OFFLINE_VIDEO, which is completed on Google's page at offline_video_data.action_url, not via :verify. AUTO is NOT one of them any more — see the AUTO_VERIFICATION_NOT_ELIGIBLE error below.


```

### Examples

### Start verifying a location by phone
```curl
curl -X POST \
'https://www.wixapis.com/gbp/v1/locations/8034569321457853640:startVerification' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "method": "PHONE_CALL",
  "methodInput": "+1 415-555-0129"
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.gbp.locations.startVerification(locationId, method, options)
 Description: Starts verifying a location with Google.  Call Get Verification Options first to find out which methods Google allows for the location, then specify one here.  For `ADDRESS`, `EMAIL`, `PHONE_CALL` and `SMS`, Google sends a PIN to the site owner. Pass it to Complete Verification to finish.  For `AUTO`, Google verifies the location itself. There's no PIN and no second call, and `verificationState` comes back as `VERIFIED` straight away.  `OFFLINE_VIDEO` can't be started here. The site owner records the video on Google's page at `offlineVideoData.actionUrl`, returned by Get Verification Options.  `VERIFIED` is narrower than it sounds. It means the location has business authority and has entered Google's quality review. It does not mean the profile is live and trusted: for that, check `hasVoiceOfMerchant` with Get Voice Of Merchant. A location can be verified and still not be publicly visible.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  locationId, method
 Method parameters: 
   param name: locationId | type: string | description: Location GUID. This is Google's location identifier. | required: true | validation: minLength 1, maxLength 255
   param name: method | type: VerificationMethod | description: Verification methods supported by Google for a Business Profile location. | required: true 
      - enum:
           ADDRESS - Postcard to the business address
           EMAIL - Email with a PIN
           PHONE_CALL - Automated phone call with a PIN
           SMS - SMS with a PIN
           AUTO - Google-side instant verification (e.g. domain ownership)
           OFFLINE_VIDEO - Video recorded on Google's page at `offline_video_data.action_url`
   param name: options | type: StartVerificationOptions  none  
        - name: methodInput | type: string | description: Input the chosen method needs. Defaults come from the matching GetVerificationOptions option: - EMAIL: full address `user@domain`. May differ from `email_data` only when `email_data.user_name_editable` is true. - PHONE_CALL / SMS: the phone number; normally `phone_number` as returned. - ADDRESS: recipient contact name printed on the postcard (optional).  | validation: maxLength 255
 Return type: PROMISE<StartVerificationResponse>
  - name: pendingVerificationId | type: string | description: Opaque GUID for this verification.  For a PIN-based method, pass this back to Complete Verification.  It's also set for automatic verification, which has no PIN and no Complete Verification step. So its presence doesn't tell you whether there's more to do: branch on `verificationState` instead, where `VERIFIED` means the flow is already finished.  | validation: maxLength 255
  - name: verificationState | type: VerificationState | description: Verification state after starting the process.  
     - enum: UNVERIFIED, PENDING_VERIFICATION, VERIFIED

 Possible Errors:
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: AUTO_VERIFICATION_NOT_ELIGIBLE | Description: Google advertised AUTO for this location via GetVerificationOptions and then refused it ("Location is not eligible for the AUTO method"). Typed separately from GOOGLE_API_CALL_FAILED so the caller can offer another method rather than a retry that will always fail (WIXSEO-4775).
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: UNSUPPORTED_VERIFICATION_METHOD | Description: Raised for a method that has no Google counterpart at all (VERIFICATION_METHOD_UNKNOWN), and for OFFLINE_VIDEO, which is completed on Google's page at offline_video_data.action_url, not via :verify. AUTO is NOT one of them any more — see the AUTO_VERIFICATION_NOT_ELIGIBLE error below.


```

### Examples

### Start verifying a location by phone
Ask Google to call the business phone with a PIN.

```javascript
import { locations } from "@wix/gbp";

async function startVerification() {
  const response = await locations.startVerification(
    "8034569321457853640",
    "PHONE_CALL",
    { methodInput: "+1 415-555-0129" },
  );

  console.log(response.pendingVerificationId);
}

/* Promise resolves to:
 * {
 *   "pendingVerificationId": "verifications/xj3k9m2npq8w5rt7",
 *   "verificationState": "PENDING_VERIFICATION"
 * }
 */

```

### startVerification (self-managed)
Self-managed 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 { locations } from '@wix/gbp';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

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


async function startVerification(locationId,method,options) {
  const response = await myWixClient.locations.startVerification(locationId,method,options);
};
```

---