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_ |
datetime |
itgen_stripo_created_time | 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_ |
varchar2 |
itgen_stripo_editor_url | filters on the platform, writable | The URL to edit the email in the Stripo editor. | |
email_ |
int64 |
itgen_stripo_email_id | filters on the platform, writable | The id of the email. | |
folder_ |
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_ |
char |
itgen_stripo_has_amp | 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 | 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_ |
varchar2 |
itgen_stripo_preview_image | filters on the platform, writable | The URL of a preview image; null until Stripo rendered one. | |
preview_ |
varchar2 |
itgen_stripo_preview_url | 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_ |
datetime |
itgen_stripo_updated_time | filters on the platform, writable | When the row was last changed, UTC. | |
utm_ |
varchar2 |
itgen_stripo_utm_campaign | filters on the platform, writable | The UTM campaign added to the links. | |
utm_ |
varchar2 |
itgen_stripo_utm_content | filters on the platform, writable | The UTM content added to the links. | |
utm_ |
varchar2 |
itgen_stripo_utm_medium | filters on the platform, writable | The UTM medium added to the links. | |
utm_ |
varchar2 |
itgen_stripo_utm_source | filters on the platform, writable | The UTM source added to the links. | |
utm_ |
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_ |
EmailFolders. |
Key |
Referenced By
- EmailContents
email_id(Key) - EmailCustomUtms
email_id(Key) - EmailTranslatedVersions
email_id(Textual) - EmailTranslatedVersions
original_email_id(Key)
Sample Queries
select eml.email_id
, eml.name
, eml.title
, eml.updated_time
from Stripo.Emails.Emails eml
order
by eml.updated_time desc