Feeds
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
idstring
required
organizationIdstring
required
authorIdstring
required
namestring
required
urlstring
required
channelIdsrequired
templatestring
required
modestring
required
includeImageboolean
required
intervalMinutesnumber
required
enabledboolean
required
postLatestboolean
required
aiWriteboolean
required
allChannelsboolean
required
etagstring
required
lastModifiedstring
required
lastPolledAtstring
required
lastErrorstring
required
failingSincestring
required
retryAtstring
required
shortenToFitboolean
required
draftReasonstring
required
draftProblemrequired
targetSettingsrequired
tagIdstring
required
generateImageboolean
required
dripTemplateIdstring
required
createdAtstring
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
idstring
namestring
required
urlstring
required
channelIdsstring[]
required
templatestring
modestring
includeImageboolean
intervalMinutesinteger
enabledboolean
postLatestboolean
shortenToFitboolean
aiWriteboolean
allChannelsboolean
tagIdstring
dripTemplateIdstring
generateImageboolean
targetSettingsobject
{
"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
urlstring
query
required
templatestring
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
idstring
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
idstring
path
required
searchstring
query
postedstring
query
limitinteger
query
offsetinteger
query
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
idstring
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