web-push-templates

Create Web Push Template

post/v1/web-push-templates

Request

  • Base URL: https://api.elaan.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.elaan.io/v1/web-push-templates
  • Auth: none declared

Headers

authorizationstring nullable

Request body

titlestring required
bodystring
iconstring
badgestring
urlstring
dataobject
languagestring nullable
notification_type_keystring required
branding_keystring nullable

Example request

{
  "title": "Your order shipped",
  "body": "It's on its way.",
  "icon": "{{ brand.icon_url }}",
  "badge": "https://example.com/badge.png",
  "url": "https://example.com/orders/{{ order_id }}",
  "data": {
    "order_id": "{{ order_id }}"
  },
  "language": "es",
  "notification_type_key": "order_shipped",
  "branding_key": "acme"
}

Response

Successful Response

idstring required
notification_type_keystring required
branding_keystring nullable required
languagestring nullable required
variablesstring[] required
titlestring required
bodystring required
iconstring required
badgestring required
urlstring required
dataobject required

Changes

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