Last updated 1 month ago
GET https://api.oneroute.io/api/public/channel/:id/templates
GET
https://api.oneroute.io/api/public/channel/:id/templates
This endpoint allows you to fetch saved templates for a Whatsapp channel.
{ "body": [ { "category": "ALERT_UPDATE", "components": [ { "example": { "body_text": [ [ "Michael" ] ] }, "text": "Hi {{1}}! We would like to send you a message. Please reply “Yes” if you wish to continue this conversation.", "type": "BODY" } ], "language": "en_GB", "name": "new_conversation", "namespace": "500jdnc_d0f3_4ds8_ab88_dhndif39993", "rejected_reason": null, "status": "submitted" } ], "message": "Channel Templates fetched successfully", "success": true }
{ "data": null, "message": "Invalid API Key", "success": false }
id (Required)
string
id of the channel
apiKey
API Key for authentication