Skip to main content

Version: 3.3.0

Approval Variables and Templates

Approval notifications (emails and messages) can be customized with pre-defined variables to provide dynamic content.

Approval Variables

Approval variables are data evaluations in the template that are delimited by {{ and }}.

The following variables are available to be used in creating alert notifications(message, email subject, email content).

VariableDescription
{{ .ApprovalID}}Unique ID of the approval.
{{ .ApplicantName}}Name of applicant.
{{ .Event}}Can be API Product Subscription, or Developer Sign Up
{{ .AppliedAt}}Time of the submission
{{ .ResourceName}}Name of event related resource. API Product for API Product Subscription, Developer for Developer Sign Up
{{ .AppliedAt.Format }}

Templates

Message(JSON)

"applicant": "{{.ApplicantName}}"
"timestamp": "{{.AppliedAt.Format "2006 Jan 02 15:04:05"}}"
"id": "{{.ApprovalID}}"
"event": "{{.Event}}"
"resource": "{{.ResourceName}}"

API7.ai Logo

API Management for Modern Architectures with Edge, API Gateway, Kubernetes, and Service Mesh.

Product

API7 Cloud

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2024. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the

Apache Software Foundation