# Create Email-Article via API

**URL:** https://community.zammad.org/t/create-email-article-via-api/20025
**Category:** Technical assistance
**Created:** [April 14, 2026, 12:45pm UTC](https://community.zammad.org/t/create-email-article-via-api/20025 "2026-04-14T12:45:11Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Marsoner.Lukas](https://community.zammad.org/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@Marsoner.Lukas](https://community.zammad.org/u/Marsoner.Lukas)
#### Post date: [April 14, 2026, 12:45pm UTC](https://community.zammad.org/t/create-email-article-via-api/20025/1 "2026-04-14T12:45:11Z")

</div>

### Infos:

- Used Zammad version: 7.0.1.2
- Used Zammad installation type: SaaS
- Operating system: N/A
- Browser + version: N/A

### Expected behavior:

We’d like to:

1. Create a Ticket via the ticket API with an article of type “email”
2. Add an Article of type “email” to an existing ticket via the article API

both without this triggering an email to be send out.

We’d like to do this because:

1. We plan on performing a number of classification- and enriching-steps on incoming emails before tickets are created and we can pass all of those to the ticket directly if we create it via API
2. We still want the agent to be able to use the “reply to” feature of email-type articles

### Actual behavior:

Whenever adding an article of type “email” an email is being send-out by the system. We found no way to suppress this

### Steps to reproduce the behavior:

Use the Zammad-Ticket-API to create a new ticket with e.g. the following payload:

```auto
{
   "title": "Ticket with email",
   "group": "People working on emails",
   "customer": "test@test.com",
   "article": {
      "subject": "Email subject",
      "body": "Email body",
      "type": "email",
      "from": "John Sender <john.sender@test.com>",
      "to": "recipient@test.com",
      "content_type": "text/html",
      "internal": false
   }
}

```

---

<div class="post-metadata">

### Author: ![richie\_77](https://community.zammad.org/user_avatar/community.zammad.org/richie_77/32/5964_2.png) [@richie\_77](https://community.zammad.org/u/richie_77)
#### Post date: [April 15, 2026, 6:45am UTC](https://community.zammad.org/t/create-email-article-via-api/20025/2 "2026-04-15T06:45:41Z")

</div>

What kind of email is send out? Are these notification emails? If so, you can edit your profile to get only notifications for specific groups or actions.

---

<div class="post-metadata">

### Author: ![Marsoner.Lukas](https://community.zammad.org/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@Marsoner.Lukas](https://community.zammad.org/u/Marsoner.Lukas)
#### Post date: [April 15, 2026, 7:01am UTC](https://community.zammad.org/t/create-email-article-via-api/20025/3 "2026-04-15T07:01:29Z")

</div>

Hi, no it’s the article itself that is send-out.

So in in my example this would be an email with:

**Subject:** _Email subject_  
**Body:** _Email body_

---

<div class="post-metadata">

### Author: ![richie\_77](https://community.zammad.org/user_avatar/community.zammad.org/richie_77/32/5964_2.png) [@richie\_77](https://community.zammad.org/u/richie_77)
#### Post date: [April 15, 2026, 8:18am UTC](https://community.zammad.org/t/create-email-article-via-api/20025/4 "2026-04-15T08:18:07Z")

</div>

What is the sender of this email? I mean that notifications contain the email body and the subject.

---

<div class="post-metadata">

### Author: ![Marsoner.Lukas](https://community.zammad.org/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@Marsoner.Lukas](https://community.zammad.org/u/Marsoner.Lukas)
#### Post date: [April 15, 2026, 8:42am UTC](https://community.zammad.org/t/create-email-article-via-api/20025/5 "2026-04-15T08:42:36Z")

</div>

This I think illustrates it well. Here we tested setting the “to” address to an address from which emails are imported to Zammad and this resulted in the email created via API being added to the ticket again

 ![ticket](https://community.zammad.org/uploads/default/original/2X/f/f85ae9f5e9bbe036375856ecd269c3c99513a6a4.jpeg)

Here a view of the raw-data of the email that was received

 ![email](https://community.zammad.org/uploads/default/original/2X/2/26f2b4e56ebb68b183b9241d97e07216be3692e7.png)

It seems to be the original email while updates look like this for us

 ![notification](https://community.zammad.org/uploads/default/original/2X/d/dd509cdc401c08f0d0aaf81201507a69e74dc826.jpeg)

---

<div class="post-metadata">

### Author: ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)
#### Post date: [April 15, 2026, 10:39am UTC](https://community.zammad.org/t/create-email-article-via-api/20025/6 "2026-04-15T10:39:00Z")

</div>

If you only need the from header and no CC, the phone note is a very well working workaround. It also has the reply button.

---

<div class="post-metadata">

### Author: ![Marsoner.Lukas](https://community.zammad.org/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@Marsoner.Lukas](https://community.zammad.org/u/Marsoner.Lukas)
#### Post date: [April 15, 2026, 11:17am UTC](https://community.zammad.org/t/create-email-article-via-api/20025/7 "2026-04-15T11:17:44Z")

</div>

Worked like a charm - thank you 🙂

We’ve set the email we want to reply-to as the “to” field and it got populated in the recipient when using “reply”

We’ll try! For our first use-case this will be fine but later we’ll need to handle cc. We could do this by just maintaining multiple addresses in the “to”. Can this be done?

Cheers  
Lukas

---

<div class="post-metadata">

### Author: ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)
#### Post date: [April 20, 2026, 8:08pm UTC](https://community.zammad.org/t/create-email-article-via-api/20025/8 "2026-04-20T20:08:02Z")

</div>

You can add several `to`addresses in the articles attribute or even use `cc` for that. `cc` is cleaner in my opinion.

---

<div class="post-metadata">

### Author: ![Marsoner.Lukas](https://community.zammad.org/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@Marsoner.Lukas](https://community.zammad.org/u/Marsoner.Lukas)
#### Post date: [April 21, 2026, 6:20am UTC](https://community.zammad.org/t/create-email-article-via-api/20025/9 "2026-04-21T06:20:50Z")

</div>

Morning ☀

I did a bit of testing:

CC works but does not populate the cc in the “reply”

 ![image](https://community.zammad.org/uploads/default/original/2X/c/cdf3fb8c39218b8482ef362b993aaf8fab54b9cc.png)

TO works fine

 ![image](https://community.zammad.org/uploads/default/original/2X/5/5a43509ebc50b85abcb000add47e21b3c9ff7ae4.png)

I think this is fine 🙂

I’ll request suppressing the automatic sending of emails when articles are created as a new feature.

Thank you very much for the help ❤

Cheers  
Lukas

---

<div class="post-metadata">

### Author: ![fliebe92](https://community.zammad.org/user_avatar/community.zammad.org/fliebe92/32/12102_2.png) [@fliebe92](https://community.zammad.org/u/fliebe92)
#### Post date: [April 21, 2026, 6:38am UTC](https://community.zammad.org/t/create-email-article-via-api/20025/10 "2026-04-21T06:38:49Z")

</div>

Hi.

Your `To`/`Cc` fields in the UI look strange, like an array. Are you sure that this is correct?

---

<div class="post-metadata">

### Author: ![Marsoner.Lukas](https://community.zammad.org/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@Marsoner.Lukas](https://community.zammad.org/u/Marsoner.Lukas)
#### Post date: [April 21, 2026, 6:50am UTC](https://community.zammad.org/t/create-email-article-via-api/20025/11 "2026-04-21T06:50:26Z")

</div>

Hi 🙂

I’ve created it as:

```auto
    article_payload = {
        "ticket_id": ticket_id,
        "subject": article_subject,
        "body": article_body,
        "to": ["lukas.marsoner@unite.eu"],
        "cc": ["lukas.marsoner@mercateo.com"],
        "type": "phone", # or 'email' depending on use
        "internal": False
    }

```

it looks a bit strange but works fine 🙂

---

<div class="post-metadata">

### Author: ![fliebe92](https://community.zammad.org/user_avatar/community.zammad.org/fliebe92/32/12102_2.png) [@fliebe92](https://community.zammad.org/u/fliebe92)
#### Post date: [April 22, 2026, 12:02pm UTC](https://community.zammad.org/t/create-email-article-via-api/20025/12 "2026-04-22T12:02:12Z")

</div>

`to` and `cc` should be strings IMO. 🙂

---

<div class="post-metadata">

### Author: ![Marsoner.Lukas](https://community.zammad.org/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@Marsoner.Lukas](https://community.zammad.org/u/Marsoner.Lukas)
#### Post date: [April 22, 2026, 1:01pm UTC](https://community.zammad.org/t/create-email-article-via-api/20025/13 "2026-04-22T13:01:38Z")

</div>

Works fine but other than visual-representation the result is the same 🙂

 ![image](https://community.zammad.org/uploads/default/original/2X/d/d42fb60b9e1eaf123df715aef5a0217bbfddc521.png)

---

<div class="post-metadata">

### Author: ![Marsoner.Lukas](https://community.zammad.org/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@Marsoner.Lukas](https://community.zammad.org/u/Marsoner.Lukas)
#### Post date: [April 23, 2026, 2:20pm UTC](https://community.zammad.org/t/create-email-article-via-api/20025/14 "2026-04-23T14:20:33Z")

</div>

I actually got this to work setting the “sender” to “Customer”. Did not want to let that unmentioned 🙂

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [April 30, 2026, 2:21pm UTC](https://community.zammad.org/t/create-email-article-via-api/20025/15 "2026-04-30T14:21:17Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
