> ## 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 target placements

> List placements whose configured target URL exactly matches this destination.

`get_target_placements`

List placements whose configured target URL exactly matches this destination. Other URLs matched by a domain/path watch are not included.

<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` | Reads saved data |

This read does not start a verification job.

## 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_target_placements",
      "arguments": {
        "targetId": "target_example"
      }
    }
  }
  ```

  ```bash CLI theme={null}
  agentlinkops call get_target_placements --args '{"targetId":"target_example"}'
  ```

  ```bash HTTP theme={null}
  curl "$AGENTLINKOPS_API_URL/v1/commands/get_target_placements" \
    -H "Authorization: Bearer $AGENTLINKOPS_API_KEY" \
    -H 'Content-Type: application/json' \
    --data '{"targetId":"target_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}
{
  "items": [
    {
      "id": "watch_example",
      "workspace_id": "ws_example",
      "project_id": "pr_example",
      "source_url": "https://publisher.example.org/article",
      "target_url": "https://example.com/",
      "target_scope": "exact",
      "status": "active",
      "state": "unknown",
      "created_at": "2026-09-13T12:00:00.000Z"
    }
  ],
  "next_cursor": null,
  "target_id": "target_example",
  "match_basis": "configured_target_url",
  "total": 1
}
```

## Response formats

`format` selects the row shape. `detailed` is the example above: every field. `concise` keeps, per row: `id`, `source_url`, `target_url`, `target_scope`, `status`, `state`; every top-level field (cursors, counts, coverage, metadata) is kept in both. The observation state an unknown-versus-absent decision depends on is never dropped. MCP and code mode default to concise; the CLI and HTTP default to detailed; the response names the default it applied in `defaults_applied`.

## 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                                                                                                                                                                                                                                                                                          |
| ---------- | ------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `targetId` | string  | Required | Identifier of the target returned by its create or list operation. minLength: 1; maxLength: 200                                                                                                                                                                                                                  |
| `cursor`   | string  | Optional | Opaque continuation returned by this same listing; omit for the first page.                                                                                                                                                                                                                                      |
| `limit`    | integer | Optional | Maximum rows in this page or bounded report; subject to the schema maximum. minimum: 1; maximum: 100; default: 50                                                                                                                                                                                                |
| `format`   | string  | Optional | Response shape: concise keeps the fields needed to decide and to call next (the evidence state always included); detailed returns every field. MCP and code mode default to concise; REST and the CLI to detailed. The response names the default it applied in defaults\_applied. values: "concise", "detailed" |

### Validation and omitted values

Omit cursor for the first page. Keep continuation cursors opaque and use them only with the same listing and filters.

Pages are ordered by creation time, then identifier, ascending.

Matches the watch target URL exactly. It does not include other URLs that a domain/path watch could match.

### Defaults when omitted

| Field   | Default |
| ------- | ------- |
| `limit` | `50`    |

## 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                                               |
| ---------------------- | ------------- | -------- | --------------------------------------------------------------------- |
| `items`                | array         | Required | Records in this bounded page.                                         |
| `items[].id`           | string        | Required | Resource identifier returned by the operation.                        |
| `items[].workspace_id` | string        | Required | Workspace that owns this record.                                      |
| `items[].project_id`   | string        | Required | Project that owns this record.                                        |
| `items[].source_url`   | string        | Required | Publisher page URL recorded in this evidence.                         |
| `items[].target_url`   | string        | Required | Destination URL recorded in this evidence.                            |
| `items[].target_scope` | string        | Required |                                                                       |
| `items[].status`       | string        | Required | Resource lifecycle status. values: "active", "paused"                 |
| `items[].state`        | string        | Required | Saved lifecycle or evidence state, as enumerated for this record.     |
| `items[].created_at`   | string        | Required | UTC timestamp when the record was created.                            |
| `next_cursor`          | string / null | Required | Opaque continuation for the same listing; null means no further page. |
| `has_more`             | boolean       | Optional | True when another page is available.                                  |
| `target_id`            | string        | Required | Identifier returned by the related operation.                         |
| `match_basis`          | string        | Required | must equal "configured\_target\_url"                                  |
| `total`                | number        | Required |                                                                       |

[Download input schema](/schemas/get_target_placements.input.json) · [Download output schema](/schemas/get_target_placements.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/targets/{targetId}/placements` | 200     | Remaining read arguments go in query parameters. |

## Continue

[get\_link\_watch](/reference/commands/get_link_watch)

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