Dành cho AI agent: markdown của trang này — /docs-content-en/entities/doc-templates/download.md chỉ mục tài liệu — /llms.txt
Hiện tại, các bài viết trong tài liệu chỉ có bằng tiếng Anh.
Download a REST document template
GET /v1/doc-templates/:id/download streams DOCX bytes for a template whose moduleId is rest. The machine URL in that template's response points here. Pass X-Api-Key with the documentgenerator scope; a READONLY key may download. Templates from other modules have no machine URL on this surface.
curl -H "X-Api-Key: $VIBE_API_KEY" \
"https://vibecode.bitrix24.com/v1/doc-templates/237/download" -o template.docx
The response is a binary stream. An invalid ID returns 400; a missing or non-REST template returns 404. A missing key returns 401, missing scope 403, a Bitrix24 refusal 422, and a failed binary fetch 502.