> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentlinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sync search connection

> Refresh the selected Google performance property or Bing backlink sample.

`sync_search_connection`

Refresh the selected Google performance property or Bing backlink sample. Requires a browser-approved connection. This does not enroll monitoring.

<Note>Available in the deployed MCP and HTTP bundle. Confirm access and inputs with your connected catalog. Workspace scopes and enabled providers still apply.</Note>

| Access            | Behavior              |
| ----------------- | --------------------- |
| `discovery:write` | Writes or admits work |

This operation changes saved state. Review its inputs and retry behavior before calling.

## Example request

Connect through [MCP](/guides/connect-mcp), [CLI](/guides/connect-cli), or [HTTP](/guides/connect-http). Replace example identifiers with records from your workspace.

<CodeGroup>
  ```json MCP theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "sync_search_connection",
      "arguments": {
        "connectionId": "sc_example"
      }
    }
  }
  ```

  ```bash CLI theme={null}
  agentlinkops call sync_search_connection --args '{"connectionId":"sc_example"}'
  ```

  ```bash HTTP theme={null}
  curl "$AGENTLINKOPS_API_URL/v1/commands/sync_search_connection" \
    -H "Authorization: Bearer $AGENTLINKOPS_API_KEY" \
    -H 'Content-Type: application/json' \
    --data '{"connectionId":"sc_example"}'
  ```
</CodeGroup>

## Returned result

Illustrative data validated against the documented response schema. IDs and dates are examples, not a live account capture. MCP returns this data in `structuredContent` and in a text content block; generic HTTP and CLI return the JSON result directly.

```json theme={null}
{
  "connection": {
    "id": "connection_example",
    "project_id": "pr_example",
    "provider": "bing",
    "status": "connected",
    "property": "https://example.com/",
    "last_sync_at": "2026-09-13T12:00:00.000Z",
    "next_sync_at": "2026-09-13T12:00:00.000Z",
    "last_error": null,
    "coverage": {
      "state": "partial",
      "reason": "provider_sample_not_live_verification",
      "savedRows": 1
    },
    "snapshot_id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "capability": "backlinks",
    "created_at": "2026-09-13T12:00:00.000Z",
    "updated_at": "2026-09-13T12:00:00.000Z"
  },
  "rowCount": 1
}
```

## Input fields

Omit optional fields when you do not want to supply them. Null is accepted only where listed. Unknown input properties are rejected.

| Field          | Type    | Presence | Meaning and constraints                                                                             |
| -------------- | ------- | -------- | --------------------------------------------------------------------------------------------------- |
| `connectionId` | string  | Required | Identifier of the connection returned by its create or list operation. minLength: 1; maxLength: 200 |
| `continue`     | boolean | Optional | The continue value; allowed values and bounds are specified in this schema. default: false          |

### Validation and omitted values

A human administrator must first connect the provider and select an accessible property covering the project. Agents with discovery:write can then request a bounded sync.

Google returns page/query performance for the reader date window. Bing returns sampled inbound links with collection coverage. Provider data does not start monitoring.

Omit continue to start a fresh collection. Use continue:true only when Bing coverage.nextProviderCursor indicates another provider batch and coverage.limitReached is false. Continuation appends to the same snapshot and preserves earlier row IDs; the saved snapshot holds at most 10,000 rows.

A fresh sync replaces the saved snapshot. Import any rows you need before starting a new collection.

### Defaults when omitted

| Field      | Default |
| ---------- | ------- |
| `continue` | `false` |

## Output fields

Fields inside optional or nullable parents apply only when that parent exists. [Common schema conventions](/reference/schemas) explain evidence states, empty lists and extensions.

| Field                     | Type          | Presence | Meaning and constraints                                                           |
| ------------------------- | ------------- | -------- | --------------------------------------------------------------------------------- |
| `connection`              | object        | Required |                                                                                   |
| `connection.id`           | string        | Required | Resource identifier returned by the operation.                                    |
| `connection.project_id`   | string        | Required | Project that owns this record.                                                    |
| `connection.provider`     | string        | Required | values: "google", "bing"                                                          |
| `connection.status`       | string        | Required | Resource lifecycle status.                                                        |
| `connection.property`     | string / null | Required |                                                                                   |
| `connection.last_sync_at` | string / null | Required |                                                                                   |
| `connection.next_sync_at` | string / null | Required |                                                                                   |
| `connection.last_error`   | string / null | Required |                                                                                   |
| `connection.coverage`     | object / null | Required | Dataset scope and completeness, including limits on what these results establish. |
| `connection.snapshot_id`  | string / null | Required | Identifier returned by the related operation.                                     |
| `connection.capability`   | string        | Required | values: "search\_performance", "backlinks"                                        |
| `connection.created_at`   | string        | Required | UTC timestamp when the record was created.                                        |
| `connection.updated_at`   | string        | Required | UTC timestamp of the last record update.                                          |
| `rowCount`                | integer       | Required | minimum: 0; maximum: 9007199254740991                                             |

[Download input schema](/schemas/sync_search_connection.input.json) · [Download output schema](/schemas/sync_search_connection.output.json)

## Errors and retries

This command is not annotated idempotent. After a timeout, inspect existing state before repeating a write.

See [error recovery](/reference/errors) for status, scope, cooldown, cursor and retry handling. Unknown observations are result data and do not establish loss.

## HTTP resource routes

These existing resource routes share the operation’s domain behavior. Their parameter placement, status and response envelope can differ from generic invocation. See [HTTP route details](/reference/http/routes).

| Method and route                                  | Success | Details                                                                                                                                             |
| ------------------------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `POST /v1/search-connections/{connectionId}/sync` | 200     | Send a JSON object. Omit continue for a fresh collection; continue:true requests the next available Bing provider batch. Does not start monitoring. |

## Continue

[list\_search\_connection\_rows](/reference/commands/list_search_connection_rows) · [import\_search\_connection\_rows](/reference/commands/import_search_connection_rows)

Follow the [related workflow](/guides/import-and-verify), inspect [capability status](/capability-status), or return to the [command index](/reference/index).
