> ## 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 citation epochs

> Import local citation epochs into one accessible project.

`sync_citation_epochs`

Import local citation epochs into one accessible project. Identical retries are deduplicated; changed evidence for an existing epoch is rejected. Unknown rates remain null and imported watches stay paused.

<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              |
| --------------- | --------------------- |
| `watches: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_citation_epochs",
      "arguments": {
        "projectId": "project_example",
        "epochs": [
          {
            "workspace_id": "workspace_example",
            "project_id": "project_example",
            "epoch_id": "epoch_example",
            "cell_id": "chatgpt:web-own-browser|prompt_example|d:example.com",
            "k": 0,
            "n": 0,
            "unknowns": 1,
            "mentioned": 0,
            "rate": null,
            "ci_low": null,
            "ci_high": null,
            "classification": "insufficient_data",
            "spent_estimate_usd": 0,
            "at": "2026-09-19T12:00:00.000Z"
          }
        ]
      }
    }
  }
  ```

  ```bash CLI theme={null}
  agentlinkops call sync_citation_epochs --args '{"projectId":"project_example","epochs":[{"workspace_id":"workspace_example","project_id":"project_example","epoch_id":"epoch_example","cell_id":"chatgpt:web-own-browser|prompt_example|d:example.com","k":0,"n":0,"unknowns":1,"mentioned":0,"rate":null,"ci_low":null,"ci_high":null,"classification":"insufficient_data","spent_estimate_usd":0,"at":"2026-09-19T12:00:00.000Z"}]}'
  ```

  ```bash HTTP theme={null}
  curl "$AGENTLINKOPS_API_URL/v1/commands/sync_citation_epochs" \
    -H "Authorization: Bearer $AGENTLINKOPS_API_KEY" \
    -H 'Content-Type: application/json' \
    --data '{"projectId":"project_example","epochs":[{"workspace_id":"workspace_example","project_id":"project_example","epoch_id":"epoch_example","cell_id":"chatgpt:web-own-browser|prompt_example|d:example.com","k":0,"n":0,"unknowns":1,"mentioned":0,"rate":null,"ci_low":null,"ci_high":null,"classification":"insufficient_data","spent_estimate_usd":0,"at":"2026-09-19T12:00:00.000Z"}]}'
  ```
</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}
{
  "synced": 1,
  "total": 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.

* **`projectId`** (string, required): Identifier of the project returned by its create or list operation. minLength: 1; maxLength: 200
* **`epochs`** (array, required): The epochs value; allowed values and bounds are specified in this schema. minItems: 1; maxItems: 100

<Accordion title="All fields and nested objects">
  | Field                         | Type          | Presence | Meaning and constraints                                                                              |
  | ----------------------------- | ------------- | -------- | ---------------------------------------------------------------------------------------------------- |
  | `projectId`                   | string        | Required | Identifier of the project returned by its create or list operation. minLength: 1; maxLength: 200     |
  | `epochs`                      | array         | Required | The epochs value; allowed values and bounds are specified in this schema. minItems: 1; maxItems: 100 |
  | `epochs[].workspace_id`       | string        | Required | Identifier returned by the related operation.                                                        |
  | `epochs[].project_id`         | string        | Required | Identifier returned by the related operation.                                                        |
  | `epochs[].epoch_id`           | string        | Required | Identifier returned by the related operation.                                                        |
  | `epochs[].cell_id`            | string        | Required | Identifier returned by the related operation.                                                        |
  | `epochs[].k`                  | integer       | Required | minimum: 0; maximum: 9007199254740991                                                                |
  | `epochs[].n`                  | integer       | Required | minimum: 0; maximum: 9007199254740991                                                                |
  | `epochs[].unknowns`           | integer       | Optional | minimum: 0; maximum: 9007199254740991                                                                |
  | `epochs[].mentioned`          | integer       | Optional | minimum: 0; maximum: 9007199254740991                                                                |
  | `epochs[].rate`               | number / null | Required |                                                                                                      |
  | `epochs[].ci_low`             | number / null | Required |                                                                                                      |
  | `epochs[].ci_high`            | number / null | Required |                                                                                                      |
  | `epochs[].classification`     | string        | Required |                                                                                                      |
  | `epochs[].baseline_epoch_id`  | string,null   | Optional | Identifier returned by the related operation.                                                        |
  | `epochs[].baseline_rate`      | number,null   | Optional |                                                                                                      |
  | `epochs[].baseline_ci_low`    | number,null   | Optional |                                                                                                      |
  | `epochs[].baseline_ci_high`   | number,null   | Optional |                                                                                                      |
  | `epochs[].spent_estimate_usd` | number        | Optional | minimum: 0                                                                                           |
  | `epochs[].at`                 | string        | Required |                                                                                                      |
</Accordion>

### Validation and omitted values

Import one to 100 rows into the requested project. Row ownership must match the authenticated workspace and that project.

Identical retries return no new rows. A retry with different evidence is rejected. An epoch with no known samples retains null rate and interval bounds.

## 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                                                            |
| -------- | ------- | -------- | ---------------------------------------------------------------------------------- |
| `synced` | integer | Required | New epoch rows stored. minimum: 0; maximum: 9007199254740991                       |
| `total`  | integer | Required | Rows submitted, including unchanged retries. minimum: 0; maximum: 9007199254740991 |

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

## Errors and retries

The command is annotated idempotent. Reuse an accepted idempotency key when the input provides one; changing the payload under a reused key can conflict.

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

This operation has no separate resource alias. Use its generic command route in a matching environment.

## Continue

[list\_citation\_epochs](/reference/commands/list_citation_epochs) · [list\_citation\_watches](/reference/commands/list_citation_watches)

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