02 Refresh feed
2.1 Description
POST/feed
It succeeds if even one channel was fetched. Channel keys that couldn't be fetched are listed in failed.
2.2 Parameters
| Name | Category | Description |
|---|---|---|
workspace | Required | Workspace code |
channel | Optional | If given, fetches only that channel. Leave empty for all connected channels |
limit | Optional | Number of entries to include in the response (1–50). Defaults to 20 |
2.3 Request
curl -X POST https://moacast.com/api/moacast/v1/feed \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{"workspace":"a1b2c3d4"}'2.4 Success response
{
"result": "SUCCESS",
"result_code": 0,
"message": "...",
"data": {
"workspace": "a1b2c3d4",
"items": [],
"next": "",
"fetched_at": 1790420673,
"stale": false,
"fetched": {
"youtube": 12
},
"failed": []
}
}2.5 Field
| Field | Type | Description |
|---|---|---|
workspace | string | Workspace code |
items | array | Stored post list. Each entry has the same shape as in the feed list |
next | string | Cursor string for continuing |
fetched_at | int | As of when (Unix seconds) |
stale | bool | Whether the stored data is stale |
fetched | object | Number of newly fetched entries per channel key. Channels with 0 entries are included too |
failed | array | List of channel keys that couldn't be fetched |
2.6 Failed
| Code | HTTP | When |
|---|---|---|
9912 | 400 | workspace was not provided |
1001 | 401 | Header is missing or the token is invalid |
2000 | 404 | The workspace doesn't exist, or it has no connected channels |
4290 | 429 | Already refreshed within the last 60 seconds |
5000 | 502 | No channel responded |
