latestOpenAPI 3.0.02026-08-1610635191.3 KB

355890b6b4cc

Feeds

Create a feed subscription

Links a feed to a schedule template (ClientRequest) so that new feed items trigger automated content generation.

post/feeds/subscriptions

Request body

feedIdinteger required

Identifier of the feed to subscribe to.

requestIdstring required

Schedule template (ClientRequest) to clone when new items arrive.

lastProcessedItemIdstring

Optional feed item identifier to mark as already processed.

Example request

{
  "feedId": 42,
  "requestId": "123e4567-e89b-12d3-a456-426614174000"
}

Response

Subscription created successfully

idstring uuid

Unique identifier for the subscription

feedIdinteger

Identifier of the subscribed feed

tokenstring

Token that owns the subscription

requestIdstring

ClientRequest template identifier used for automation

createdOnstring date-time

When the subscription was created

removedOnstring date-time nullable

When the subscription was removed, if applicable

lastProcessedItemIdstring nullable

Identifier of the last feed item processed for this subscription

lastProcessedOnstring date-time nullable

Timestamp of the last processed feed item

requestobject nullable

Snapshot of the underlying template request

Example response

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "feedId": 42
}