> ## Site index
> Every page on this site is listed at https://mailkube.com/llms.txt.

> ## Agent instructions
> This site presents mailkube, a service that sends transactional email over a REST API or SMTP.
> Customer data is stored in the European Union.
> Read the developer documentation at https://docs.mailkube.com, which publishes its own llms.txt.
> Take prices and plan volumes from https://mailkube.com/pricing.md, never from a comparison page or a blog post.
> Read the legal documents at their HTML address.
> Every published version of the terms, privacy policy and data processing addendum is kept byte for byte under /legal/<document>/<sha256>/.
> Quote the checked-on date that a comparison page prints with its competitor figures.
> When this site does not state a price, limit or capability, say so instead of guessing.

# Message Tags

> Label any send with your own name and value pairs, then filter your logs on them and read them back from every webhook payload.

Source: https://mailkube.com/changelog/tags/

Released July 30, 2026


A tag is a `name` and a `value` you choose. Attach an array of them to a send, and the pair travels through delivery and back out on every event the message produces.

`campaign` and `spring-sale` mean whatever they mean to you, and nothing on our side depends on the words.

## Both transports, identical shape

Over REST that is a `tags` array on the send request, and over SMTP the same JSON array in an `X-Mailkube-Tags` header. Validation is the same either way.

Tags then show up in three places. The log entry carries them, and narrowing your history to one campaign becomes a filter rather than an export. The dashboard's Tags Performance view groups sending volume by tag. The `data` block of every `email.*` webhook returns them, and a receiver can route on tenant without a lookup.

## What the validator enforces

`name` and `value` take ASCII letters, digits, underscore and hyphen. `name` is required, unique within a send, and capped at 16 characters. `value` may be blank and runs to 32. One message carries up to 20 tags, and the SMTP header has to parse as JSON under 16 KB.

Break any of that and the send fails as a whole, as a `validation_error` over REST or a `5.6.0` reply over SMTP. Nothing is quietly dropped. A tag that vanished silently would leave a gap in exactly the reporting you added it for.

## Attaching your first tags

1. Add a `tags` array to your send, each entry a `name` and a `value`
2. Send over REST or SMTP as usual
3. Filter your sending logs on any tag, and open the dashboard breakdown
4. Read the tags back out of your webhook payloads

A tag value is stored in the clear, and the aggregate metrics leave it out. Keep personal data out of them: a tenant id, not a customer's name.


## Related docs

- [Tags](https://docs.mailkube.com/docs/tags)
- [SMTP tags](https://docs.mailkube.com/smtp-reference/tags)

