# Losant API Data Export Email Error - Schemas for email

**URL:** <https://forums.losant.com/t/losant-api-data-export-email-error-schemas-for-email/4141>\
**Category:** Help\
**Tags:** workflow, losant-api\
**Created:** [October 26, 2021, 9:21am UTC](https://forums.losant.com/t/losant-api-data-export-email-error-schemas-for-email/4141 "2021-10-26T09:21:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IoT\_Hub](https://avatars.discourse-cdn.com/v4/letter/i/87869e/32.png) [@IoT\_Hub](https://forums.losant.com/u/IoT_Hub)\
**Post date:** [October 26, 2021, 9:21am UTC](https://forums.losant.com/t/losant-api-data-export-email-error-schemas-for-email/4141/1 "2021-10-26T09:21:23Z")

</div>

Good morning. I open this thread to see if someone can help me regarding how to provide an email in the Losant API Data Export node. Specifically, the format looks like this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/1/13eed2acdd9baf230627d86ce351788e625966dc.png)

The problem is that the email field only accepts hard-coded emails, and I would like that this field could come as an attribute of the payload. The problem is that the node does not accept this syntax, providing the following error:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/b/bfce5505352a444df42fdf2a46652e2d35a3095a.png)

Looking at the schemas, I see this:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/9/9261a05eb03b91d2d181875f3b67861fa52f5f83.png)

So, is there any way with which to manipulate the email coming through the payload so that the node will accept this field for me?

Thank you very much for your time

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [October 26, 2021, 12:13pm UTC](https://forums.losant.com/t/losant-api-data-export-email-error-schemas-for-email/4141/2 "2021-10-26T12:13:58Z")

</div>

Hello, here’s where the problem lies - You need to put quotes around your `{{data.email}}`. As in …

```json
{
  "email": "{{data.email}}"
}

```

This will render to something like …

```json
{
  "email": "name@domain.com"
}

```

In your case, you were setting the value as …

```json
{
  "email": {{data.email}}
}

```

And without the quotes, this renders as …

```json
{
  "email": name@domain.com
}

```

… which is not valid JSON, hence your error.

---

<div class="post-metadata">

**Author:** ![IoT\_Hub](https://avatars.discourse-cdn.com/v4/letter/i/87869e/32.png) [@IoT\_Hub](https://forums.losant.com/u/IoT_Hub)\
**Post date:** [October 26, 2021, 12:39pm UTC](https://forums.losant.com/t/losant-api-data-export-email-error-schemas-for-email/4141/3 "2021-10-26T12:39:51Z")

</div>

Thank you very much, that was it!
