# Single Send API not recognizing personalization token input

**URL:** <https://community.hubspot.com/t/single-send-api-not-recognizing-personalization-token-input/64311>\
**Category:** APIs & Integrations\
**Tags:** email\
**Created:** [September 1, 2022, 8:54pm UTC](https://community.hubspot.com/t/single-send-api-not-recognizing-personalization-token-input/64311 "2022-09-01T20:54:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NWackowski](https://avatars.discourse-cdn.com/v4/letter/n/aca169/32.png) [@NWackowski](https://community.hubspot.com/u/NWackowski)\
**Post date:** [September 1, 2022, 8:54pm UTC](https://community.hubspot.com/t/single-send-api-not-recognizing-personalization-token-input/64311/1 "2022-09-01T20:54:13Z")

</div>

I am trying to set up an API call to send an email in Hubspot by following this documentation: [https://legacydocs.hubspot.com/docs/methods/email/transactional\_email/single-send-overview](https://legacydocs.hubspot.com/docs/methods/email/transactional_email/single-send-overview)

The personalization token’s internal name in Hubspot is ‘reports\_list’.

The body of the api request is this:

**{“emailId”:XXX,**

**“message”:{“[to":"XXX@XXX.com](mailto:to%22:%22XXX@XXX.com)”},**

**“customProperties”:[{“name”:“reports\_list”,“value”:“\<ul\>\<li\>first list element\</li\>\<li\>second list element\</li\>\</ul\>”}]}**

(I replaced the email ID and email address with ‘XXX’ for what are hopefully obvious reasons)

I then run the following code:

var apiRequest = new RestRequest($'/email/public/v1/singleEmail/send?hapikey={apiKey}");

// (code to set up the body, a json object, the exact value of which is pasted above in bold)

apiRequest.AddJsonBody(body)

var apiResponse = client.Post(apiRequest)

The email sends correctly, to the specified user, with the specified email ID, but instead of replacing the ‘reports\_list’ personalization token in the email with “\<ul\>\<li\>first list element\</li\>\<li\>second list element\</li\>\</ul\>”, it just uses the default value.

Any ideas what might be going wrong?

---

<div class="post-metadata">

**Author:** ![coldrickjack](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/coldrickjack/32/6684_2.png) [@coldrickjack](https://community.hubspot.com/u/coldrickjack)\
**Post date:** [September 2, 2022, 12:28pm UTC](https://community.hubspot.com/t/single-send-api-not-recognizing-personalization-token-input/64311/2 "2022-09-02T12:28:03Z")

</div>

Hi @NWackowski,

When I make a request: POST [https://api.hubapi.com/email/public/v1/singleEmail/send](https://api.hubapi.com/email/public/v1/singleEmail/send) with payload below:

`{"emailId": XXXXX,"message": { "to": "test@example.com"},"customProperties": [{ "name": "report_list", "value": "<ul><li>first list element</li><li>second list element</li></ul>"}]}`

It’s working fine for me (see below):

 ![Screenshot 2022-09-02 at 13.26.07.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/3/23fdd9136d7c09a468061a65ef84da8638576426.png)

One thing to check is that you’ve included the correct token in the email template. It should be **{{ custom.propertyName }}** so in your case **{{ custom.report\_list }} .** See screenshot below:

 ![Screenshot 2022-09-02 at 13.27.34.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/7/27a8cf14e425b21f5fcb75b722256ce4fab9d06e.png)
