Skip to main content

Version: 3.7.x

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

The digital world is connected by APIs,
API7.ai exists to make APIs more efficient, reliable, and secure.

Sign up for API7 newsletter

Product

API7 Gateway

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

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