Feed ID Management
Creating A Feed
POST https://console-api-us-west-2.mbd.xyz/api/feed/config
To create a feed, make a POST request to the config endpoint and pass in an object like the following, with values you want to include for this new feed.
Example:
{
"name": "Experimental Feed",
"description": "Experimenting a for-you feed",
"endpoint": "casts/feed/for-you",
"status": "active",
"visibility": "private",
"config": {
"filters": {
"channels": [],
"app_fids": [],
"geo_locations": [],
"remove_geo_locations": [],
"ai_labels": [],
"publication_types": [],
"remove_ai_labels": [],
"author_ids": [],
"remove_author_ids": [],
"embed_domains": [],
"start_timestamp": "days_ago:7"
},
"return_global_fallback": true,
"scoring": "all"
},
"feed_image_url": "https://d138qfh819yqwb.cloudfront.net/images/console/feed-defaults/28.jpg",
"short_name": null
}Retrieving A Feed
GET https://console-api-us-west-2.mbd.xyz/api/feed/config?config_id=<feed_id>
To retrieve a previously saved feed config, make a GET request to the config endpoint and pass in config_id as a parameter in the query string. For example:
GET https://console-api-dev-us-west-2.mbd.xyz/api/feed/config?config_id=feed_999
Retrieving Your Feed List
POST https://console-api-dev-us-west-2.mbd.xyz/api/feed/configs
To retrieve the list of feed configs created under your account, make a POST request to the configs endpoint with the following payload:
{ "visibility": "private"}Updating a Feed
PATCH https://console-api-us-west-2.mbd.xyz/api/feed/config
To update an existing feed take the object returned by the feed retreival API or by the feed creation API, change the values that need to be updated, and pass the object as body in a PATCH request to the config endpoint. For example:
{
"config_id": "feed_9999",
"name": "Best Feed Ever",
"description": "This feed gets the most interesting content in web3 originated from LA, personalized for the current user",
"endpoint": "casts/feed/for-you",
"status": "active",
"visibility": "private",
"config": {
"filters": {
"channels": [],
"app_fids": [],
"geo_locations": [
"34.05,-118.24",
"35.88,-106.30"
],
"remove_geo_locations": [],
"ai_labels": [
"web3_nft","web3_consumer"
],
"publication_types": [],
"remove_ai_labels": [],
"author_ids": [],
"remove_author_ids": [],
"embed_domains": [],
"start_timestamp": "days_ago:30"
},
"return_global_fallback": true,
"scoring": "all"
},
"feed_image_url": "https://d138qfh819yqwb.cloudfront.net/images/console/feed-defaults/28.jpg",
"short_name": null
}Updated 22 days ago
