Download a template file

View as Markdown

Streams the template’s file bytes as an attachment. Pass ?version= to download a retained earlier version instead of the current one.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

idstringRequired

Query parameters

versionintegerOptional>=1

A retained version to download instead of the current one (defaults to current).

Response

The template file bytes.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error