Add Email Template

Create a new email template (use POST for long/special character content). invokeName must be unique under the API_USER; each API_USER can hold at most 1000 templates; the template is stored already approved (no review flow via API).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Form Data
string
required

Authentication credential; invalid credentials return 40005.

string
required

Authentication credential; invalid credentials return 40005.

string
required
length ≤ 64

Calling name of the new template, must be unique under the current apiUser (duplicate → 40220; longer than 64 chars → 40202). No charset restriction — hyphens/special characters are accepted (165 No.4110).

string
required
length ≤ 64

Name of the new template (management display). Missing → 40207; longer than 64 chars → 40208. NOTE: an EMPTY STRING is accepted by the checker (only length > 64 is rejected).

string
required

Template content in HTML format (supports variable substitution). Missing → 40211; empty string → 40212; content containing JavaScript → 40231. No length ceiling enforced by the API checker.

string

Template content in plain text format (optional). Empty string → 40214.

string
required
length between 1 and 512

Default subject of the new template. Missing → 40209; empty or longer than 512 chars → 40210.

integer
enum
required

Template type (0 = triggered, 1 = bulk). Missing → 40203; other values → 40204.

Allowed:
integer
enum
Defaults to 0

Template edit type (0 = RTE, 3 = Code); defaults to 0 when omitted. Any other value → 40233.

Allowed:
Response

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json