OneRoute
  • Introduction
  • Prerequisites
  • Whatsapp API
    • Sandbox (Test API Key)
    • Getting Started
    • Endpoints
      • Fetch Channels
      • Fetch Channel Templates
      • Send Template Message
      • Send Campaign Message
      • Send Session Message
    • FAQ
  • EMAIL API
    • Getting Started
    • Endpoints
      • Fetch Email Channels
      • Send Email to Customers
  • SMS API
    • Getting Started
    • Endpoints
      • Fetch SMS Channels
      • Send SMS to Customers
      • Send OTP SMS to Customers
      • Fetch SMS Messages
      • Get SMS DLR Message
  • ONEOTP API
    • Getting Started
    • Endpoints
      • Fetch OTP Templates
      • Send OTP
      • Verify OTP
  • EMBED
    • Getting Started
    • Installation
    • Push Notification
  • OTHERS
    • Receiving Events - Webhooks
    • Fetch Channel By Id
    • Fetch Logs
Powered by GitBook
On this page

Was this helpful?

  1. Whatsapp API
  2. Endpoints

Fetch Channel Templates

Fetch WhatsApp Channel Templates

GET https://api.oneroute.io/api/public/channel/:id/templates

This endpoint allows you to fetch saved templates for a Whatsapp channel.

Path Parameters

Name
Type
Description

id (Required)

string

id of the channel

Headers

Name
Type
Description

apiKey

string

API Key for authentication

{
    "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
}
PreviousFetch ChannelsNextSend Template Message

Last updated 6 months ago

Was this helpful?