messagebird · Schema

Template

Properties

Name Type Description
name string The name of the template.
language string The language code.
category string The template category.
components array The template components.
status string The approval status of the template.
rejectedReason string The reason for rejection, if applicable.
createdAt string The date and time when the template was created.
updatedAt string The date and time when the template was last updated.
View JSON Schema on GitHub

JSON Schema

messagebird-template-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Template",
  "title": "Template",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the template."
    },
    "language": {
      "type": "string",
      "description": "The language code."
    },
    "category": {
      "type": "string",
      "description": "The template category."
    },
    "components": {
      "type": "array",
      "description": "The template components.",
      "items": {
        "$ref": "#/components/schemas/TemplateComponent"
      }
    },
    "status": {
      "type": "string",
      "description": "The approval status of the template.",
      "enum": [
        "NEW",
        "PENDING",
        "APPROVED",
        "REJECTED"
      ]
    },
    "rejectedReason": {
      "type": "string",
      "description": "The reason for rejection, if applicable."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when the template was created."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when the template was last updated."
    }
  }
}