---
title: "Preview an RSS feed"
method: POST
path: "/rss-feeds/preview"
tags: ["RSS feeds"]
---

# Preview an RSS feed

`POST /rss-feeds/preview`

## Request

- Base URL: `https://post.adaptlypost.com/post/api/v1`
- URL: `https://post.adaptlypost.com/post/api/v1/rss-feeds/preview`
- Auth: HTTP bearer

Fetches a feed without saving it and returns its 5 newest items with `text` rendered from `template`. Requires the `posts.draft` permission.

## Headers

- `X-Workspace-Id` string

## Request body

- PreviewRssFeedRequest
  - `url` string, uri, required
  - `template` string

## Response `200`

The feed preview

- RssFeedPreview
  - `url` string
  - `title` string
  - `siteUrl` string
  - `items` object[]
    - `title` string
    - `link` string
    - `summary` string
    - `publishedAt` string, date-time
    - `imageUrl` string
    - `text` string: The item rendered with `template`

## Other responses

- `400`: The URL is not an RSS or Atom feed
- `401`: Invalid or missing API key
- `403`: The key's role does not hold `posts.draft`
- `429`: Rate limit exceeded
- `503`: The feed could not be reached

---

[API](https://skmtc.dev/adaptlypost/apis/adaptlypost-public-api.md) · [All operations](https://skmtc.dev/adaptlypost/apis/adaptlypost-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/adaptlypost/apis/adaptlypost-public-api/revisions/8390a5fa9a0d?raw)
