Szablony

Utwórz szablon

Zapisuje szablon z placeholderami {{klucz}} (klucz: litery, cyfry, podkreślenie). type domyślnie sms; dla mms w body podaj dokument SMIL, a temat w subject; vms to szablon wiadomości głosowej. Wymaga zakresu manage.

post/v1/templates

Request

  • Base URL: https://api.przypominamy.com
  • URL: https://api.przypominamy.com/v1/templates
  • Auth: HTTP bearer

Request body

namestring required
type'sms' | 'mms' | 'vms'

Domyślnie sms

bodystring required

Treść z placeholderami {{klucz}}

subjectstring nullable

Temat (tylko MMS)

Example request

{
  "name": "Wizyta",
  "body": "Cześć {{imie}}, wizyta {{kiedy}} u {{lekarz}}."
}

Response

Utworzono

idstring
namestring
type'sms' | 'mms' | 'vms'

Kanał, do którego pasuje szablon - musi zgadzać się z endpointem wysyłki

bodystring

Treść z placeholderami {{klucz}} (dla MMS - dokument SMIL)

subjectstring nullable

Temat (tylko MMS)

placeholdersstring[]

Placeholdery znalezione w body, małymi literami

created_atstring date-time
updated_atstring date-time

Example response

{
  "id": "tpl_Q3m7kL2pXa9dRt",
  "name": "Wizyta",
  "body": "Cześć {{imie}}, wizyta {{kiedy}} u {{lekarz}}.",
  "placeholders": [
    "imie",
    "kiedy",
    "lekarz"
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.