API docs

Refresh feed

Fetches posts again from your connected channels, stores them, and returns what was stored. Give channel for that channel only; omit it for all connected channels.

Version: v1

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

Refresh feed parameters
NameCategoryDescription
workspaceRequiredWorkspace code
channelOptionalIf given, fetches only that channel. Leave empty for all connected channels
limitOptionalNumber of entries to include in the response (1–50). Defaults to 20

2.3 Request

Terminal — bash
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

Response — JSON
{
    "result": "SUCCESS",
    "result_code": 0,
    "message": "...",
    "data": {
        "workspace": "a1b2c3d4",
        "items": [],
        "next": "",
        "fetched_at": 1790420673,
        "stale": false,
        "fetched": {
            "youtube": 12
        },
        "failed": []
    }
}

2.5 Field

Refresh feed fields
FieldTypeDescription
workspacestringWorkspace code
itemsarrayStored post list. Each entry has the same shape as in the feed list
nextstringCursor string for continuing
fetched_atintAs of when (Unix seconds)
staleboolWhether the stored data is stale
fetchedobjectNumber of newly fetched entries per channel key. Channels with 0 entries are included too
failedarrayList of channel keys that couldn't be fetched

2.6 Failed

Refresh feed failures
CodeHTTPWhen
9912400workspace was not provided
1001401Header is missing or the token is invalid
2000404The workspace doesn't exist, or it has no connected channels
4290429Already refreshed within the last 60 seconds
5000502No channel responded

Because this call contacts the platforms, it can run only once every 60 seconds. It's counted separately from the info refresh on the Channels screen, so using one doesn't block the other.

If no channel responds, the response is 502. The platform didn't answer, not us, so try again shortly.