> ## 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.

# Export disavow rules

> Export approved rules as deterministic Google-format text and record its hash receipt.

`export_disavow_rules`

Export approved rules as deterministic Google-format text and record its hash receipt. Never submits to Google.

<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:read` | 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": "export_disavow_rules",
      "arguments": {
        "projectId": "project_example"
      }
    }
  }
  ```

  ```bash CLI theme={null}
  agentlinkops call export_disavow_rules --args '{"projectId":"project_example"}'
  ```

  ```bash HTTP theme={null}
  curl "$AGENTLINKOPS_API_URL/v1/commands/export_disavow_rules" \
    -H "Authorization: Bearer $AGENTLINKOPS_API_KEY" \
    -H 'Content-Type: application/json' \
    --data '{"projectId":"project_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}
{
  "filename": "disavow.txt",
  "content_type": "text/plain; charset=utf-8",
  "text": "",
  "receipt": {
    "id": "dexp_example",
    "workspace_id": "workspace_example",
    "project_id": "project_example",
    "format_version": 1,
    "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "stored_active_count": 0,
    "effective_count": 0,
    "byte_length": 0,
    "collection_revision": 1,
    "source_revisions": [],
    "created_by": "user_example",
    "created_at": "2026-09-20T00:00:00.000Z"
  }
}
```

## 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                                                                          |
| ----------- | ------ | -------- | ------------------------------------------------------------------------------------------------ |
| `projectId` | string | Required | Identifier of the project returned by its create or list operation. minLength: 1; maxLength: 200 |

### Validation and omitted values

Proposals are inert until a human owner or administrator approves them. Agent credentials cannot approve, reject or delete rules.

Export records deterministic active-rule content and its hash; it never submits a file to Google.

## 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.

* **`filename`** (string, required): must equal "disavow\.txt"
* **`content_type`** (string, required): must equal "text/plain; charset=utf-8"
* **`text`** (string, required).
* **`receipt`** (object, required): additional fields rejected

<Accordion title="All fields and nested objects">
  | Field                                 | Type    | Presence | Meaning and constraints                                                                                                          |
  | ------------------------------------- | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------- |
  | `filename`                            | string  | Required | must equal "disavow\.txt"                                                                                                        |
  | `content_type`                        | string  | Required | must equal "text/plain; charset=utf-8"                                                                                           |
  | `text`                                | string  | Required |                                                                                                                                  |
  | `receipt`                             | object  | Required | additional fields rejected                                                                                                       |
  | `receipt.id`                          | string  | Required | Resource identifier returned by the operation. minLength: 1; maxLength: 200                                                      |
  | `receipt.workspace_id`                | string  | Required | Workspace that owns this record. minLength: 1; maxLength: 200                                                                    |
  | `receipt.project_id`                  | string  | Required | Project that owns this record. minLength: 1; maxLength: 200                                                                      |
  | `receipt.format_version`              | number  | Required | must equal 1                                                                                                                     |
  | `receipt.sha256`                      | string  | Required | pattern: "^\[a-f0-9]\{64}\$"                                                                                                     |
  | `receipt.stored_active_count`         | integer | Required | minimum: 0; maximum: 9007199254740991                                                                                            |
  | `receipt.effective_count`             | integer | Required | minimum: 0; maximum: 9007199254740991                                                                                            |
  | `receipt.byte_length`                 | integer | Required | minimum: 0; maximum: 9007199254740991                                                                                            |
  | `receipt.collection_revision`         | integer | Required | minimum: 0; maximum: 9007199254740991                                                                                            |
  | `receipt.source_revisions`            | array   | Required |                                                                                                                                  |
  | `receipt.source_revisions[].id`       | string  | Required | Resource identifier returned by the operation. minLength: 1; maxLength: 200                                                      |
  | `receipt.source_revisions[].revision` | integer | Required | Optimistic concurrency revision; supply it as expectedRevision on the next write. maximum: 9007199254740991; exclusiveMinimum: 0 |
  | `receipt.created_by`                  | string  | Required | minLength: 1; maxLength: 200                                                                                                     |
  | `receipt.created_at`                  | string  | Required | UTC timestamp when the record was created.                                                                                       |
</Accordion>

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

## Errors and retries

This command is not annotated idempotent. After a timeout, inspect existing state before repeating a write. Operation-specific errors include `INVALID_DISAVOW_INPUT`, `HUMAN_ADMIN_REQUIRED`, `DISAVOW_NOT_READY`, `DISAVOW_REVISION_CONFLICT`, `DISAVOW_RULE_NOT_FOUND`, `DISAVOW_RULE_CONFLICT`, `DISAVOW_SCOPE_CLOSED`, `DISAVOW_CAPACITY`, `DISAVOW_EXPORT_CAPACITY`, `DISAVOW_IMPORT_TOO_LARGE`, `DISAVOW_RULE_TOO_LARGE`, `INVALID_CURSOR`.

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\_disavow\_rules](/reference/commands/list_disavow_rules) · [list\_disavow\_exports](/reference/commands/list_disavow_exports)

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