02 Create content
2.1 Description
POST/contents
There are two ways to choose the accounts to publish to.
targets— list each account individually. You can set a different time, visibility, and options for each account.target_language— every account that covers that language becomes a target. In this case, send the scheduled time aspublish_atorlocal_publish_atat the top level, andvisibility·platform_optionsare also taken from the top level and applied to all targets.
If you send both, targets wins. If you send neither, the content is registered without a schedule.
The body format depends on the content type.
text·article·image— send the fields below at the top level asapplication/json.video— must bemultipart/form-data. Put all the fields below into a single JSON string in themetadatafield, the video in thevideofield, and the thumbnail in thethumbnailfield.videoaccepts onlyvideo/mp4·video/webm·video/quicktime, andthumbnailaccepts onlyimage/jpeg·image/png·image/webp. In this format, ifcontent_typeis omitted it is treated asvideo.carousel— combines multiple items into one post. It ismultipart/form-data, and putting all the fields into a JSON string in themetadatafield works the same asvideo. Files go in theitems[]field in the order you send them. From 2 to 10 items, and photos and videos can be mixed. Accepted formats areimage/jpeg·image/png·image/webp·video/mp4·video/webm·video/quicktime.
If you provide external_id, calling again with the same value won't create duplicate content. If it already exists, created comes back as false and the existing content is returned as is. However, if you send the same external_id with a different content_type or a different title, you get 409.
To use a different title and body per channel, put them in platform_metadata. The keys are channel keys, and each value is an object holding the values for that channel only. Channels you don't list use the shared title · body as is. The inner fields are title · body, with the same names as the shared fields. Hashtags can't be overridden here — hashtags is a single top-level shared value.
Written on one line, it looks like {"title": "9월 넷째 주 요약", "body": "이번 주에 있었던 일", "platform_metadata": {"youtube": {"title": "9월 4주차 주간 요약"}, "instagram": {"body": "이번 주 요약 — 자세한 건 프로필 링크에서"}}}.
There are nine channel keys you can use: youtube · instagram · tiktok · x · threads · facebook · linkedin · naverblog · wordpress. Of these, accounts can be connected for the first seven; naverblog and wordpress appear in the channel list but have no way to connect.
Validation only checks that it is an object, not an array. It doesn't look at inner key names, field names, or lengths. Values outside the convention are silently dropped rather than raising an error, which makes them more dangerous, since you get no signal that something is wrong. An unknown channel key (e.g. kakao) is not rejected; it is stored as is and used nowhere. Keys are case-sensitive, so Instagram is not instagram and is silently ignored. Sending an array (a list like []) returns 400 / 1004, while an empty object {} is accepted.
This value is stored now and returned as is when you read it.
2.2 Parameters
| Name | Category | Description |
|---|---|---|
workspace | Required | Workspace code |
title | Required | Shared title. 1 to 500 characters |
content_type | Required | video · text · article · image · carousel. video and carousel can only be sent in the multipart format described above |
external_id | Optional | Idempotency identifier from the external production system. 1–200 characters of letters, digits, ., _, and - |
body | Optional | Shared body or description. Up to 10000 characters |
hashtags | Optional | Shared hashtags. Up to 60 strings, each up to 100 characters |
language | Optional | Language code (e.g. ko · en-US). Defaults to ko if omitted |
platform_metadata | Optional | Use this to set a different title and body per channel. Keys are channel keys; values are objects containing title · body. Must be an object, not an array. See the description above |
metadata | Optional | Extended metadata from the production system. Must be an object, not an array |
produced_at | Optional | Production completion time. ISO-8601 with UTC offset (2026-09-27T05:00:00Z) |
duration_seconds | Optional | Video length (seconds). Must be greater than 0 |
width | Optional | Width in pixels. Must be greater than 0 |
height | Optional | Height in pixels. Must be greater than 0 |
fps | Optional | Frames per second. Must be greater than 0 |
targets | Optional | Per-channel schedules to set at creation time. Up to 50. Each entry has the same shape as POST /contents/schedule |
target_language | Optional | Targets every account assigned to this language (e.g. ko · en · pt-br, 2–5 lowercase characters). Ignored if targets is also given |
publish_at | Optional | Scheduled time when selecting by target_language. ISO-8601 with UTC offset (2026-09-28T01:00:00Z) |
local_publish_at | Optional | Scheduled time when selecting by target_language. Local time in the workspace time zone (2026-09-28T10:00). Send only one of this and publish_at |
visibility | Optional | Visibility for all targets selected by target_language. public · unlisted · private. Defaults to public if omitted |
platform_options | Optional | Per-platform publishing options for all targets selected by target_language |
2.3 Request
curl -X POST https://moacast.com/api/moacast/v1/contents \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{"workspace":"a1b2c3d4","title":"value","content_type":"value"}'2.4 Success response
{
"result": "SUCCESS",
"result_code": 0,
"message": "콘텐츠를 등록했습니다.",
"data": {
"created": true,
"content": {
"id": 12,
"external_id": "job-2026-0927-01",
"content_type": "video",
"title": "9월 넷째 주 요약",
"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": []
}
}
}2.5 Field
| Field | Type | Description |
|---|---|---|
created | bool | true if newly created, false if an existing one was returned |
content | object | The created content. Same shape as one entry of GET /contents |
2.6 Failed
| Code | HTTP | When |
|---|---|---|
9912 | 400 | workspace was not provided |
1004 | 400 | A value doesn't meet the rules (format, length, missing metadata field, targets rule violation, an account that isn't connected or isn't active (needs reconnecting), invalid target_language format or no account for that language, external_id not given when the same platform has more than one account, etc.) |
1001 | 401 | Header is missing or the token is invalid |
1002 | 403 | The workspace is suspended |
1003 | 403 | A write call made with a session, but the request didn't originate from this site |
2000 | 404 | The workspace doesn't exist, or this token can't access it |
2001 | 409 | Different content is already registered with the same external_id |
4090 | 409 | targets can't be updated because a schedule has already been published |
1004 | 413 | The upload size limit was exceeded |
4150 | 415 | content_type is video but the request isn't multipart/form-data |
5000 | 500 | Failed to create content |
5000 | 503 | The content store isn't ready. The same applies when files were sent but files can't be accepted right now |
