SMS Templates

The SMS Templates API enables you to retrieve and update SMS templates within your Rebill account.


GET/v2/message-templates/

Get message templates

Retrieve the list of all your SMS templates.

Loading...

Response

        [
          {
            "id": "5c8fec45-07bb-4478-adf9-26ae45685f0d",
            "organizationId": "3a8ff49f-c7b1-4336-95ec-69a9469b6490",
            "event": "initial-charge-accredited",
            "enabled": true,
            "text": "string",
            "createdAt": "2024-02-28T16:11:00.774Z",
            "updatedAt": "2024-02-28T16:11:00.774Z",
            "deletedAt": "2024-02-28T16:11:00.774Z"
          }
        ]

GET/v2/message-templates/{id}

Get message template by ID

This endpoint allows you to retrieve an SMS template by its ID.

Required Path Parameters

    idstringrequired

Loading...

Response

      {
      "id": "5c8fec45-07bb-4478-adf9-26ae45685f0d",
      "organizationId": "3a8ff49f-c7b1-4336-95ec-69a9469b6490",
      "event": "initial-charge-accredited",
      "enabled": true,
      "text": "string",
      "createdAt": "2024-02-28T16:11:00.774Z",
      "updatedAt": "2024-02-28T16:11:00.774Z",
      "deletedAt": "2024-02-28T16:11:00.774Z"
    }

PATCH/v2/message-templates/{id}

Update message template

This endpoint allows you to Update the content of an SMS template with its ID.

Required Path Parameters

    idstringrequired

Body Parameters

    textstring

Loading...

Response

      {
        // response with status code 200 OK
      }

Was this page helpful?