Skip to main content

Templates

Overview

Templates are predefined text-based messages, used to define notification content for different business scenarios. You can select appropriate templates to send various verification messages based on your specific requirements.

Template Management

You can access the template management page through the navigation bar under Service Settings > Templates. On this page, you can:

  • Preview all available message templates
  • Obtain the corresponding template_id

template-page

If the existing templates cannot fully meet your customization needs, please feel free to contact us (service@geelab.tech). We will try our best to provide custom development support, ensuring you can obtain an ideal message notification experience.

Template Usage

When sending verification messages, you need to pass the template_id parameter in the API request to specify the message template to use. The dynamic variables in the template will be replaced according to the values in the request parameters, with the following specific rules:

  1. vendor
    • If the Service that calls the verification message sending has a bound Vendor, the ${vendor} variable will be rendered as the bound Vendor name.
    • If the Service has no bound Vendor, the ${vendor} variable will be rendered as an empty string.
  2. code
    • The value of the ${code} variable will be generated as a random verification code based on the verification_code_config parameter passed in the request.
  3. expire
    • The value of the ${expire} variable will be rendered based on the verification_code_config.expire parameter, reflecting the expiration time of the verification code.

Please refer to the "Send Verification Message" section in the API reference documentation for more related information.

By utilizing message templates flexibly, you can quickly generate standardized verification message content, improving sending efficiency while meeting diversified business requirements. We will continue to optimize and expand the template library, providing you with a more comprehensive solution.