curl --request POST \
--url https://api.ckpnd.com:5001/v1/templates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"template_id": "3ipuupaeddshx"
}
'[
{
"template_id": "4cc1z0qi0azp",
"name": "Test Email Template",
"html": "<!doctype html>\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <title>My new email template</title></head><body></body>\n</html>",
"creationDateTime": "2019-05-07T21:44:07.000Z"
}
]Templates
Obtener plantillas de email
Obtiene las plantillas de correo electrónico creadas en el editor de plantillas.
- Si envías
template_id, retorna solo esa plantilla - Si no envías
template_id, retorna todas las plantillas de tu cuenta
POST
/
v1
/
templates
curl --request POST \
--url https://api.ckpnd.com:5001/v1/templates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"template_id": "3ipuupaeddshx"
}
'[
{
"template_id": "4cc1z0qi0azp",
"name": "Test Email Template",
"html": "<!doctype html>\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <title>My new email template</title></head><body></body>\n</html>",
"creationDateTime": "2019-05-07T21:44:07.000Z"
}
]Authorizations
Usa tu API Key como Bearer token en el header Authorization.
Ejemplo: Authorization: Bearer YOUR_API_KEY
Obtén tu API Key en la página de Settings.
Body
application/json
ID de una plantilla específica. Si no se envía, se retornan todas las plantillas del usuario
Example:
"3ipuupaeddshx"
Response
Lista de plantillas encontradas

