---
title: "Emails (Stripo)"
description: "Emails"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/stripo/Stripo.Emails.Emails
original: https://documentation.invantive.eu/en/datamodels/stripo/Stripo.Emails.Emails
updated: 2026-11-04T13:25:55Z
license: https://documentation.invantive.eu/en/
---

# Emails: Stripo Emails

`insert` `update` `delete` `REST`

- Catalog: `Stripo`
- Schema: `Emails`
- Primary Keys: `email_id`
- Label: Emails

Can retrieve data and change data using `insert`, `update` and `delete`.

## Summary

The emails of the project. An insert creates one from html and css, or from mjml; an update of name, title or preheader waits for the background operation of Stripo, an update of html or css overwrites the content.

## API Source

- Endpoint: `/v1/emails`

## Table Columns

The columns of the table `Emails` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `created_time` | `datetime` | itgen_stripo_created_time | [x] | filters on the platform, writable | When the row was created, UTC. |
| `css` | `varchar2` | itgen_stripo_css | [ ] | filters on the platform, writable | Write only: the CSS of the email. |
| `editor_url` | `varchar2` | itgen_stripo_editor_url | [x] | filters on the platform, writable | The URL to edit the email in the Stripo editor. |
| `email_id` | `int64` | itgen_stripo_email_id | [x] | filters on the platform, writable | The id of the email. |
| `folder_id` | `int64` | itgen_stripo_folder_id | [ ] | filters on the platform, writable | The folder of the email; null when in no folder. Set on insert; a move is the procedure move_emails of the package stripo. |
| `has_amp` | `char` | itgen_stripo_has_amp | [x] | filters on the platform, writable | Whether there is AMP content. |
| `html` | `varchar2` | itgen_stripo_html | [ ] | filters on the platform, writable | Write only: the HTML of the email. Read it from EmailContents. |
| `language` | `varchar2` | itgen_stripo_language | [ ] | filters on the platform, writable | The language of the content. |
| `mjml` | `varchar2` | itgen_stripo_mjml | [ ] | filters on the platform, writable | Write only, on insert: MJML markup Stripo compiles into the email, instead of html and css. |
| `name` | `varchar2` | itgen_stripo_name | [x] | filters on the platform, writable | The name of the email in the Stripo project. |
| `preheader` | `varchar2` | itgen_stripo_preheader | [ ] | filters on the platform, writable | The preheader: the text a mail client shows after the subject. Stripo trims it and turns every run of white space into one space. |
| `preview_image` | `varchar2` | itgen_stripo_preview_image | [ ] | filters on the platform, writable | The URL of a preview image; null until Stripo rendered one. |
| `preview_url` | `varchar2` | itgen_stripo_preview_url | [x] | filters on the platform, writable | The URL of a preview that can be shared. |
| `tags` | `varchar2` | itgen_stripo_tags | [ ] | filters on the platform, writable | Write only, on an insert from mjml: comma-separated tags. |
| `title` | `varchar2` | itgen_stripo_title | [ ] | filters on the platform, writable | The subject line. Stripo trims it and turns every run of spaces, tabs and line breaks into one space. |
| `updated_time` | `datetime` | itgen_stripo_updated_time | [x] | filters on the platform, writable | When the row was last changed, UTC. |
| `utm_campaign` | `varchar2` | itgen_stripo_utm_campaign | [ ] | filters on the platform, writable | The UTM campaign added to the links. |
| `utm_content` | `varchar2` | itgen_stripo_utm_content | [ ] | filters on the platform, writable | The UTM content added to the links. |
| `utm_medium` | `varchar2` | itgen_stripo_utm_medium | [ ] | filters on the platform, writable | The UTM medium added to the links. |
| `utm_source` | `varchar2` | itgen_stripo_utm_source | [ ] | filters on the platform, writable | The UTM source added to the links. |
| `utm_term` | `varchar2` | itgen_stripo_utm_term | [ ] | filters on the platform, writable | The UTM term added to the links. |

## Keys

| Key | Column | Refers to | Kind | Description |
|---|---|---|---|---|
| `Emails_folder_id_fk` | `folder_id` | [EmailFolders](Stripo.Emails.EmailFolders)`.folder_id` | Key |  |

## Referenced By

- [EmailContents](Stripo.Emails.EmailContents) `email_id` (Key)
- [EmailCustomUtms](Stripo.Emails.EmailCustomUtms) `email_id` (Key)
- [EmailTranslatedVersions](Stripo.Emails.EmailTranslatedVersions) `email_id` (Textual)
- [EmailTranslatedVersions](Stripo.Emails.EmailTranslatedVersions) `original_email_id` (Key)

## Sample Queries

```sql
select eml.email_id
,      eml.name
,      eml.title
,      eml.updated_time
from   Stripo.Emails.Emails eml
order
by     eml.updated_time desc
```

