03 Get a single content item
3.1 Description
GET/contents/{id}
To look up by the external production system's identifier, use GET /contents?external_id=....
3.2 Parameters
| Name | Category | Description |
|---|---|---|
workspace | Required | Workspace code |
3.3 Request
curl "https://moacast.com/api/moacast/v1/contents/{id}?workspace=a1b2c3d4" \
-H 'Authorization: Bearer <ACCESS_TOKEN>'3.4 Success response
{
"result": "SUCCESS",
"result_code": 0,
"data": {
"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": []
}
}
}3.5 Field
| Field | Type | Description |
|---|---|---|
content | object | A single piece of content. Same shape as one entry of GET /contents |
3.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 the content can't be found |
5000 | 503 | The content store isn't ready |
