Create a template.

post/v1/mailboxes/{mailboxId}/templates

Request

  • The document declares no server URL.
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL /authorize, token URL /oauth/token, scopes: email.write)
    • HTTP bearer

Path parameters

mailboxIdstring required

Request body

namestring required

Display names are capped at 200 characters.

subjectstring required

RFC 5322 caps a subject line at 998 characters.

htmlstring

Per-part body cap — generous for transactional mail, bounds abuse and cost.

textstring

Per-part body cap — generous for transactional mail, bounds abuse and cost.

Response

The request has succeeded and a new resource has been created as a result.

idstring required
namestring required
subjectstring required
htmlstring nullable required
textstring nullable required
variablesstring[] required

The merge variables found in the subject and body, so a caller knows what data must supply.

createdAtstring date-time required
updatedAtstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.