Sign in

Create Custom Template

POST https://{organization}.myguper.com/api/sender/template-custom

Stores an organization-specific override of a template. The base template (slug) is shared across organizations; this endpoint lets a single org provide its own subject/body for one of the supported channels (smtp, whatsapp, sms).

Variables follow the same Twig-style placeholders as the default templates (e.g. {{ name }}).

Try-it values populated from environment ACME (Demo)


Authentication

Token

Send your user token in the x-guper-authorization header.

Headers

Name Type Description
x-guper-authorization * string User token issued by Guper.
Content-Type * string Always `application/json` for endpoints that accept a JSON body.

Request body

Content-Type: application/json

{
    "slug": "welcome_email",
    "type": "smtp",
    "subject": "Bem-vindo, {{ name }}!",
    "text": "Olá {{ name }}, seu cadastro foi confirmado."
}

Responses

{
    "id": 7,
    "slug": "welcome_email",
    "type": "smtp",
    "subject": "Bem-vindo, {{ name }}!",
    "text": "Olá {{ name }}, seu cadastro foi confirmado."
}

Related

Copied to clipboard