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

# Get public contacts

> Extract explicitly published emails and contact-page candidates from the latest saved public HTML.

`get_public_contacts`

Extract explicitly published emails and contact-page candidates from the latest saved public HTML. Returns dated evidence; does not infer emails, verify deliverability or send outreach.

<Note>Hosted MCP registration verified. These schemas describe the development contract; confirm supported inputs with tools/list. Generic CLI/HTTP calls require a matching development server. Configure LINKTRAIL\_API\_URL; production does not expose these command routes.</Note>

| Access         | Behavior         |
| -------------- | ---------------- |
| `watches:read` | Reads saved data |

Reading saved data does not start a verification job. Mutations can change saved records or access; the effects below apply.

## 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": "get_public_contacts",
      "arguments": {
        "watchId": "watch_example"
      }
    }
  }
  ```

  ```bash CLI theme={null}
  linktrail call get_public_contacts --args '{"watchId":"watch_example"}'
  ```

  ```bash HTTP theme={null}
  curl "$LINKTRAIL_API_URL/v1/commands/get_public_contacts" \
    -H "Authorization: Bearer $LINKTRAIL_API_KEY" \
    -H 'Content-Type: application/json' \
    --data '{"watchId":"watch_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}
{
  "watch_id": "watch_example",
  "observation_id": "obs_example",
  "contacts": [],
  "contact_pages": [],
  "coverage": {
    "method": "saved_public_html",
    "pages_analyzed": 1,
    "truncated": false,
    "unsafe_base_ignored": false,
    "rendered_visibility": "not_checked",
    "email_deliverability": "not_checked",
    "inferred_addresses": false
  }
}
```

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

### Validation and omitted values

Requires a completed watch check and retained public HTML. Addresses must be explicitly published; extraction does not test deliverability or send a message.

## 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                                                           |
| ------------------------------- | ------------- | -------- | --------------------------------------------------------------------------------- |
| `watch_id`                      | string        | Required | watch id recorded for this result.                                                |
| `observation_id`                | string        | Required | observation id recorded for this result.                                          |
| `contacts`                      | array         | Required | contacts recorded for this result.                                                |
| `contacts[].email`              | string        | Required | email recorded for this result.                                                   |
| `contacts[].evidence_type`      | string        | Required | evidence type recorded for this result.                                           |
| `contacts[].source_url`         | string        | Required | Publisher page URL recorded in this evidence.                                     |
| `contacts[].observed_at`        | string        | Required | UTC timestamp of the observation used here.                                       |
| `contacts[].context`            | string        | Required | context recorded for this result.                                                 |
| `contacts[].line`               | number / null | Required | line recorded for this result.                                                    |
| `contacts[].deliverability`     | string        | Required | deliverability recorded for this result. must equal "not\_checked"                |
| `contacts[].visibility`         | string        | Required | visibility recorded for this result. must equal "static\_html\_unverified"        |
| `contact_pages`                 | array         | Required | contact pages recorded for this result.                                           |
| `contact_pages[].url`           | string        | Required | url recorded for this result.                                                     |
| `contact_pages[].source_url`    | string        | Required | Publisher page URL recorded in this evidence.                                     |
| `contact_pages[].observed_at`   | string        | Required | UTC timestamp of the observation used here.                                       |
| `contact_pages[].verification`  | string        | Required | verification recorded for this result. must equal "linked\_page\_not\_fetched"    |
| `coverage`                      | object        | Required | Dataset scope and completeness, including limits on what these results establish. |
| `coverage.method`               | string        | Required | method recorded for this result. must equal "saved\_public\_html"                 |
| `coverage.pages_analyzed`       | number        | Required | pages analyzed recorded for this result.                                          |
| `coverage.truncated`            | boolean       | Required | truncated recorded for this result.                                               |
| `coverage.unsafe_base_ignored`  | boolean       | Required | unsafe base ignored recorded for this result.                                     |
| `coverage.rendered_visibility`  | string        | Required | rendered visibility recorded for this result. must equal "not\_checked"           |
| `coverage.email_deliverability` | string        | Required | email deliverability recorded for this result. must equal "not\_checked"          |
| `coverage.inferred_addresses`   | boolean       | Required | inferred addresses recorded for this result. must equal false                     |

[Download input schema](/schemas/get_public_contacts.input.json) · [Download output schema](/schemas/get_public_contacts.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

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                                          |
| ------------------------------------ | ------- | ------------------------------------------------ |
| `GET /v1/watches/{watchId}/contacts` | 200     | Remaining read arguments go in query parameters. |

## Continue

[get\_link\_history](/reference/commands/get_link_history)

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