# Confirm Connected Account Matches

```http
POST https://api.synup.com/api/v4/connected-accounts/confirm-matches
```

This API confirms suggested matches between locations in your account and profiles from Google My Business or Facebook Pages that were previously recommended.

**Behavior:**
- Requires base64-encoded match record IDs in a specific format, depending on the account type.
- Once confirmed, the system links the location with the external listing for ongoing management.

Source: https://developer.synup.com/api/connected-accounts/confirm-connected-account-matches

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Content-Type` | string | required |  |

## Request body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `input` | object | required |  |
| `input.matchRecordIds` | array of string | required | Array of base64 encoded match record IDs. For GMB accounts: Encode `GmbLocationMatchedData:{matchedDataDatabaseId}` For FB accounts: Encode `FbLocationMatchedData:{matchedDataDatabaseId}` |

## Example request

```bash
curl -X POST 'https://api.synup.com/api/v4/connected-accounts/confirm-matches' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "input": {
    "matchRecordIds": [
      "R21iTG9jYXRpb25NYXRjaGVkRGF0YTplNGZhNTFkYi04NWEwLTRjYzItYjdmMS01OWNhMzQ1NjlhZWM=",
      "R21iTG9jYXRpb25NYXRjaGVkRGF0YSI6MWFjMDdiN2ItMjUyYi00NTdkLTlhM2ItMTk4NzEzYzNkZjQz"
    ]
  }
}'
```

## Responses

| Status | Description |
| --- | --- |
| `200` | Match confirmation process completed |
| `400` | Invalid request - Malformed base64 strings or invalid format |
| `401` | Unauthorized - Invalid or missing API key |
| `403` | Forbidden - Insufficient permissions |
