cURL
curl --request GET \ --url https://api-message.nativehub.live/api/v1/templates \ --header 'Authorization: Bearer <token>'
{ "data": [ { "id": "d0e1f2a3-b4c5-6789-de01-234567890123", "tenant_id": "c3d4e5f6-a7b8-9012-cdef-123456789012", "name": "OTP Template", "body": "Dear {{name}}, your OTP is {{otp}}. Valid for {{validity}} minutes.", "variables": { "name": "string", "otp": "string", "validity": "number" }, "status": "active", "created_at": "2026-01-20T14:00:00Z", "updated_at": "2026-02-05T16:45:00Z" } ], "total": 123, "page": 123, "per_page": 123 }
Retrieve paginated list of message templates
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Page number (default 1)
x >= 1
Items per page (default 20, max 100)
1 <= x <= 100
Templates retrieved successfully
Show child attributes