Get an SMS template

Changed on

Fetches a single template's body and its placeholder variables.

get/text/templates/{templateId}

Request

  • Base URL
    https://collectwiseapi.com
  • URL
    https://collectwiseapi.com/text/templates/{templateId}
  • Auth
    API key in header collectwise_key

Path parameters

templateIdinteger required

The template's identifier.

Headers

x-cw-timestampstring

Required together with x-cw-signature when signing is enabled for this key or organization. POST /security/verify also requires signing whenever a usable secret exists. Canonical Unix seconds, within ±300 seconds. See API Access for CW1 signing.

x-cw-signaturestring

CW1 HMAC-SHA256 signature: v1= followed by 64 lowercase hex digits. Use the decoded 32-byte signing secret and exact request bytes. See API Access.

Response

The template.

templateIdinteger required

Identifier for the template.

accountIdstring required

The account the template belongs to (your organization's configured account).

messagestring required

The template body, containing {placeholder} tokens.

placeholdersstring[] required

Variable names you must supply in variables when sending.

Changes

    • breaking

      the response property became optional for the status

    • info

      added the new optional header request parameter x-cw-signature

    • info

      added the new optional header request parameter x-cw-timestamp