Telesign · Schema

TemplateCreationDetails

AuthenticationCommunicationsFraud PreventionPhone IntelligenceSMSVerificationTelecommunicationsMessagingVoiceEmail IntelligenceIdentityNumber MaskingAccount

Properties

Name Type Description
name string The name of this template. Use only lowercase alpha characters and underscores. For WhatsApp, the name must include "telesign_otp" if you want Telesign to generate the OTP for you. For example: "verof
type string Specifies whether the template requires verification by the channel provider or not.
channel string The channel the template is used with. Each template can only be used with one channel.
category string The category name specifying this template's use case. Only required for WhatsApp templates. Do not include any whitespace characters.
language string An abbreviation specifying the language of the text in the template. This is required for WhatsApp templates and not supported for other templates. See [Messaging - Supported languages for WhatsApp te
content array Contains properties defining the new template. The array can contain up to one instance of each object type: `header`, `body`, `footer`, `suggested_action`, and `suggested_reply`. A `body` object must
View JSON Schema on GitHub

JSON Schema

telesign-template-creation-details-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telesign/json-schema/telesign-template-creation-details-schema.json",
  "title": "TemplateCreationDetails",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telesign-templates-api-openapi.yml#/components/schemas/TemplateCreationDetails",
  "allOf": [
    {
      "$ref": "#/$defs/TemplateDetails"
    },
    {
      "type": "object",
      "properties": {
        "content": {
          "type": "array",
          "description": "Contains properties defining the new template. The array can contain up to one instance of each object type: `header`, `body`, `footer`, `suggested_action`, and `suggested_reply`. A `body` object must be included. To add the first object, select the `Add` button. To add more objects, scroll past the `suggested_reply` object and select the `Add` button again. If you select a different object without using the `Add` button, it will replace your previous selection with the new one.",
          "uniqueItems": true,
          "maxItems": 5,
          "items": {
            "$ref": "#/$defs/ContentObject"
          }
        }
      },
      "required": [
        "content"
      ]
    }
  ],
  "$defs": {
    "ContentObject": {
      "title": "ContentObject",
      "anyOf": [
        {
          "$ref": "#/$defs/header"
        },
        {
          "$ref": "#/$defs/body"
        },
        {
          "$ref": "#/$defs/footer"
        },
        {
          "$ref": "#/$defs/SuggestedAction"
        },
        {
          "$ref": "#/$defs/SuggestedReply"
        }
      ],
      "description": ""
    },
    "SuggestedAction": {
      "title": "Suggested action",
      "type": "object",
      "properties": {
        "suggested_action": {
          "type": "array",
          "description": "Each item contains properties that define a call-to-action element to include in this template. Not supported for SMS templates.",
          "maxItems": 2,
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/TemplateSuggestedAction"
          }
        }
      }
    },
    "SuggestedReply": {
      "title": "Suggested reply",
      "type": "object",
      "properties": {
        "suggested_reply": {
          "type": "object",
          "description": "Contains properties that define suggested replies to include in this template. Supported for WhatsApp templates only. [Variables](/enterprise/docs/messaging-create-whatsapp-template#variables) can be included here.",
          "properties": {
            "reply_type": {
              "type": "string",
              "enum": [
                "button",
                "list"
              ],
              "description": "The type of suggested replies to display in this template. Use `button` for WhatsApp [quick replies](https://developers.facebook.com/docs/messenger-platform/reference/buttons/quick-replies) and `list` for WhatsApp [list messages](https://developers.facebook.com/docs/whatsapp/guides/interactive-messages/#list-messages)."
            },
            "button_number": {
              "type": "integer",
              "description": "The number of buttons to include in this template. Required for suggested replies with type `buttons`.",
              "maximum": 3
            },
            "buttons": {
              "type": "array",
              "maxItems": 3,
              "minItems": 1,
              "description": "Each item contains properties that define a suggested reply button to include in this template. Required when `suggested_reply.reply_type` has the value `button`. See WhatsApp [quick replies](https://developers.facebook.com/docs/messenger-platform/reference/buttons/quick-replies).",
              "items": {
                "$ref": "#/$defs/TemplateButton"
              }
            },
            "sections": {
              "type": "array",
              "description": "Each item contains properties that define a suggested reply section to include in this template. Required for suggested replies with type `list`. See WhatsApp [list messages](https://developers.facebook.com/docs/whatsapp/guides/interactive-messages/#list-messages).",
              "minItems": 1,
              "maxItems": 10,
              "items": {
                "$ref": "#/$defs/TemplateSection"
              }
            }
          }
        }
      }
    },
    "Template": {
      "title": "Template",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "pattern": "^[a-z_]*",
          "description": "The name of this template. Use only lowercase alpha characters and underscores. For WhatsApp, the name must include \"telesign_otp\" if you want Telesign to generate the OTP for you. For example: \"verofinto_telesign_otp_wa_template\". To enable this feature and create SMS templates with the OTP auto-generated by Telesign, contact our [Customer Support Team](mailto:support@telesign.com).",
          "maxLength": 512
        }
      },
      "required": [
        "name"
      ]
    },
    "TemplateButton": {
      "title": "TemplateButton",
      "type": "object",
      "description": "Contains properties defining a button included in this template.",
      "properties": {
        "button_text": {
          "type": "string",
          "description": "Text to display on this button. This cannot be changed in individual Messaging requests using this template.",
          "maxLength": 25
        }
      },
      "required": [
        "button_text"
      ]
    },
    "TemplateDetails": {
      "title": "TemplateDetails",
      "allOf": [
        {
          "$ref": "#/$defs/Template"
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "description": "Specifies whether the template requires verification by the channel provider or not.",
              "enum": [
                "standard",
                "verified"
              ]
            },
            "channel": {
              "type": "string",
              "enum": [
                "whatsapp",
                "sms"
              ],
              "description": "The channel the template is used with. Each template can only be used with one channel. "
            },
            "category": {
              "type": "string",
              "description": "The category name specifying this template's use case. Only required for WhatsApp templates. Do not include any whitespace characters.",
              "enum": [
                "marketing",
                "utility",
                "authentication",
                "1way"
              ]
            },
            "language": {
              "type": "string",
              "description": "An abbreviation specifying the language of the text in the template. This is required for WhatsApp templates and not supported for other templates. See  [Messaging - Supported languages for WhatsApp templates](/enterprise/docs/messaging-supported-languages-for-whatsapp-templates) for a list of valid abbreviations. "
            }
          },
          "required": [
            "type",
            "channel"
          ]
        }
      ]
    },
    "TemplateSection": {
      "title": "TemplateSection",
      "type": "object",
      "description": "Contains properties defining a section in a list of options included in this template.",
      "properties": {
        "row_number": {
          "type": "integer",
          "description": "he number of rows included in this section. A maximum of 10 rows can be included across **all** sections in this template. ",
          "maximum": 10
        }
      }
    },
    "TemplateSuggestedAction": {
      "title": "TemplateSuggestedAction",
      "type": "object",
      "description": "Contains properties that define a call-to-action element to include in this template. Supported for WhatsApp templates only. [Variables](/enterprise/docs/messaging-create-whatsapp-template#variables) can be included here.",
      "properties": {
        "action_type": {
          "type": "string",
          "description": "The type of call-to-action this button provides. A button of type `dial` and one of type `url` can only be included in the same template if it is a WhatsApp template. Button types `url` and `url_dynamic` are only supported for WhatsApp templates.",
          "enum": [
            "dial",
            "url",
            "url_dynamic",
            "otp"
          ]
        },
        "otp": {
          "type": "object",
          "description": "Contains properties defining the parts of the template related to presenting a one-time passcode (OTP) so an end-user can copy it. ",
          "properties": {
            "otp_text": {
              "type": "string",
              "maxLength": 25,
              "description": "Defines the text shown on a copy code button below a one-time passcode when a WhatsApp copy code authentication template is used. The button allows the end-user to copy a one-time passcode. Use `Autofill` when a WhatsApp one-tap autofill or zero-tap authentication template is used. Required when using the authentication category for WhatsApp verified templates.  "
            },
            "package_name": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_]+",
              "description": "Lists your Android app's package name. It must match the package name set on the intent in Android and will have at least two segments (one or more dots), and each segment must start with a letter. All characters must be alphanumeric or an underscore. Required when using a WhatsApp [one-tap autofill](https://developers.facebook.com/docs/whatsapp/business-management-api/authentication-templates/autofill-button-authentication-templates) or [zero-tap](https://developers.facebook.com/docs/whatsapp/business-management-api/authentication-templates/zero-tap-authentication-templates) OTP template."
            },
            "signature_hash": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9+/=]+",
              "description": "Lists your Android app's signing key hash. It must match the installed app's signing key hash. All characters must be either alphanumeric, +, /, or = (a-zA-Z0-9+/=). Required when using a WhatsApp [one-tap autofill](https://developers.facebook.com/docs/whatsapp/business-management-api/authentication-templates/autofill-button-authentication-templates) or [zero-tap](https://developers.facebook.com/docs/whatsapp/business-management-api/authentication-templates/zero-tap-authentication-templates) OTP template.",
              "minLength": 11,
              "maxLength": 11
            },
            "zero_tap_terms_accepted": {
              "type": "boolean",
              "description": "Set to `true` to indicate that you understand that your use of [zero-tap](https://developers.facebook.com/docs/whatsapp/business-management-api/authentication-templates/zero-tap-authentication-templates) is subject to the [WhatsApp Business Terms of Service](https://www.whatsapp.com/legal/business-terms), and that it's your responsibility to ensure your end users expect that the code will be automatically filled in on their behalf when they choose to receive the zero-tap code through WhatsApp. If it is set to `false`, the template will **not** be created because you need to accept WhatsApp’s zero-tap terms before creating zero-tap enabled message templates."
            }
          }
        },
        "dial": {
          "type": "object",
          "description": "Contains properties defining a click-to-call button.",
          "properties": {
            "phone_number_to_dial": {
              "type": "string",
              "description": "The phone number for the end user's device to call when this button is selected. This is required when using click-to-call buttons."
            },
            "dial_text": {
              "type": "string",
              "description": "Text to display on this button. This is required when using click-to-call buttons."
            }
          }
        },
        "url": {
          "type": "object",
          "description": "Contains properties defining a link button.",
          "properties": {
            "url": {
              "type": "string",
              "maxLength": 2000,
              "description": "The complete URL of the destination of this link button. This cannot be modified by individual sends with this template. Required when using link buttons."
            },
            "url_text": {
              "type": "string",
              "maxLength": 25,
              "description": "Text to display on this button. Required when using link buttons."
            }
          }
        },
        "url_dynamic": {
          "type": "object",
          "description": "Contains properties defining a link button with a URL that can be dynamically modified in each message sent with this template.",
          "properties": {
            "url": {
              "type": "string",
              "maxLength": 2000,
              "description": "The base URL for the destination of this link button. Can be a static or dynamic url. In each message sent with this template you can add to this path for that send. Note that the maximum length for this value *includes the characters added to the path in any message using this template*. WhatsApp reserves 50 of the 200 characters for its own use. So you should stay far enough below this maximum to leave room for the length of characters you expect each message to add. Required when using link buttons."
            },
            "url_text": {
              "type": "string",
              "maxLength": 25,
              "description": "Text to display on this button. Required when using link buttons."
            }
          }
        }
      }
    },
    "body": {
      "title": "body",
      "type": "object",
      "properties": {
        "body": {
          "type": "object",
          "description": "Contains properties related to the body of this template. [Variables](/enterprise/docs/messaging-create-whatsapp-template#variables) can be included here.",
          "required": [
            "type"
          ],
          "properties": {
            "type": {
              "type": "string",
              "description": "The type of content to display in the body of this template.",
              "enum": [
                "text"
              ]
            },
            "text": {
              "type": "string",
              "maxLength": 1024,
              "description": "Text to display in the body of this template. This is required if the value of `type` in this object is `text`. [Variables](/enterprise/docs/messaging-create-whatsapp-template#variables) can be included here."
            },
            "sample_text": {
              "type": "array",
              "description": "A list of the sample values for each of the variables in `text`. This parameter is required if a variable is used in `text`. Use double curly brackets to include a variable name in a parameter value. See [Variables](/enterprise/docs/messaging-create-whatsapp-template#variables) for more information about formatting variables.",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "required": [
        "body"
      ]
    },
    "footer": {
      "title": "footer",
      "type": "object",
      "properties": {
        "footer": {
          "type": "object",
          "description": "Contains properties related to the footer of this template. Not supported for SMS templates. Variables are not supported in the footer.",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "text"
              ],
              "description": "The type of content to display in the footer of this template. Required when using a template footer. "
            },
            "text": {
              "type": "string",
              "maxLength": 60,
              "description": "Text to display in the footer of this template. This is required if the value of `type` in this object is `text`. Variables are not supported in the footer."
            }
          }
        }
      }
    },
    "header": {
      "title": "header",
      "type": "object",
      "properties": {
        "header": {
          "type": "object",
          "description": "Contains properties related to the header of this template. Not supported for SMS templates. [Variables](/enterprise/docs/messaging-create-whatsapp-template#variables) can be included here.",
          "properties": {
            "type": {
              "type": "string",
              "description": "The type of content to display in the header of this template. Required when using a template header. ",
              "enum": [
                "text",
                "image",
                "video",
                "file",
                "location"
              ]
            },
            "text": {
              "type": "string",
              "maxLength": 60,
              "description": "Text to display in the header of this template. This is required if the value of `type` in this object is `text`. [Variables](/enterprise/docs/messaging-create-whatsapp-template#variables) can be included here."
            },
            "sample_url": {
              "type": "string",
              "description": "The source URL for a sample media file or file for download of the type to be displayed in the messages created with this template. This is required for verified templates if the value of the `type` property in this object is `image`, `video`, or `file`."
            },
            "sample_text": {
              "type": "array",
              "description": "A list of the sample values for each of the variables in `text`. This parameter is required if a variable is used in `text`. Use double curly brackets to include a variable name in a parameter value. See [Variables](/enterprise/docs/messaging-create-whatsapp-template#variables) for more information about formatting variables.",
              "items": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/telesign-template-creation-details"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.