# How to pass attachments in a webhook?
# Symptoms

How to pass attachments in a ticket via webhook?

# Solution

In the webhook data, specify:

```json
"attachments": [{% for attach in event.ticket_comment.attachments.all() %}
    {
      "public_url": "{{ attach.public_url }}",
      "mime_type": "{{ attach.mime_type }}"
    }{% if not loop.last%},{% endif %}
  {% endfor %}
  ]
```

:::danger
If the server has the `__`**`private`**`_attachments feature flag enabled, then attached attachments will not display a public URL, only those in the text will.
:::