curl --request POST \
--url https://management.stytch.com/pwa/v3/projects/:project_slug/email_templates \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"template_id": "<string>",
"name": "<string>",
"sender_information": {
"from_local_part": "<string>",
"from_domain": "<string>",
"from_name": "<string>",
"reply_to_local_part": "<string>",
"reply_to_name": "<string>"
},
"prebuilt_customization": {
"button_border_radius": 123,
"button_color": "<string>",
"button_text_color": "<string>",
"font_family": "ARIAL",
"text_alignment": "LEFT"
},
"custom_html_customization": {
"template_type": "LOGIN",
"html_content": "<string>",
"plaintext_content": "<string>",
"subject": "<string>"
}
}
'{
"request_id": "<string>",
"email_template": {
"template_id": "<string>",
"name": "<string>",
"sender_information": {
"from_local_part": "<string>",
"from_domain": "<string>",
"from_name": "<string>",
"reply_to_local_part": "<string>",
"reply_to_name": "<string>"
},
"prebuilt_customization": {
"button_border_radius": 123,
"button_color": "<string>",
"button_text_color": "<string>",
"font_family": "ARIAL",
"text_alignment": "LEFT"
},
"custom_html_customization": {
"template_type": "LOGIN",
"html_content": "<string>",
"plaintext_content": "<string>",
"subject": "<string>"
}
},
"status_code": 123
}Create creates an email template for a project.
curl --request POST \
--url https://management.stytch.com/pwa/v3/projects/:project_slug/email_templates \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"template_id": "<string>",
"name": "<string>",
"sender_information": {
"from_local_part": "<string>",
"from_domain": "<string>",
"from_name": "<string>",
"reply_to_local_part": "<string>",
"reply_to_name": "<string>"
},
"prebuilt_customization": {
"button_border_radius": 123,
"button_color": "<string>",
"button_text_color": "<string>",
"font_family": "ARIAL",
"text_alignment": "LEFT"
},
"custom_html_customization": {
"template_type": "LOGIN",
"html_content": "<string>",
"plaintext_content": "<string>",
"subject": "<string>"
}
}
'{
"request_id": "<string>",
"email_template": {
"template_id": "<string>",
"name": "<string>",
"sender_information": {
"from_local_part": "<string>",
"from_domain": "<string>",
"from_name": "<string>",
"reply_to_local_part": "<string>",
"reply_to_name": "<string>"
},
"prebuilt_customization": {
"button_border_radius": 123,
"button_color": "<string>",
"button_text_color": "<string>",
"font_family": "ARIAL",
"text_alignment": "LEFT"
},
"custom_html_customization": {
"template_type": "LOGIN",
"html_content": "<string>",
"plaintext_content": "<string>",
"subject": "<string>"
}
},
"status_code": 123
}Documentation Index
Fetch the complete documentation index at: https://stytch.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.