Pour les agents IA : markdown de cette page — /docs-content-en/entities/doc-templates/download.md index de la documentation — /llms.txt

Les articles de documentation sont actuellement disponibles en anglais.

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.

Terminal
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.