Skip to main content

Troubleshooting: WhatsApp template library unavailable

Use this page when the Browse template library tab under Templates returns 422 WHATSAPP_LIBRARY_UNAVAILABLE instead of showing Meta’s catalog. The usual cause is a disconnected WhatsApp Business Account (WABA) or a Meta access token that was revoked.

Symptom

The Browse template library tab fails to load and the API response includes:
  • HTTP status 422
  • error code WHATSAPP_LIBRARY_UNAVAILABLE
  • an optional details.upstream_status value identifying Meta’s response
This error affects browsing the library. It does not mean that your existing approved templates were deleted.

Meaning

The tab proxies Meta’s Graph API message_template_library edge through your connected WABA. Orbit uses the WABA connection and its Meta access token for that request. When Meta rejects the request because the connection is no longer authorized, Orbit returns WHATSAPP_LIBRARY_UNAVAILABLE rather than exposing the upstream response or access token details. A disconnected WABA, a revoked token, an expired token, or missing WhatsApp Business permissions can all prevent Meta from authorizing the request.

Fix

Reconnect the WABA and confirm its permissions. See the WABA setup guide for the full end-to-end reconnect flow, including Meta Business Manager verification, phone number selection, and display-name approval steps.
  1. Open Settings → Channels → WhatsApp.
  2. Select Reconnect (or Connect if the channel is shown as disconnected).
  3. Complete Meta’s authorization flow with the Business Manager that owns the WABA. Select the intended WABA and phone number when Meta asks you to choose assets.
  4. Confirm that the authorization flow grants the WhatsApp Business permissions requested for template management. If your organization manages Meta app permissions centrally, ask the Meta Business admin to approve the requested scopes before completing the flow.
  5. Return to Orbit and confirm that the WhatsApp channel shows as connected.
Do not copy an access token into a support request or paste it into the Dashboard. Reconnecting updates the stored connection without changing your approved templates.

Verify

Return to Templates → Browse template library and retry the browse request. A successful request displays the available library templates. If the tab still fails, open the failed request’s response and note the details.upstream_status value before contacting support; do not retry a revoked connection repeatedly.

When else this fires

Use details.upstream_status to distinguish an authorization problem from a request that Meta does not support for the library edge. The upstream status is the only detail included in the error body — there is no nested meta object, no token payload, and no pagination paging token in the 422 response.
  • 401 — Meta rejected the access token. It may be expired, revoked, or no longer valid for the selected WABA. Reconnect the WABA and complete the authorization flow again.
  • 403 — Meta recognized the request but denied access to the WABA or the requested WhatsApp Business permissions. Confirm that the selected Business Manager owns the WABA and that the required scopes were approved, then reconnect.
  • 400 — Meta rejected the Graph request itself. This can indicate an unsupported or invalid message_template_library browse request for the current Meta app configuration (for example, request filters your Meta app version does not support) rather than a disconnected WABA. A 400 raised by unsupported filters is a client-request error, not an auth failure — check the request filters and retry once before reconnecting. If the first-page browse fails with a 400 and a second identical request succeeds, the failure was transient; a reconnect is unnecessary.
  • 429 — Meta rate-limited the browse request. The Meta Graph API enforces per-app and per-WABA rate limits on library browses, and exceeding them returns 429 with no permanent auth change. Use exponential backoff starting at the nearest round minute plus the next_retry_at value if the Graph response surfaces one. Repeated manual retries are safe because the browse is a read-only operation — rate-limit exhaustion cannot lock the WABA. Do not reconnect for a 429; reconnecting invalidates the stored token and adds a minute of downtime without affecting the rate-limit bucket.
A 400 and a 429 are not the same as the 401 or 403 authorization failures that produce this 422 error. A 429 should never trigger a reconnect. Include the upstream status, Orbit request ID, and time of the failed attempt when asking support to investigate.

Rate limits and pagination

The Browse template library tab fetches from Meta’s message_template_library edge, which is a paged Graph API resource. A first-page browse failure and a mid-pagination failure produce the same WHATSAPP_LIBRARY_UNAVAILABLE 422 response because Orbit surfaces only the upstream HTTP status, not the paging cursor.
  • First-page failures — look identical to an auth disconnect at the load indicator (empty library, 422 error in the console). Check upstream_status before jumping to reconnect: a 400 likely means unsupported request filters, and a 429 means the rate-limit bucket is full for this app or WABA.
  • Mid-pagination failures — when a later page request returns 400 or 429 after earlier pages succeeded, the connection is almost certainly still valid. Retry the page once; if it still fails, wait 30 seconds and retry the page again. Reconnecting does not help a mid-page fetch failure because the auth token is demonstrably still alive (the earlier pages succeeded with it).
  • Retry-before-reconnect rule for 400 — retry the exact same request once. If the retry succeeds, the failure was transient and no reconnect is needed. If it fails again, check the request filters before reconnecting; unsupported filters produce a reproducible 400 that reconnecting cannot resolve.

See also