v2024-01-31
Search...
/
Support
Partner Portal
Home
Guides
API Reference
Home
Guides
API Reference
API Concepts
Overview
Environments and URLs
Authentication
API versioning
Rate limiting
HTTP headers
Pagination, sorting, and filtering
General
Access tokens
Partner settings
Webhook subscriptions
Webhook deliveries
Events
Common
Entities
Entity bank accounts
Entity persons
Entity VAT IDs
Roles
Entity users
Counterparts
Counterpart addresses
Counterpart bank accounts
Counterpart contacts
Counterpart VAT IDs
Payment records
Projects
Tags
Accounts payable
Approval policies
Approval requests
Comments
Payable line items
Payables
Purchase orders
Accounts receivable
Measure units
Overdue reminders
Payment reminders
Payment terms
Products
Receivables
Recurrences
VAT rates
Payments
Batch payments
Entity bank account verifications
Entity onboarding data
Onboarding documents
Onboarding links
Onboarding requirements
Payment intents
Payment links
Payment methods
Accounting integration
Accounting connections
Accounting data pull
Accounting synchronized records
Accounting tax rates
Ledger accounts
Utilities
Audit logs
Data export
Data export - extra data
Files
Mail templates
GET
Get All With Filters
POST
Create
POST
Preview
GET
Get All System Templates
GET
Get
DEL
Delete
PATCH
Update
POST
Make Default
Mailbox domains
Mailboxes
PDF templates
Text templates
Support
Partner Portal
Utilities
Mail templates
Create
POST
https://
api.sandbox.monite.com/v1
/
mail_templates
Create custom template
Headers
Auth
Authorization
string
Required
Bearer authentication of the form Bearer <token>, where token is your auth token.
x-monite-version
string
Required
Request
This endpoint expects an object.
body_template
string
Required
Jinja2 compatible string with email body
name
string
Required
Custom template name
subject_template
string
Required
Jinja2 compatible string with email subject
type
enum
Required
Document type of content
Show 9 enum values
is_default
boolean
Optional
Is default template
language
enum
Optional
Lowercase ISO code of language
Show 180 enum values
Response
This endpoint returns an object.
id
string
ID of email template
created_at
datetime
Template created date and time
updated_at
datetime
Template updated date and time
body_template
string
Jinja2 compatible email body template
is_default
boolean
Is default template
language
string
Lowercase ISO code of language
name
string
Name of the template
subject_template
string
Jinja2 compatible email subject template
type
string
Document type of content
Errors
422
Unprocessable Entity
500
Internal Server Error