Docs menuRSS feeds

RSS feeds

GET /api/v1/feeds

The user's feeds, newest first.

  • Scopepostory:read
  • Limit classREAD
  • Success200

Example

Request
curl https://postory.io/api/v1/feeds \
  -H "Authorization: Bearer $POSTORY_API_KEY"
Response 200
{"max_accounts": 5, "max_feeds": 10}

Other responses

401

No API key, or an invalid or revoked one

403

The key lacks the scope, or access is paused

422

A request parameter is not valid

429

Rate limit spent; see Retry-After

POST /api/v1/feeds

Follow a feed. Its current items are marked seen; Postory checks it hourly and each newer article becomes one Studio draft, using one Studio message's credits, at most 3 an hour per feed (out of credits, it pauses). 20 an hour. Already followed: 409 feed_exists with the feed's feed_id; 10 feeds already: 409 feed_limit; not a readable feed: 422 feed_unreadable.

  • Scopepostory:drafts
  • Limit classWRITE
  • Success201

Parameters

NameInTypeDescription
Idempotency-Keyheaderstring

Any unique string (1-255 characters). The first answer for this key is replayed for 24 hours (Idempotent-Replayed: true) without running anything again; the same key with a different request is 409 idempotency_conflict.

Up to 255 characters

Request body

FieldTypeDescription
connection_idsrequiredstring[]

The accounts each draft is written for, 1 to 5 connection_ids from GET /accounts; the first is the Studio session's account. An account the plan suspended, or on a network not open to the user, gets none.

1–5 items
mode"draft" | "queue" | "auto_publish"

What each new draft does. draft: saved to Drafts. queue: a draft placed in the account's next free posting slot, not scheduled (posting slots off: an undated draft). auto_publish (needs postory:publish): scheduled into a free slot at least an hour ahead and published then unless cancelled; slots off, no free slot or too few credits leave a draft.

Default: "draft"
urlrequiredstring

The feed's http(s) URL.

Up to 2000 characters

Example

Request
curl https://postory.io/api/v1/feeds \
  -H "Authorization: Bearer $POSTORY_API_KEY" \
  -H "Idempotency-Key: <unique-key>" \
  -H "Content-Type: application/json" \
  -d '{"connection_ids": ["<connection_ids>"], "url": "<url>"}'
Response 201
{"message": "<message>"}

Other responses

401

No API key, or an invalid or revoked one

403

The key lacks the scope, or access is paused

409

The state does not allow it now (already scheduled, changed, needs a choice…); branch on code

422

A request parameter is not valid

429

Rate limit spent; see Retry-After

GET /api/v1/feeds/{feed_id}

One feed and its newest 20 items with what became of each (a draft's post_id once drafted; GET /drafts/{post_id} opens it).

  • Scopepostory:read
  • Limit classREAD
  • Success200

Parameters

NameInTypeDescription
feed_idrequiredpathstringUp to 36 characters

Example

Request
curl "https://postory.io/api/v1/feeds/<feed_id>" \
  -H "Authorization: Bearer $POSTORY_API_KEY"
Response 200
{"message": "<message>"}

Other responses

401

No API key, or an invalid or revoked one

403

The key lacks the scope, or access is paused

404

Not found, or not this user's

422

A request parameter is not valid

429

Rate limit spent; see Retry-After

PATCH /api/v1/feeds/{feed_id}

Change a feed's accounts, mode or name, or turn it off or on. Turning it on reads it now: new articles become drafts, one Studio message's credits each.

  • Scopepostory:drafts
  • Limit classWRITE
  • Success200

Parameters

NameInTypeDescription
feed_idrequiredpathstringUp to 36 characters

Request body

FieldTypeDescription
connection_idsstring[]

The accounts each draft is written for, 1 to 5 connection_ids from GET /accounts; the first is the Studio session's account. An account the plan suspended, or on a network not open to the user, gets none.

1–5 items
is_activeboolean

false stops it; true turns it on, lifts a pause and reads it now.

mode"draft" | "queue" | "auto_publish"

What each new draft does. draft: saved to Drafts. queue: a draft placed in the account's next free posting slot, not scheduled (posting slots off: an undated draft). auto_publish (needs postory:publish): scheduled into a free slot at least an hour ahead and published then unless cancelled; slots off, no free slot or too few credits leave a draft.

titlestring

The feed's name.

Up to 300 characters

Example

Request
curl -X PATCH "https://postory.io/api/v1/feeds/<feed_id>" \
  -H "Authorization: Bearer $POSTORY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"connection_ids": ["<connection_ids>"]}'
Response 200
{"message": "<message>"}

Other responses

401

No API key, or an invalid or revoked one

403

The key lacks the scope, or access is paused

404

Not found, or not this user's

422

A request parameter is not valid

429

Rate limit spent; see Retry-After

DELETE /api/v1/feeds/{feed_id}

Stop following a feed and drop its items list. Its drafts and posts stay.

  • Scopepostory:drafts
  • Limit classDELETE
  • Success200

Parameters

NameInTypeDescription
feed_idrequiredpathstringUp to 36 characters

Example

Request
curl -X DELETE "https://postory.io/api/v1/feeds/<feed_id>" \
  -H "Authorization: Bearer $POSTORY_API_KEY"
Response 200
{"deleted": true, "feed_id": "<feed_id>", "message": "<message>"}

Other responses

401

No API key, or an invalid or revoked one

403

The key lacks the scope, or access is paused

404

Not found, or not this user's

422

A request parameter is not valid

429

Rate limit spent; see Retry-After

POST /api/v1/feeds/{feed_id}/check

Read the feed now. New articles start drafting in the background, one Studio message's credits each (an off feed only collects them). 30 an hour.

  • Scopepostory:drafts
  • Limit classWRITE
  • Success200

Parameters

NameInTypeDescription
feed_idrequiredpathstringUp to 36 characters

Example

Request
curl -X POST "https://postory.io/api/v1/feeds/<feed_id>/check" \
  -H "Authorization: Bearer $POSTORY_API_KEY"
Response 200
{"message": "<message>"}

Other responses

401

No API key, or an invalid or revoked one

403

The key lacks the scope, or access is paused

404

Not found, or not this user's

422

A request parameter is not valid

429

Rate limit spent; see Retry-After

POST /api/v1/feeds/preview

Read a URL as an RSS or Atom feed: its title and newest three items. Saves nothing; 30 an hour. Not a readable feed: 422 feed_unreadable with reason (not_a_feed, timeout, http_status, private_address, …).

  • Scopepostory:read
  • Limit classREAD
  • Success200

Request body

FieldTypeDescription
urlrequiredstring

The feed's http(s) URL.

Up to 2000 characters

Example

Request
curl https://postory.io/api/v1/feeds/preview \
  -H "Authorization: Bearer $POSTORY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "<url>"}'
Response 200
{
  "preview": {
    "url": "https://blog.example.com/feed",
    "title": "Example Blog",
    "site_url": "https://blog.example.com/",
    "entry_count": 12,
    "entries": [
      {
        "title": "Launching our new plan",
        "url": "https://blog.example.com/new-plan",
        "published_at": "2026-11-28T09:00:00+00:00"
      },
      {
        "title": "What we learned this month",
        "url": "https://blog.example.com/month",
        "published_at": "2026-11-21T09:00:00+00:00"
      }
    ]
  }
}

Other responses

401

No API key, or an invalid or revoked one

403

The key lacks the scope, or access is paused

422

A request parameter is not valid

429

Rate limit spent; see Retry-After