---
title: "link_episode_contacts"
method: POST
path: "/link_episode_contacts"
tags: ["episode_contacts"]
---

# link_episode_contacts

`POST /link_episode_contacts`

## Request

- Base URL: `https://app.podmule.com/api/v1`
- URL: `https://app.podmule.com/api/v1/link_episode_contacts`
- Auth: HTTP bearer

Apply a batch of episode↔contact links in one atomic call. Use to apply confirmed matches from match_episode_guests_to_contacts without a write per episode. Idempotent: already-linked pairs are reported already_linked, role changes are reported updated; pairs referencing entities outside the workspace are skipped and reported as invalid. Requires expected_affected_count = links.length. For a single link use link_contact_to_episode.

## Headers

- `Idempotency-Key` string
- `X-PodMule-Dry-Run` 'true' | 'false'

## Request body

- unknown

## Response `200`

Capability output wrapped in `{ data }`.

- object
  - `data` unknown, required

## Other responses

- `400`: Invalid input — Zod validation failed.
- `401`: Missing, malformed, or audience-mismatched bearer token.
- `403`: Token is valid but lacks the required scope.
- `404`: Capability not registered, or referenced resource not found.
- `409`: IDEMPOTENCY_KEY_REUSED — same Idempotency-Key was used previously with a different request body.
- `429`: Rate limit exceeded. Retry after the period in `Retry-After`.
- `500`: Internal error.

---

[API](https://skmtc.dev/podmule/apis/podmule-api.md) · [All operations](https://skmtc.dev/podmule/apis/podmule-api/llms.txt) · [OpenAPI document](https://skmtc.dev/podmule/apis/podmule-api/revisions/844ae61495fa?raw)
