Developer Documentation

Riffre API Reference

Everything you need to send WhatsApp text, template, media and interactive messages from your own systems.

Get Template Status

Check the Meta approval status of one template by name, across every language variant it has.

Last updated 14 Aug 2026

Endpoint

GET /template-status.php

Requires the Authorization: Bearer header described in Authentication.

Query parameters

FieldTypeRequiredDescription
numberstringyesYour own connected WhatsApp number, digits only.
namestringyesThe template name, as submitted to Create a Template.

Example request

curl "https://your-riffre-domain.com/api/v1/template-status.php?number=911234567890&name=order_update" \
  -H "Authorization: Bearer rf_live_YOUR_API_KEY"

Success response

200 OK:

{
  "name": "order_update",
  "variants": [
    {
      "id": "1234567890123456",
      "language": "en_US",
      "category": "UTILITY",
      "status": "APPROVED",
      "quality_score": "GREEN",
      "rejection_reason": null,
      "last_synced_at": "2026-08-14 12:00:00"
    }
  ]
}

A template name can have more than one language variant, each reviewed independently - one language can be APPROVED while another is REJECTED. All variants for the name are always returned together.

Errors specific to this endpoint

error slugHTTP statusCause
a_name_query_parameter_is_required422name is missing or empty.
no_template_with_that_name_was_found404No template with that name exists on this account.

For the full error shape and general status codes, see Errors.