← Back to documentation

Relay Targets

Complete lifecycle guide for email, webhook, Slack, Discord, Microsoft Teams, PagerDuty, Telegram, and Google Sheets relay targets.

12 min read

Relay targets are delivery destinations used by endpoint outputs.

Purpose

Use this guide to:

  • Create and edit targets.
  • Understand which settings live on targets and which are configured per endpoint output.
  • Connect and choose a Google Sheets file + sheet.
  • Confirm email targets.
  • Send tests.
  • Remove unused targets.

Prerequisites and permissions

  • Signed-in account.
  • Valid destination details for the target type: email address, webhook URL, Slack/Discord/Teams webhook URL, PagerDuty integration key, Telegram bot/chat credentials, or Google Sheets access.
  • Google Sheets targets require a Google account and a spreadsheet you can edit.

Step-by-step workflow

1. Create a target

  1. Open Relay targets.
  2. Select Add target.
  3. Choose type:
  • Email
  • Webhook URL
  • Slack webhook
  • Discord webhook
  • Microsoft Teams
  • PagerDuty
  • Telegram
  • Google Sheets
  1. Enter the type-specific destination details and optional name/description.
  2. Save.

2. Configure webhook targets (Webhook URL type)

Webhook authentication, custom headers, body customization, and header forwarding are configured per endpoint on the Target destinations tab of the endpoint editor, not on the relay target itself. See Endpoint Management — Configure target destinations for details.

Relay target settings for webhook URL type:

  • URL must be http or https and not localhost/private-network ranges.
  • Webhook, Slack, Discord, and Microsoft Teams URLs are stored encrypted and shown as masked display values after saving. When editing one of these targets, leave the URL field blank to keep the existing URL.
  • Optional name and description.

3. Configure Google Sheets targets

  1. Select Google Sheets as the target type.
  2. Connect Google when prompted.
  3. Pick a single spreadsheet file.
  4. Choose an existing sheet name or type a new one.

Behavior:

  • If the sheet name does not exist yet, PayloadRelay creates it on first delivery.
  • In organization workspaces, the UI warns that other people in the organization can edit the relay target.
  • During edits, the target owner can reopen the picker using the saved Google connection. Other organization members can edit the target, but must reconnect Google before changing or refreshing the sheet selection.

4. Confirm or verify email targets

Email targets start as Pending.

  1. Open confirmation link.
  2. Confirmation page previews token validity (GET /relay-targets/confirm).
  3. Select Confirm relay target to consume token (POST /relay-targets/confirm/consume).
  4. Verify status becomes Confirmed.

Resend confirmation is available for pending platform email targets. Custom SMTP email targets use Verify connection instead; they become selectable after SMTP verification succeeds.

5. Edit or delete targets

  • Type cannot be changed after creation.
  • Secrets can be left blank on edit to keep current stored values.
  • Delete fails if the target is still used by an endpoint output.

6. Send test deliveries

Use Send test in the targets list.

Behavior by type:

  • Email: platform email requires confirmed status; custom SMTP email requires successful SMTP verification.
  • Slack/Discord: sends a test message.
  • Microsoft Teams: sends a test card.
  • PagerDuty: sends a trigger event followed by a resolve event so the test does not leave an open incident.
  • Telegram: sends a test message to the configured chat.
  • Webhook: choose method + payload format + include body.
  • Google Sheets: sends a test row to the configured spreadsheet + sheet.

Webhook test rules:

  • Method must be explicit (not ANY).
  • GET/HEAD tests never include body.
  • Test outcomes appear in Activity as TEST_ACCEPTED, TEST_REJECTED, or TEST_RATE_LIMITED.
  • Test deliveries may be temporarily rate-limited; wait for the retry window if this happens.

Expected result and verification checks

  • Target appears with expected type and status.
  • Confirmed platform email targets and verified custom SMTP email targets are selectable in endpoint outputs.
  • Multiple PagerDuty targets can be created for different services or integration keys and selected independently in endpoint outputs.
  • Test deliveries are reflected in Activity.

Common issues and fixes

  • Invalid target URL: check protocol/host format and avoid private hosts.
  • Email target blocked from outputs: confirm a platform email target first, or verify the SMTP connection for a custom SMTP target.
  • Google Sheets picker unavailable: reconnect Google and confirm your account has access to the spreadsheet.
  • Google Sheets delivery errors: verify the connected Google account can still edit the spreadsheet and that the configured sheet name is correct.
  • PagerDuty target not selectable as expected: create one target per PagerDuty service/integration and select the named target in the endpoint output.
  • Telegram delivery rejected: verify the bot token, chat ID, and that the bot has access to the target chat or channel.
  • Test rate-limited: wait for Retry-After window.
  • Webhook test rejected: verify auth type, required credentials, and payload settings.

Related guides