RocketCOMS

List All Message Templates

Retrieve all message templates for a Business Account. Message templates will be retrieved for the Business Account associated with the request access token or API key.

Endpoint

GET /v1/message-templates

Authorization Header

Authorization: Bearer <access_token>
or
Authorization: Basic <encodedString>
where <encodedString> is your <api-key>:<api-secret> string encoded using Base64 encoding

Request Body

None

Returns

Returns an array of Message Template objects.

SAMPLE RESPONSE

				
					{
  "content": [
    {
      "id": "a9e1e4ce-0d9e-4298-8059-178e17d31c11",
      "name": "Spring Campaign",
      "message": "Our spring sale starts tomorrow!",
      "status": "ACTIVE",
      "createdAt": "2023-11-02T16:58:25.808Z",
      "updatedAt": "2023-11-03T16:58:25.808Z"
    },
    {...},
    {...}
  ]
}