Retrieve a template
GET
/templates/{id}授权
AuthorizationBearer 令牌 · header必填A BillionSend API key (bs_…).
路径参数
idstring必填Template id or alias
最小长度 1
响应
200
Template by id or alias. Every save through the API is live and publishes a new version, so status is always published. The dashboard editor keeps a working copy and publishes on request, with a version history. from, reply_to and variables are not supported and read as null, null and [].
idstring<uuid>必填namestring必填aliasstring | null必填statusstring必填允许值:
publishedpublished_atstring必填created_atstring必填updated_atstring必填objectstring必填允许值:
templatecurrent_version_idstring<uuid>必填fromnull必填subjectstring | null必填reply_tonull必填htmlstring必填textstring | null必填variablesany[]必填Always empty
has_unpublished_versionsboolean必填允许值:
false401
Missing, malformed, unknown or revoked API key
statusCodenumber必填namestring必填messagestring必填404
Not found
statusCodenumber必填namestring必填messagestring必填429
Over the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumber必填namestring必填messagestring必填