---
title: "Test recipient feed configuration"
method: POST
path: "/api/broadcasts.testRecipientFeed"
---

# Test recipient feed configuration

`POST /api/broadcasts.testRecipientFeed`

Tests the per-recipient feed configuration by fetching data for a specific contact or a random contact from the broadcast audience.
The recipient feed must be enabled for the broadcast before calling this endpoint.

## Request body

- TestRecipientFeedRequest
  - `workspace_id` string, required — The ID of the workspace
  - `broadcast_id` string, required — ID of the broadcast
  - `contact_email` string, email — Optional email of a specific contact to test with. If not provided, uses a random contact from the audience.
  - `url` string, uri, required — The feed URL to fetch data from (must use HTTPS)
  - `headers` DataFeedHeader[] — Optional custom headers to send with the request
    - `name` string, required — HTTP header name
    - `value` string, required — HTTP header value

## Response `200`

Recipient feed test completed

- TestRecipientFeedResponse
  - `success` boolean — Whether the test was successful
  - `data` object — The fetched data from the recipient feed
  - `fetched_at` string, date-time — When the data was fetched
  - `error` string — Error message if the test failed
  - `contact_email` string, email — Email of the contact used for the test

## Other responses

- `400` — Bad request - recipient feed not enabled or validation failed
- `401` — Unauthorized - invalid or missing authentication token
- `404` — Broadcast or contact not found
- `500` — Internal server error

## Changes

- **2026-05-13** `1de3167ef51f` — 1 breaking, 1 info
  - added the new required request property `url`
  - added the new optional request property `headers`
- **2026-02-08** `b6f612d3daaa` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/pierre-b/apis/notifuse-api/changes/api/broadcasts.testRecipientFeed/post.md)

---

[API](https://skmtc.dev/pierre-b/apis/notifuse-api.md) · [All operations](https://skmtc.dev/pierre-b/apis/notifuse-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pierre-b/notifuse-api/revisions/d26605f2fc47/schema)
