It's possible to create links that launch the compose ticket window with pre-filled ticket details. This is useful when integrating your internal systems with Enchant.
The base URL is:
https://site.enchant.com/spa/draft/new
where site is your Enchant Help Desk ID.
Any of the following parameters can be provided as part of the URL query string:
| Query Parameter | Notes |
|---|---|
| type | One of: email, phone |
| name | The customer's name |
| The customer's email address | |
| phone | The customer's phone number |
| subject | Subject of the ticket |
| inbox | ID of the inbox. Get this from the URL when looking at the General settings of an inbox |
| message | The ticket body. Special characters (eg: space, new line) can be sent URL encoded. Max length: 3000 characters |
| cc | Comma separated list of email addresses to put into the CC field |
| bcc | Comma separated list of email addresses to put into the BCC field |
All parameters are optional. All values should be UTF-8 percent encoded (per RFC 3986).
Let's send an email to a specific customer about an expiring trial. Here's a sample URL:
https://site.enchant.com/spa/draft/new?type=email&inbox=5681df0969702d0b80000000&subject=Trial%20Expiring&email=john%40example.coms&message=Hi%20John%2C%0A%0AYour%20trial%20is%20about%20to%20expire!
Decoded, the URL has the following parameters:
| Query Parameter | Value |
|---|---|
| type | |
| inbox | 5681df0969702d0b80000000 |
| subject | Trial Expiring |
| john@example.com | |
| message | Hi John, Your trial is about to expire! |