OverviewProductsPlatformsAPI ReferenceResources
Rcs

Upload an RCS logo or banner

POSThttps://zernio.com/api/v1/rcs/assets

Uploads an image and returns a public URL for profile.logoUrl or profile.heroUrl. The image is cropped and compressed to the carriers' exact rules (logo 224x224 under 50 KB, banner 1440x448 under 200 KB).

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Body

multipart/form-data

What every request needs

filestring (binary)Required

PNG, JPEG or WebP.

kindstringRequiredOne of logo | banner

Responses

Success· the request worked

Errors· the request failed

Send an RCS message

Sends an RCS message from one of your agents. - Use `text` for a plain message or `content` for rich content (card, carousel, media, suggestion chips). - Before launch an agent only reaches test phones that accepted the invite. - With the agent's `smsFallbackFrom` set, phones without RCS get `fallbackText` (default: the message's readable text) as SMS. Send an `Idempotency-Key` header to make retries safe. ### Webhooks Replies and status arrive as webhooks with `platform: "rcs"`: - `message.received` (a tapped chip carries its postback in `metadata.postbackPayload`) - `message.delivered` - `message.read` - `message.failed`

Send a verification code

Generate a one-time code, deliver it to the recipient, and store only its hash. Check the user-typed code with POST /v1/verify/verifications/{verificationId}/check. ### Resends Re-POSTing for the same (channel, to) while a verification is active RESENDS a fresh code on the existing verification (200 with `resend: true`) instead of creating a new one. Resends are limited to one per 60 seconds (429 with `retryAfterSeconds` inside the cooldown). The stored brandName/codeLength/ttlMinutes win on a resend. ### Channels Codes deliver from a number on your account (`from` optional when you own exactly one number on the channel), always with a fixed template. - `sms`: from an SMS-enabled number. Each accepted send bills one verification fee plus the standard message rate. - `whatsapp`: from a connected WhatsApp number, as a Meta AUTHENTICATION template with a copy-code button. Each accepted send bills one verification fee; Meta bills its authentication rate to your WhatsApp Business Account. ### WhatsApp template The first WhatsApp verification on a WhatsApp Business Account creates the `zernio_verify_code` template there. It answers 422 `template_pending` until Meta approves it (usually minutes; retry after `retryAfterSeconds`). Meta fixes the message text, so `brandName` is not shown and the code's validity is not stated in the message (`ttlMinutes` is still enforced).

POST/v1/rcs/assets
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.rcs.uploadRcsAsset();console.log(data);
{  "url": "http://example.com"}
OpenAPI specification
Was this page helpful?