Retrieve an Email Template Default Content

GET {{baseUrl}}/api/v1/brands/:brandId/templates/email/:templateName/default-content

Retrieves an email template's default content

Request Params

KeyDatatypeRequiredDescription
languagenullThe language to use for the email. Defaults to the current user's language if unspecified.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"subject":"Welcome to ${org.name}!","body":"\u003c!DOCTYPE html\u003e\u003chtml\u003e\u003cbody\u003e\u003cp\u003eHello, ${user.profile.firstName}. Click \u003ca href=\"${activationLink}\"\u003ehere\u003c/a\u003e to activate your account.\u003c/body\u003e\u003c/html\u003e","_links":{"self":{"href":"https://{yourOktaDomain}/api/v1/brands/{brandId}/templates/email/UserActivation/default-content","hints":{"allow":["GET"]}},"template":{"href":"https://{yourOktaDomain}/api/v1/brands/{brandId}/templates/email/UserActivation","hints":{"allow":["GET"]}},"preview":{"href":"https://{yourOktaDomain}/api/v1/brands/{brandId}/templates/email/UserActivation/default-content/preview","hints":{"allow":["GET"]}}}}