Query Welcome Email Template
Query the welcome email template.
Request URL
GET {base_url}/{api_path}/email_template/get?access_token={access_token}
Request parameters
No request parameters. Send the request URL directly to query the welcome email template.
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
| pbxname | String | The name of the PBX. |
| data | Object<Email_Template> | The welcome email template. |
- Email_Template
-
Parameter Type Description type String The type of the template. default: The system default template.custom: A custom template.
subject String The email subject. body String The email body. login_credentials_validity_period Integer The validity period of the login credentials included the welcome email, in days. vars String The descriptions of the variables available in the template, in HTML format.
Example
Request example
GET /openapi/v1.0/email_template/get?access_token=w3rTvBskMgZ1XpQd7NhLc0eYfA6UoIjK HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS",
"pbxname": "PBX",
"data": {
"type": "default",
"subject": "Welcome to Yeastar Linkus Client",
"body": "Hi {{.ExtensionName}},<br/><br/>Welcome to use Linkus Clients. With Linkus UC Softphone, all the features of a desk phone can be realized on your mobile devices and computer desktop. Available using Microsoft Windows, macOS, iOS, Android, and any browsers, Linkus makes real-time business communication easy across multiple devices, providing advanced click-to-call, one-touch recording, Contacts, one-click voicemail retrieval, call logs and more business-enhancing features.<br/><br/>Extension Information<br/>Extension Number: {{.ExtensionNumber}}<br/>Voicemail PIN: {{.ExtensionVoicemailPIN}}<br/>To retrieve your voicemails, please press {{.ReadVoicemailFeatureCode}} and extension number on your dial pad or log into your Linkus Client to listen to them.<br/><br/>Linkus Client Login Credentials<br/>1. QR Code for Linkus Mobile Client: the QR Code is valid in {{.LoginCredentialsValidityPeriod}} day(s) and can be used once.<br/>{{.MobileQRCode}}<br/>2. Login Link for Linkus Mobile and Desktop Client: the Login Link is valid in {{.LoginCredentialsValidityPeriod}} day(s) and can be used once.<br/>{{.MobileDesktopLoginLink}}<br/>3. Login Links for Linkus Web Client: the Login Links are valid in {{.LoginCredentialsValidityPeriod}} day(s) and can be used once.<br/>Local Network Login Link for Linkus Web Client: {{.WebLoginLinkIn}}<br/>Public Network Login Link for Linkus Web Client: {{.WebLoginLinkExt}}<br/><br/>Linkus Mobile Client<br/>1. Download Linkus Mobile Client by scanning QR code or download from your <a href=\"https://apps.apple.com/us/app/linkus-mobile-client/id1158760574\" target=\"\">APP Store</a> or <a href=\"https://play.google.com/store/apps/details?id=com.yeastar.linkus\" target=\"\">Google Play</a>.<br/>2. Copy the Login Link then open the Linkus Mobile Client or scan the QR code via the Linkus Mobile Client<br/>3. Linkus will detect and get the account information automatically, please confirm then click OK.<br/><br/>Linkus Desktop Client<br/>1. Download Linkus Desktop Client from <a href=\"https://www.yeastar.com/linkus-download/\" target=\"\">Yeastar.com</a>.<br/>2. Copy the Login Link then open the Linkus Desktop Client.<br/>3. Linkus will detect and get the account information automatically, please confirm then click OK to login.<br/><br/>Linkus Web Client<br/>1. Open your browser.<br/>2. If you are on the same local network as the PBX, access the Linkus Web Client via the Local Network Login Link. If you are on the public network, copy the Public Network Login Link and paste it in the address bar of your browser to access the client.<br/><br/>The Yeastar Team",
"vars": "{{.PBXName}}: The name of this PBX. It can be set up in <b>PBX Settings > Preferences</b>.<br/>{{.PBXSN}}: PBX Serial Number<br/>{{.PBXLANIP}}: PBX LAN IP Address<br/>{{.PBXWANIP}}: PBX WAN IP Address.<br/>{{.ExtensionNumber}}: the extension number of the user.<br/>{{.ExtensionName}}: the extension name of the user.<br/>{{.ExtensonUserName}}: the username of the user. This username can be used to log into Linkus Mobile Client, Desktop Client, and Web Client.<br/>{{.ExtensionVoicemailPIN}}: the voicemail PIN number of the user.<br/>{{.ReadVoicemailFeatureCode}}: the feature code for users to access voicemails.<br/>{{.ReadVoicemailNumber}}: the number for users to access user's own voicemails.<br/>{{.MobileQRCode}}: the QR code which can be scanned to log into Linkus Mobile Client.<br/>{{.MobileDesktopLoginLink}}: the quick login link to log into Linkus Mobile Client and Linkus Desktop Client.<br/>{{.WebLoginLinkIn}}: the quick login link for the user to access Linkus Web Client when on the same local network as the PBX. When using this link to login, the user doesn't need to enter the username and password.<br/>{{.WebLoginLinkInIPv6}}: the quick login IPv6 link for the user to access Linkus Web Client when on the same local network as the PBX. When using this link to login, the user doesn't need to enter the username and password.<br/>{{.WebLoginLinkExt}}: the quick login link for the user to access Linkus Web Client when on the public network. When using this link to login, the user doesn't need to enter the username and password.<br/>{{.WebLoginAddressIn}}: the Internal Web Login Address for Linkus Web Client when the user is in the office.<br/>{{.WebLoginAddressInIPv6}}: the Internal Web Login Address for Linkus Web Client when the user is in the office.<br/>{{.WebLoginAddressExt}}: the External Web Login Address for Linkus Web Client when the user is out of the office.<br/>{{.LoginCredentialsValidityPeriod}}: the validity period of login credentials.",
"login_credentials_validity_period": 1
}
}