Skip to content

Get Email Templates

GET
/v1/templates

Retrieves the list of email templates available in your account.

Email templates retrieved successfully

Array<object>
object
template_id

The unique identifier of the template

string
template123
name

The name of the template

string
Welcome Email
subject

The subject line of the template

string
Welcome to Our Service
from_name

The sender display name

string
John Doe
from_email

The sender email address

string format: email
john@doe.com
status

Whether the template is active

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

Unauthorized — invalid or missing API token

object
status
boolean
message
string
An http error occurred. If error persists, contact soporte@contacta.mx
data
object
message
string
code
integer
Example
{
"status": false,
"message": "An http error occurred. If error persists, contact soporte@contacta.mx",
"data": {
"message": "Your key auth is not valid, please check with your administrator",
"code": 401
}
}

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>"