API docs

Create content

Registers content. If you also provide targets or target_language, registration and per-channel scheduling are done in one step (to schedule separately, use POST /contents/schedule).

Version: v1

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 as publish_at or local_publish_at at the top level, and visibility · platform_options are 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 as application/json.
  • video — must be multipart/form-data. Put all the fields below into a single JSON string in the metadata field, the video in the video field, and the thumbnail in the thumbnail field. video accepts only video/mp4 · video/webm · video/quicktime, and thumbnail accepts only image/jpeg · image/png · image/webp. In this format, if content_type is omitted it is treated as video.
  • carousel — combines multiple items into one post. It is multipart/form-data, and putting all the fields into a JSON string in the metadata field works the same as video. Files go in the items[] field in the order you send them. From 2 to 10 items, and photos and videos can be mixed. Accepted formats are image/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

Create content parameters
NameCategoryDescription
workspaceRequiredWorkspace code
titleRequiredShared title. 1 to 500 characters
content_typeRequiredvideo · text · article · image · carousel. video and carousel can only be sent in the multipart format described above
external_idOptionalIdempotency identifier from the external production system. 1–200 characters of letters, digits, ., _, and -
bodyOptionalShared body or description. Up to 10000 characters
hashtagsOptionalShared hashtags. Up to 60 strings, each up to 100 characters
languageOptionalLanguage code (e.g. ko · en-US). Defaults to ko if omitted
platform_metadataOptionalUse 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
metadataOptionalExtended metadata from the production system. Must be an object, not an array
produced_atOptionalProduction completion time. ISO-8601 with UTC offset (2026-09-27T05:00:00Z)
duration_secondsOptionalVideo length (seconds). Must be greater than 0
widthOptionalWidth in pixels. Must be greater than 0
heightOptionalHeight in pixels. Must be greater than 0
fpsOptionalFrames per second. Must be greater than 0
targetsOptionalPer-channel schedules to set at creation time. Up to 50. Each entry has the same shape as POST /contents/schedule
target_languageOptionalTargets every account assigned to this language (e.g. ko · en · pt-br, 2–5 lowercase characters). Ignored if targets is also given
publish_atOptionalScheduled time when selecting by target_language. ISO-8601 with UTC offset (2026-09-28T01:00:00Z)
local_publish_atOptionalScheduled 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
visibilityOptionalVisibility for all targets selected by target_language. public · unlisted · private. Defaults to public if omitted
platform_optionsOptionalPer-platform publishing options for all targets selected by target_language

2.3 Request

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

Response — JSON
{
    "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

Create content fields
FieldTypeDescription
createdbooltrue if newly created, false if an existing one was returned
contentobjectThe created content. Same shape as one entry of GET /contents

2.6 Failed

Create content failures
CodeHTTPWhen
9912400workspace was not provided
1004400A 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.)
1001401Header is missing or the token is invalid
1002403The workspace is suspended
1003403A write call made with a session, but the request didn't originate from this site
2000404The workspace doesn't exist, or this token can't access it
2001409Different content is already registered with the same external_id
4090409targets can't be updated because a schedule has already been published
1004413The upload size limit was exceeded
4150415content_type is video but the request isn't multipart/form-data
5000500Failed to create content
5000503The content store isn't ready. The same applies when files were sent but files can't be accepted right now

An account's language is set on the Channels screen (GET /channels, field language). Accounts without a language can't be selected by target_language. If there is no account for that language, the response is 400 and the content isn't created either.

The order you send files in is the order they're posted. Don't number the field names (item1 · item2 style is not accepted). Repeat the same name items[] once per file.

Instagram is currently the only channel that accepts this type. If you schedule it to another channel, that channel can't publish it.

Instagram accepts only one caption per post. You can't attach different text to each image. The shared body (and platform_metadata.instagram.body) is used as the body.

Returns 201 only when newly created, and 200 when an existing one is returned.

If you send video specs (duration_seconds · width · height · fps), they're moved and stored in metadata under production. They're returned from the same place when you query.

In PUT /contents/{id}, platform_metadata is replaced as a whole. Even to change a single channel, you must send the entire object again.