01 List content
1.1 Description
GET/contents
If you give external_id, it returns the single piece of content with that identifier instead of a list. In that case the response has no items, only content. This is where a production system checks that what it sent actually got in.
Each entry includes that content's attachments (assets) and per-channel schedules (publications). To scan only schedules in time order, use GET /publishes.
1.2 Parameters
| Name | Category | Description |
|---|---|---|
workspace | Required | Workspace code |
external_id | Optional | If given, returns only the single piece of content with that external identifier instead of a list |
limit | Optional | Number of entries to fetch. Defaults to 100 and is clamped to 1–200 (out-of-range values become the nearest value) |
1.3 Request
curl "https://moacast.com/api/moacast/v1/contents?workspace=a1b2c3d4&external_id=value" \
-H 'Authorization: Bearer <ACCESS_TOKEN>'1.4 Success response
{
"result": "SUCCESS",
"result_code": 0,
"data": {
"workspace": "a1b2c3d4",
"items": [
{
"id": 12,
"external_id": "job-2026-0927-01",
"content_type": "video",
"title": "9월 넷째 주 요약",
"body": "이번 주에 있었던 일",
"hashtags": [
"주간요약"
],
"language": "ko",
"platform_metadata": {
"youtube": {
"title": "9월 4주차 주간 요약"
}
},
"metadata": {
"production": {
"duration_seconds": 62,
"width": 1080,
"height": 1920,
"fps": 30
}
},
"produced_at": "2026-09-27 05:00:00",
"created_at": "2026-09-27 14:10:02",
"updated_at": "2026-09-27 14:10:02",
"assets": [
{
"asset_type": "MASTER_VIDEO",
"mime": "video/mp4",
"size_bytes": 18234112,
"url": "https://…/moacast/3/12/1790000000-ab12cd.mp4?X-Amz-Signature=…",
"url_expires_in": 300
}
],
"publications": [
{
"id": 34,
"channel": "youtube",
"external_id": "UC...",
"status": "SCHEDULED",
"publish_at": "2026-09-28T01:00:00+00:00",
"visibility": "public",
"platform_options": []
}
]
}
]
}
}1.5 Field
| Field | Type | Description |
|---|---|---|
workspace | string | Workspace code. Not included when fetching a single item with external_id |
items | array | Content list, most recently created first. Each entry has the shape below |
content | object | Only when external_id is given. Same shape as one entry of items |
Content entry
| Field | Type | Description |
|---|---|---|
id | int | Content ID. Used as content_id when scheduling |
external_id | string | Idempotency identifier from the external production system. null if none |
content_type | string | video · text · article · image · carousel |
title | string | Shared title |
body | string | Shared body or description |
hashtags | array | Shared hashtags. An array of strings |
language | string | Language code. ko if not given at creation |
platform_metadata | object | Per-platform title and body overrides. Keys are channel keys; values are objects containing title · body. If never set, it's always returned as an empty object {}. It's never returned as an array [] |
metadata | object | Extended metadata from the production system. If video specs were sent, production contains duration_seconds·width·height·fps |
produced_at | string | Production completion time in UTC (YYYY-MM-DD HH:MM:SS). null if none |
created_at | string | Creation time. UTC, YYYY-MM-DD HH:MM:SS |
updated_at | string | Last modified time. UTC, YYYY-MM-DD HH:MM:SS |
assets | array | Attachment list. Each entry has the shape below |
publications | array | Per-channel schedule list. Each entry has the shape below |
assets entry
| Field | Type | Description |
|---|---|---|
asset_type | string | MASTER_VIDEO (source video) · THUMBNAIL (thumbnail) · CAROUSEL_ITEM (one of multiple images) |
sort_order | int | Order when there are several of the same asset_type. Starts at 0, and items are posted in this order. Types with only one item are always 0 |
mime | string | MIME type determined by the server at upload |
size_bytes | int | File size (bytes) |
url | string | A URL where the file can be downloaded. It's short-lived — don't store or cache it; call this API again to get a fresh one when needed. null if a URL can't be generated |
url_expires_in | int | How long url is valid (seconds). Currently 300. If url is null, this is null too |
publications entry
| Field | Type | Description |
|---|---|---|
id | int | Schedule ID |
channel | string | Channel key. youtube · instagram · facebook · threads · tiktok · x · linkedin |
external_id | string | Identifier of the scheduled account. When the same platform has several accounts, this value tells you which account the schedule belongs to |
status | string | SCHEDULED · PUBLISHED · FAILED · CANCELLED |
publish_at | string | Scheduled time. ISO-8601 in UTC |
visibility | string | public · unlisted · private |
platform_options | object | Per-platform publishing options. Empty object if none |
1.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 this token can't access it. The same applies when nothing is found by external_id |
5000 | 503 | The content store isn't ready |
