curl --request POST \
--url https://api.juicer.io/v1/feeds \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "My Brand Feed",
"template": "Slider Dark",
"sync_interval": 60
}
'import requests
url = "https://api.juicer.io/v1/feeds"
payload = {
"name": "My Brand Feed",
"template": "Slider Dark",
"sync_interval": 60
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'My Brand Feed', template: 'Slider Dark', sync_interval: 60})
};
fetch('https://api.juicer.io/v1/feeds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.juicer.io/v1/feeds",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'My Brand Feed',
'template' => 'Slider Dark',
'sync_interval' => 60
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.juicer.io/v1/feeds"
payload := strings.NewReader("{\n \"name\": \"My Brand Feed\",\n \"template\": \"Slider Dark\",\n \"sync_interval\": 60\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.juicer.io/v1/feeds")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"My Brand Feed\",\n \"template\": \"Slider Dark\",\n \"sync_interval\": 60\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.juicer.io/v1/feeds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"My Brand Feed\",\n \"template\": \"Slider Dark\",\n \"sync_interval\": 60\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"name": "<string>",
"slug": "<string>",
"sources_count": 123,
"created_via_api": true,
"sync_interval": 123,
"update_frequency": 123,
"template": "<string>",
"moderation": {
"enabled": true,
"allowed": "<string>",
"disallowed": "<string>",
"profanity_filter": true,
"prevent_duplicates": true,
"deduplication_strategy": "prioritize_top_source",
"ai_moderation_available": true,
"ai_moderation": true,
"ai_harmful_content_filter": true,
"ai_moderation_rules": "<string>",
"ai_sentiment_filter": [
"positive"
]
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"replayed": true
}
}{
"data": {
"id": 123,
"name": "<string>",
"slug": "<string>",
"sources_count": 123,
"created_via_api": true,
"sync_interval": 123,
"update_frequency": 123,
"template": "<string>",
"moderation": {
"enabled": true,
"allowed": "<string>",
"disallowed": "<string>",
"profanity_filter": true,
"prevent_duplicates": true,
"deduplication_strategy": "prioritize_top_source",
"ai_moderation_available": true,
"ai_moderation": true,
"ai_harmful_content_filter": true,
"ai_moderation_rules": "<string>",
"ai_sentiment_filter": [
"positive"
]
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "feed_limit_reached",
"message": "Your Free plan allows 1 feed(s). Upgrade to create more.",
"details": {
"name": [
"can't be blank"
]
},
"action": {
"type": "upgrade_plan",
"current_plan": "small",
"current_plan_display_name": "Free",
"required_plan": "large",
"required_plan_display_name": "Pro",
"upgrade_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"code": "feed_limit_reached",
"message": "Your Free plan allows 1 feed(s). Upgrade to create more.",
"details": {
"name": [
"can't be blank"
]
},
"action": {
"type": "upgrade_plan",
"current_plan": "small",
"current_plan_display_name": "Free",
"required_plan": "large",
"required_plan_display_name": "Pro",
"upgrade_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}Create a new feed
Creates a new feed.
Returns 422 with:
error.code = "feed_limit_reached"and an upgrade action when your plan’s feed limit is reached.error.code = "validation_failed"when the feed can’t be assigned to its users, for example because another request took the last feed slot. Nothing is created, anddetailslists the assignment’s errors (feed_count,user_id) rather than feed fields.error.code = "invalid_template"whentemplateis blank or not a template your account can use;details.available_templateslists the ones it can. Nothing is created.error.code = "template_not_supported"whentemplateis sent and your account’s new feeds are not Feeds 2.0 feeds. Nothing is created.
Safe retries. Send an Idempotency-Key header. After a timeout or a 5xx, retry with the
same key and body: the feed may have been created anyway, and the retry returns it with 200
and meta.replayed: true instead of creating a second one.
409idempotency_request_in_progress: the first request is still running. WaitRetry-Afterseconds and retry.422idempotency_key_reused: the key was already used for a different request. The same body for anotheruser_idcounts as a different request.- A request rejected with a
4xxdoesn’t use up the key, so you can fix it and retry with the same key.
Keys are UTF-8 text of up to 255 characters, belong to your account and don’t expire. One key can create one feed and one source. Deleting the feed frees its key.
curl --request POST \
--url https://api.juicer.io/v1/feeds \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "My Brand Feed",
"template": "Slider Dark",
"sync_interval": 60
}
'import requests
url = "https://api.juicer.io/v1/feeds"
payload = {
"name": "My Brand Feed",
"template": "Slider Dark",
"sync_interval": 60
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'My Brand Feed', template: 'Slider Dark', sync_interval: 60})
};
fetch('https://api.juicer.io/v1/feeds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.juicer.io/v1/feeds",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'My Brand Feed',
'template' => 'Slider Dark',
'sync_interval' => 60
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.juicer.io/v1/feeds"
payload := strings.NewReader("{\n \"name\": \"My Brand Feed\",\n \"template\": \"Slider Dark\",\n \"sync_interval\": 60\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.juicer.io/v1/feeds")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"My Brand Feed\",\n \"template\": \"Slider Dark\",\n \"sync_interval\": 60\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.juicer.io/v1/feeds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"My Brand Feed\",\n \"template\": \"Slider Dark\",\n \"sync_interval\": 60\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"name": "<string>",
"slug": "<string>",
"sources_count": 123,
"created_via_api": true,
"sync_interval": 123,
"update_frequency": 123,
"template": "<string>",
"moderation": {
"enabled": true,
"allowed": "<string>",
"disallowed": "<string>",
"profanity_filter": true,
"prevent_duplicates": true,
"deduplication_strategy": "prioritize_top_source",
"ai_moderation_available": true,
"ai_moderation": true,
"ai_harmful_content_filter": true,
"ai_moderation_rules": "<string>",
"ai_sentiment_filter": [
"positive"
]
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"replayed": true
}
}{
"data": {
"id": 123,
"name": "<string>",
"slug": "<string>",
"sources_count": 123,
"created_via_api": true,
"sync_interval": 123,
"update_frequency": 123,
"template": "<string>",
"moderation": {
"enabled": true,
"allowed": "<string>",
"disallowed": "<string>",
"profanity_filter": true,
"prevent_duplicates": true,
"deduplication_strategy": "prioritize_top_source",
"ai_moderation_available": true,
"ai_moderation": true,
"ai_harmful_content_filter": true,
"ai_moderation_rules": "<string>",
"ai_sentiment_filter": [
"positive"
]
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "feed_limit_reached",
"message": "Your Free plan allows 1 feed(s). Upgrade to create more.",
"details": {
"name": [
"can't be blank"
]
},
"action": {
"type": "upgrade_plan",
"current_plan": "small",
"current_plan_display_name": "Free",
"required_plan": "large",
"required_plan_display_name": "Pro",
"upgrade_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"code": "feed_limit_reached",
"message": "Your Free plan allows 1 feed(s). Upgrade to create more.",
"details": {
"name": [
"can't be blank"
]
},
"action": {
"type": "upgrade_plan",
"current_plan": "small",
"current_plan_display_name": "Free",
"required_plan": "large",
"required_plan_display_name": "Pro",
"upgrade_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}Authorizations
Headers
Body
The feed's look, by template name: picking one does what picking it in the dashboard does, and it goes live at once. The template's layout and style and its content settings (post order, photo/video filter, display filter, poll) replace the feed's own. Expanded posts are cleared, and the hero post is the template's (the first post for the Highlights templates, none otherwise). Colours are decided separately for the live and the draft settings: each keeps all its colours, light/dark mode included, when any of them differs from its current template's preset colours, and otherwise (or when it has no template) takes the new template's. A feed showing an AI design switches back to the standard layout. Send a template name; null or an empty value is refused (invalid_template on a feed that takes templates, template_not_supported otherwise). Pending dashboard changes to these settings, including a different pending template, are replaced too. Standard templates are listed first and premium themes after them; premium themes need a paid plan or the trial (or support enabling them), and otherwise answer invalid_template.
Grid Masonry, Grid Default, Grid Minimal, Grid Highlights, Grid Dark, Slider Default, Slider Minimal, Slider Highlights, Slider Widget, Slider Dark, List Default, List Dark, Admissions, Arena, Campus, Clinic, Field Notes, Front Page, Hot board, Newsroom, Spotlight, Stay, Storefront, Studio "Slider Dark"
How often the feed's sources are synced, in minutes. Allowed values are the standard sync frequencies 1, 5, 10, 30, 60, 240, and 1440 (once a day). Use 0 to archive the feed (stop updating it). Omit the field or send null to use your plan's default sync frequency (once a day on most plans). Setting it requires a plan that supports per-feed sync frequency; on other plans the request returns 422 with error.code = "sync_interval_not_available". On an account a paid API plan governs (see Plan Limits) an invalid value is rejected with 422 (error.code = "invalid_sync_interval"), and each successful sync of a source consumes API credits, so a faster interval consumes credits proportionally faster (an hourly feed spends roughly 24x what a daily feed does); when the balance runs out the feed's sources pause until it is topped up.
60