์ด๋ฏธ์ง ์ฐธ์กฐ๋ฅผ URL๋ก ํด์ํ๋ฉด์ ์์ฒญ ์์๋๋ก ID๋ก ๋ธ๋ก์ ๊ฐ์ ธ์ต๋๋ค.
์น์ฌ์ดํธ์ ID๋ก ๋ธ๋ก์ ๊ฐ์ ธ์ค๋ฉฐ, ์ด๋ฏธ์ง ์ฐธ์กฐ๋ URL๋ก ํด์๋ฉ๋๋ค. ๋ธ๋ก์ ์์ฒญ๋ ids์ ๋์ผํ ์์๋ก ๋ฐํ๋๊ณ , ์ ์ ์๋ ID๋ ์กฐ์ฉํ ๊ฑด๋๋๋๋ค.
์ธ์ฆ: API ํค (x-api-key ํค๋ ๋๋ api_key ์ฟผ๋ฆฌ ๋งค๊ฐ๋ณ์).
| ๋งค๊ฐ๋ณ์ | ์ ํ | ํ์ | ๋น๊ณ |
|---|---|---|---|
websiteId | uuid | ์๋์ | ๋์ ์น์ฌ์ดํธ; Host ํค๋/๊ตฌ์ฑ์ผ๋ก ๋์ฒด๋ฉ๋๋ค. |
ids | string | ์๋์ | ์ผํ๋ก ๊ตฌ๋ถ๋ ๋ธ๋ก UUID์
๋๋ค. ๋น์ด ์๊ฑฐ๋ ์์ผ๋ฉด โ []. |
api_key | string | ์๋์ | x-api-key ํค๋์ ๋ํ ๋์์
๋๋ค. |
๋ธ๋ก์ JSON ๋ฐฐ์ด:
[
{
"id": "...",
"website_id": "...",
"schema_id": "...",
"draft_content": {},
"published_content": {},
"state": "published",
"version": 3,
"schema_name": "hero-block",
"layout": {},
"cloned_from_id": null,
"created_at": "2026-06-23T18:34:16Z",
"updated_at": "2026-06-23T20:36:55Z"
}
]
curl '{CMS_API_URL}/blocks?websiteId=<uuid>&ids=<id1>,<id2>' \
-H 'x-api-key: <key>'
400 โ ids์ ์๋ชป๋ UUID๊ฐ ์๊ฑฐ๋ ์น์ฌ์ดํธ๋ฅผ ํ์ธํ ์ ์์401 โ ์๋ชป๋ API ํค