Skip to content

Get Email Templates

GET
/v1/templates

Retrieves a list of email templates.

This method is suitable for production usage and allows you to manage your email templates.

A list of email templates.

Array<object>
object
template_id

The unique identifier of the template.

string
name

The name of the template.

string
subject

The subject of the template.

string
from_name

The email address of the sender.

string
John Doe
from_email

The email address of the sender.

string format: email
john@doe.com
status

Indicates whether the template is active or not.

boolean
true
Examples

Example response

[
{
"template_id": "template123",
"name": "Welcome Email",
"subject": "Welcome to Our Service",
"from_name": "John Doe",
"from_email": "john@doe.com"
}
]

Your key auth is not valid

object
status
boolean
error
boolean
true
message
string
Your key auth is not valid, please check with your administrator to get the new key
Example
{
"status": false,
"error": true,
"description": "Your key auth is not valid, please check with your administrator to get the new key"
}

Your account dont have credits availables for send

object
status
boolean
error
boolean
true
message
string
Your account dont have credits availables for send this, please contact your administrator
Example
{
"status": false,
"error": true,
"description": "Your account dont have credits availables for send this, please contact your administrator"
}

Missing required parameters

object
status
boolean
error
boolean
true
message
string
Missing params, please verify or contact to support
Example
{
"status": false,
"error": true,
"description": "Missing params, please verify or contact to support"
}

Useful for guiding users to view code examples in different developer languages.

developer@developer:~#
curl -X GET "https://api.example.com/v1/templates" \
-H "Accept: application/json" \
-H "Connection: keep-alive" \
-H "Authorization: Bearer <your-token>"