API docs

Refresh channel info

Fetches the account name, handle, profile picture, and stats from the platform again and syncs them. Use this when the name or picture was changed on the platform after connecting.

Version: v1

02 Refresh channel info

2.1 Description

POST/channels/sync

Refresh works on one account at a time. If two or more accounts are connected on the same platform, you must specify which with external_id. Otherwise you get a 400 and nothing is fetched. If there's only one account, external_id can be omitted.

Each data.channel row returned has exactly the same shape as in the channel list.

2.2 Parameters

Refresh channel info parameters
NameCategoryDescription
workspaceRequiredWorkspace code
channelRequiredChannel key. Use the channel value from the list as is
external_idOptionalAccount to fetch info for. Use the external_id value from the list as is. Required if the platform has two or more accounts
avatar_pxOptionalSize to render the profile picture at (1–1024)

2.3 Request

Terminal — bash
curl -X POST https://moacast.com/api/moacast/v1/channels/sync \
  -H 'Authorization: Bearer <ACCESS_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"workspace":"a1b2c3d4","channel":"youtube"}'

2.4 Success response

Response — JSON
{
    "result": "SUCCESS",
    "result_code": 0,
    "message": "...",
    "data": {
        "workspace": "a1b2c3d4",
        "channel": {
            "channel": "youtube",
            "external_id": "UC...",
            "display_name": "My Channel",
            "language": "ko"
        }
    }
}

2.5 Field

Refresh channel info fields
FieldTypeDescription
workspacestringWorkspace code
channelobjectThe one updated connection. Fields are the same as a row in the channel list

2.6 Failed

Refresh channel info failures
CodeHTTPWhen
9912400A required parameter is missing
1004400The platform has two or more accounts but external_id was not provided
1001401Header is missing or the token is invalid
2000404The workspace doesn't exist, or that account isn't connected
4013409The channel's authorization has expired or points to a different account. It needs to be reconnected
4290429Already refreshed within the last 60 seconds
5000502Couldn't fetch info from the platform. Stored values are left unchanged

Because this calls the platform, each account can be refreshed only once every 60 seconds. If you exceed that, you get a 429 and the Retry-After header tells you the remaining seconds.

If the token points to a different account than the stored one, we don't overwrite it and reject with 409. In that case it's a different account, not an update, so you need to reconnect.