Feeds

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-feeds"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/7f3c8ec6-6b1f-4abb-98f4-1ae4089b25d9/social-card.svg?v=3e7ae33eec8b" alt="Feeds" width="600" height="315"></a>
GET http://localhost:4000/api/v1/feeds

List feeds

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/feeds" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
[
  {
    "id": "string",
    "organizationId": "string",
    "authorId": "string",
    "name": "string",
    "url": "string",
    "channelIds": {},
    "template": "string",
    "mode": "string",
    "includeImage": true,
    "intervalMinutes": 0,
    "enabled": true,
    "postLatest": true,
    "aiWrite": true,
    "allChannels": true,
    "etag": "string",
    "lastModified": "string",
    "lastPolledAt": "2024-01-01T00:00:00Z",
    "lastError": "string",
    "failingSince": "2024-01-01T00:00:00Z",
    "retryAt": "2024-01-01T00:00:00Z",
    "shortenToFit": true,
    "draftReason": "string",
    "draftProblem": {},
    "targetSettings": {},
    "tagId": "string",
    "generateImage": true,
    "dripTemplateId": "string",
    "createdAt": "2024-01-01T00:00:00Z"
  }
]
Schema
id
string
required
organizationId
string
required
authorId
string
required
name
string
required
url
string
required
channelIds
required
template
string
required
mode
string
required
includeImage
boolean
required
intervalMinutes
number
required
enabled
boolean
required
postLatest
boolean
required
aiWrite
boolean
required
allChannels
boolean
required
etag
string
required
lastModified
string
required
lastPolledAt
string
required
lastError
string
required
failingSince
string
required
retryAt
string
required
shortenToFit
boolean
required
draftReason
string
required
draftProblem
required
targetSettings
required
tagId
string
required
generateImage
boolean
required
dripTemplateId
string
required
createdAt
string
required
POST http://localhost:4000/api/v1/feeds

Create or update a feed that turns new items into posts

mode: draft saves each item as a draft, queue puts it in the next free slot, publish sends it at once. Needs posts:publish as well: what this sets up can publish without a person looking.

Request body

application/json
id
string
name
string
required
url
string
required
channelIds
string[]
required
template
string
= {title} {link}
mode
string
draft | queue | publish = draft
includeImage
boolean
= true
intervalMinutes
integer
= 60
enabled
boolean
= true
postLatest
boolean
= false
shortenToFit
boolean
= true
aiWrite
boolean
= false
allChannels
boolean
= false
tagId
string
= null
dripTemplateId
string
= null
generateImage
boolean
= false
targetSettings
object
= {}
{
  "id": "string",
  "name": "string",
  "url": "string",
  "channelIds": [
    "string"
  ],
  "template": "{title} {link}",
  "mode": "draft",
  "includeImage": true,
  "intervalMinutes": 60,
  "enabled": true,
  "postLatest": false,
  "shortenToFit": true,
  "aiWrite": false,
  "allChannels": false,
  "tagId": null,
  "dripTemplateId": null,
  "generateImage": false,
  "targetSettings": {}
}

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/feeds" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"string","name":"string","url":"string","channelIds":["string"],"template":"{title} {link}","mode":"draft","includeImage":true,"intervalMinutes":60,"enabled":true,"postLatest":false,"shortenToFit":true,"aiWrite":false,"allChannels":false,"tagId":null,"dripTemplateId":null,"generateImage":false,"targetSettings":{}}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/feeds/preview

Read the newest items of a feed address without saving anything

Parameters

url
string
query
required
template
string
query

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/feeds/preview?url=<url>" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
DELETE http://localhost:4000/api/v1/feeds/{id}

Delete a feed

Parameters

id
string
path
required

Code samples

cURL
curl -X DELETE "http://localhost:4000/api/v1/feeds/{id}" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/feeds/{id}/articles

List the articles a feed has listed

Parameters

id
string
path
required
search
string
query
posted
string
query
all | posted | unposted = all
limit
integer
query
= 50
offset
integer
query
= 0

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/feeds/{id}/articles" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
POST http://localhost:4000/api/v1/feeds/{id}/sync

Read a feed now

Parameters

id
string
path
required

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/feeds/{id}/sync" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
Updated