The Invite Templates APIs allow you to manage various invite templates you can use when sending invitations to your end users to connect their work accounts. These invite templates can help you automate your user flow directly from your platform, without the need to access the Smile Developer Portal manual functionality.

Once you have set up an Invite Template for your organization, you can use the Invites API to use the created Invite Template when sending emails to your end users. Invite Templates can be reused.

Creating Invite Templates

Use the Create Invite Template endpoint to create a new template. Each invite template contains three parts:

  1. Email Message - this is sent to the recipient to invite them to connect their work accounts. Contains a link to the landing page where they can start the account connection process.
  2. Landing Page - this is the landing page where the invitee can start the account connection process.
  3. Success Page - this is the page that will appear once the invitee finishes connecting their account(s).

You may customize each part of the invite template.

You may send the following information:

AttributeTypeDescription
namestringName of the template. This is not shown to the recipient. Required
companyobjectOrganization information such as name and logo to customize your invite email. See details below
emailobjectEmail information such as sender name etc. to customize your invite email. See details below
landingPageobjectLanding page information such as header text etc. to customize the landing page for your invite email. See details below
successPageobjectSuccess page information such as header text etc. to customize your success page for your invite email. See details below

Some values are not yet in use for invite templates.

Company Information

AttributeTypeDescription
namestringOrganization name that will appear in the invite email and landing page. Used to populate ${companyName} into the template. Required
logoUrlstringFully-qualified URL to a logo to be displayed in the invite email and landing page. Not yet available.

Email Information

invite-template-email-sample.png

AttributeTypeDescription
sendEmailbooleanAllow sending an email invite using this template. Required. Must be true - SMS invites not yet available
senderNamestringThe sender name to be applied to the email invite, i.e. your organization name. Required
replyAddressstringReply-to address that will be applied to the email invite, if your end user repliles to the email. Required
subjectstringSubject for the email invite. You may use template codes (see below) to populate the email subject. Required
bodystringBody of the message. You may use template codes (see below) to populate the body text. No HTML allowed. Required

The template codes that are supported are below:

  • ${companyName} - your provided Company Name in the email template
  • ${firstName} - your invitee's first name if available, otherwise, uses full name

Landing Page Information

invite-template-landing-sample.png

AttributeTypeDescription
headerstringThe header text of the landing page. You may use template codes (see below) to populate the page header. Required
descriptionstringThe main/description text of the landing page. You may use template codes (see below) to populate the body text. Required
buttonstringThe text on the button to launch the Wink Widget / start the account connection process. Required

The template codes that are supported are below:

  • ${companyName} - your provided Company Name in the email template
  • ${firstName} - your invitee's first name if available, otherwise, uses full name

Success Page Information

invite-template-success-sample.png

AttributeTypeDescription
headerstringThe header text of the success page. You may use template codes (see below) to populate the success page header. Required
descriptionstringThe main/description text of the success page. You may use template codes (see below) to populate the success page body text. Required
buttonstringThe text on the button to end the account connection process. Required

The template codes that are supported are below:

  • ${companyName} - your provided Company Name in the email template
  • ${firstName} - your invitee's first name if available, otherwise, uses full name

Fallback Methods

If you cannot use the Invites API to create automated emails sent to your end users, you may also access the Smile Developer Portal to send invites manually via the Users section.

The Invite Templates object

You may retrieve available invite templates.

AttributeTypeDescription
idstringUnique ID of the invite template on the Smile Network
namestringName of the template
companyobjectOrganization information such as name and logo to customize the invite. See details below
emailobjectEmail information such as sender name etc. to customize the invite. See details below
landingPageobjectLanding page information such as header text etc. to customize the landing page for the invite. See details below
successPageobjectSuccess page information such as header text etc. to customize the success page for the invite. See details below

The Company object

AttributeTypeDescription
namestringOrganization name that will appear in the invite email and landing page. Used to populate ${companyName} into the template
logoUrlstringFully-qualified URL to a logo to be displayed in the invite email and landing page. Not yet available.

The Email object

AttributeTypeDescription
sendEmailbooleanAllow sending an email invite using this template SMS invites not yet available
senderNamestringThe sender name to be applied to the email invite, i.e. your organization name
replyAddressstringReply-to address that will be applied to the email invite
subjectstringSubject for the email invite
bodystringBody of the message

Landing Page Information

AttributeTypeDescription
headerstringThe header text of the landing page
descriptionstringThe main/description text of the landing page
buttonstringThe text on the button to launch the Wink Widget / start the account connection process

Success Page Information

AttributeTypeDescription
headerstringThe header text of the success page
descriptionstringThe main/description text of the success page
buttonstringThe text on the button to end the account connection process

Sample Invite Template data

{
    "id": "tpl-123abc456def789abc123def456abc78",
    "name": "Email Template v1",
    "company": {
        "name": "ABC Corporation",
        "logoUrl": "https://xyzbank.co/logo.png"
    },
    "email": {
        "sendEmail": true,
        "senderName": "ABC Corporation",
        "replyAddress": "[email protected]",
        "subject": "Please connect your work account to verify your previous employment",
        "body": "Hello ${firstName}! We are working with our partner, Smile API, so you can easily share your employment and income data to us as a requirement for employment. It will be a quick process and should take no more than a few seconds of your time."
    },
    "landingPage": {
        "header": "Please connect your work account to verify your previous employment at ${companyName}",
        "description": "We are working with our partner, Smile API, so you can easily share your employment and income data to us as a requirement for giving you service. It will be a quick process and should take no more than a few seconds of your time.",
        "button": "START SHARING NOW"
    },
    "successPage": {
        "header": "The process was successful! Please wait for us to get in touch!",
        "description": "Thank you for sharing your employment and income data with us at ${companyName}.",
        "button": "Connect another account"
    }
}

Endpoints

Endpoint
List all invite templatesGET /inviteTemplates
Create invite templatePOST /inviteTemplates
Retrieve one invite templateGET /inviteTemplates/{id}
Update invite templatePUT /inviteTemplates/{id}
Delete invite templateDELETE /inviteTemplates/{id}

Webhooks

No webhooks are available for invite templates management.