Skip to main content

Fetch WhatsApp Templates

warning

Inbox management is not available on the Basic plan. Upgrade to Intermediate, Growth or Business plan to access this endpoint.

Overview​

The Fetch WhatsApp Templates endpoint returns approved saved templates for one connected WhatsApp business phone number. Get the required social_account_id from Fetch WhatsApp Accounts, then use the returned template id as whatsapp_template_id when you create a WhatsApp conversation.

Base URL:

https://message.oneupapp.io

Endpoint​

GET /api/whatsapp/templates

Request Parameters​

ParameterRequiredTypeDescription
apiKeyYesstringYour personal API key generated from the API Access page. Passed as a query parameter.
social_account_idYesstringThe connected WhatsApp business phone number ID returned by Fetch WhatsApp Accounts.

Sample Request​

curl --location --request GET \
"https://message.oneupapp.io/api/whatsapp/templates?apiKey=YOUR_API_KEY&social_account_id=104040148726689"

Sample Response​

{
"message": "OK",
"error": false,
"data": [
{
"id": 34,
"name": "welcome_message",
"language": "en_US",
"status": "APPROVED"
}
],
"meta": []
}

Response Fields​

FieldDescription
idThe saved Inbox template ID. Pass this value as whatsapp_template_id; it is different from Meta's template ID.
nameThe template name registered with WhatsApp.
languageThe template's language code.
statusThe template status. This endpoint returns only APPROVED templates.

Only approved templates owned by the authorized user and belonging to the selected account's WhatsApp Business Account are returned.

Error Responses​

StatusWhen
401Missing or invalid apiKey.
403Inbox management is unavailable on the Basic plan.
404The WhatsApp account was not found, is disconnected, or does not belong to the authorized user.
422social_account_id is missing or invalid.
429The limit of 60 requests per minute per API key was exceeded. Wait for the Retry-After interval.
503API key verification is temporarily unavailable.

✅ Result: You have the approved template ID needed to create a WhatsApp conversation!