- List context vars for template version
Management
Content
Syntax
Rendering Context
List template descriptors
Create template descriptor
Delete template descriptor
Get template descriptor
Update template descriptor
List template versions for descriptor
List all template versions (Deprecated)
Create template version
Export all template descriptors and versions
Import exported template descriptors and versions
Get template version
Update template version
Activate template version
Render template version preview
Render template version
List all template versions (v2)
Delete template version (no longer supported)
List context vars for tem...
List all context variables used in the given template version.
If a template looks like:
Hello {{name}},
Your loan {{loanName}} is due on {{dueDate}}.
Thanks,
{{companyName}}
{{SOME_MACRO()}}The context variables are name, loanName, dueDate and companyName as well as whatever context variables are defined in SOME_MACRO() (but SOME_MACRO itself is NOT a context variable). Note that this means sometimes a Template Version may contain many context variables since all possible context variables are included in this list.
Security
oauth2(Required scopes: communicator.template:read) or bearerAuth or apiKeyHeader
GET
- oauth2
- bearerAuth
- apiKeyHeader
curl -i -X GET \
https://sandboxapi.peach.finance/api/communicator/templates/TV-AAAA-BBBB/vars \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'