Message Templates

Events that occur when a new message template is created or the message template object is updated or deleted.

message_template.created

{
  "data": {
    "id": "bb2df9dd-5d46-4488-80a5-df1e278553ac",
    "title": "Whippy Message Template",
    "message": "Thanks for all the fish!",
    "created_at": "2023-09-26T15:55:43.771415Z",
    "updated_at": "2023-09-26T15:55:43.771415Z",
    "attachments": [
      {
        "url": "https://whippy-public-api-example.s3.us-west-2.amazonaws.com/cat.jpg",
        "content_type": "image/jpeg"
      }
    ],
    "channel_ids": [],
    "access_level": "organization",
    "created_by_id": 42,
    "updated_by_id": null,
    "organization_id": "be1ecaf2-9ce7-448c-8755-e5009ccc4345"
  },
  "event": "message_template.created",
  "request_id": "19bf7d28-6009-471e-b97c-991d9c0efb7b"
}

message_template.updated

{
  "data": {
    "id": "bb2df9dd-5d46-4488-80a5-df1e278553ac",
    "title": "Whippy Message Template",
    "message": "Don't Panic.",
    "created_at": "2023-09-26T15:55:43.771415Z",
    "updated_at": "2023-09-26T15:55:53.433021Z",
    "attachments": [],
    "channel_ids": [],
    "access_level": "organization",
    "created_by_id": 42,
    "updated_by_id": 84,
    "organization_id": "be1ecaf2-9ce7-448c-8755-e5009ccc4345"
  },
  "event": "message_template.updated",
  "request_id": "9159ae38-5558-43d9-ace8-dccc5112a4fb"
}

message_template.deleted

{
  "data": {
    "id": "bb2df9dd-5d46-4488-80a5-df1e278553ac",
    "title": "Whippy Message Template",
    "message": "Don't Panic.",
    "created_at": "2023-09-26T15:55:43.771415Z",
    "updated_at": "2023-09-26T15:55:53.433021Z",
    "attachments": [],
    "channel_ids": [],
    "access_level": "organization",
    "created_by_id": 42,
    "updated_by_id": 84,
    "organization_id": "be1ecaf2-9ce7-448c-8755-e5009ccc4345"
  },
  "event": "message_template.deleted",
  "request_id": "905c5573-c528-47d3-9995-ce18eb7bfbd7"
}