Skip to content
Get started

Template Editor Sessions

You can use template editor sessions to bring the capabilities of our template editor to your website. When you create a session, you provide the template which you want to edit, and we return a session with a url that you can iframe or redirect your customers to.

When users save their changes in the editor session, it will update the underlying template. Note that sessions are only valid for 24 hours, after which point they are automatically deleted for security reasons.

You can have multiple sessions active for the same template at the same time. In general, we recommend creating a new session every time you present our editor to your users.

Note: you can use the template editor to modify templates created using HTML, but saving a session from the editor will override the original HTML content.

Create Session
print_mail.template_editor_sessions.create(TemplateEditorSessionCreateParams**kwargs) -> TemplateEditorSessionCreateResponse
POST/print-mail/v1/template_editor_sessions
List Sessions
print_mail.template_editor_sessions.list(TemplateEditorSessionListParams**kwargs) -> SyncSkipLimit[TemplateEditorSessionListResponse]
GET/print-mail/v1/template_editor_sessions
Delete Session
print_mail.template_editor_sessions.delete(strid) -> TemplateEditorSessionDeleteResponse
DELETE/print-mail/v1/template_editor_sessions/{id}
ModelsExpand Collapse
One of the following:
One of the following:
One of the following:
One of the following: