Improved

RCS rich messages, WhatsApp templates, delivery reasons and new AI guides

A round-up of what's new in the Kudosity API and developer docs since June.

RCS

  • Rich messages: POST /v2/rcs/messages now sends images, video and rich cards as well as text. Set content_type to media or rich_card. A rich card can be a single standalone card or a carousel.
  • Suggested replies and actions: Add up to 11 suggestions under any message. When a recipient taps one, the RCS_INBOUND webhook event arrives with mo.content_type set to SUGGESTION and the postback_data you supplied.
  • New guide: RCS Message Guide shows each message format with a request example, a phone preview, media file requirements and limits.
  • New guide: Track an RCS message that falls back to SMS shows how to follow one message across both channels with webhooks.
  • Updated guide: RCS Agent Setup Guide now covers creating, testing and launching an agent in the app.

Delivery reasons on status webhooks

Status events now tell you why a message ended up where it did, so your code can branch on the outcome:

  • reason_code: a machine-readable reason, such as DELIVERED_TO_HANDSET, HANDSET_UNREACHABLE, NOT_RCS_CAPABLE, RECIPIENT_BLOCKED, INVALID_RECIPIENT or EXPIRED. More values may be added, so treat a code you don't recognise as unclassified.
  • reason: a human-readable explanation, where one is available.
  • permanent: present and true when retrying is likely to fail.

See About Webhooks.

WhatsApp

Webhooks

  • Safe to repeat: POST /v2/webhook with the same url and filter as an existing webhook returns that webhook with 200 OK instead of creating a duplicate.
  • Limit: An account can have up to 25 webhooks. Creating another returns 409 Conflict.

Senders

GET /v2/senders/registrations has new filters and sorting:

  • account_id accepts one or more accounts and replaces child_account_id, which is now deprecated.
  • search matches on the sender or the child account's company name.
  • registry and registry_status filter alphanumeric registrations.
  • sort and order control the order of results.
  • Registrations can now have the status SUBMITTED_TO_REGISTRY.

Errors

The Error Registry has been updated to match the API. It now includes entries for 402 Payment Required, 413 Request Entity Too Large, 422 Unprocessable Entity, 501 Not Implemented and 503 Service Unavailable.

AI and agents

Salesforce