Skip to main content

Getting Started with the Qlara Platform API

The Qlara Platform is a unified REST API that lets you send SMS, RCS and WhatsApp messages and email with campaigns, manage contacts and lists, and follow every delivery.

Who is this documentation for?​

  • Developers and technical teams integrating messaging into their applications
  • Project managers and account managers who need to understand available features
  • Support teams helping clients with API integration

Base URL​

All API endpoints are served under:

https://api.qlara.ai/api

Authentication​

Every request must be authenticated:

  • API Key (recommended): X-Api-Key: YOUR_API_KEY header. It is the only method the Qlara Platform endpoints under /api/partner-gateway/ accept.
  • Basic Auth: Authorization: Basic base64(username:password) header, accepted only by the messaging endpoints under /api/message-server/ and by the media download under /api/files/.

See the Authentication guide for details.

Verify your API key works by listing your SMS sender IDs with GET /api/partner-gateway/sms/senders, a call that takes no parameters — pick your favorite language:

curl -H "X-Api-Key: YOUR_API_KEY" \
https://api.qlara.ai/api/partner-gateway/sms/senders

A 200 with the list of your sender IDs means the key works. A 401 with {"error": "Invalid API Key"} means the key is missing or wrong, or it is not enabled for SMS.

Tip

Keep your API key secret. Do not expose it in client-side code or public repositories. For production, rotate keys regularly and store them in a secrets manager.

Available channels​

SMS​

The most widespread and universal channel. Works on any mobile phone, including non-smartphones. Ideal for transactional notifications, OTP, and urgent communications.

  • Sent with a campaign, from an approved sender of your account, with no template
  • Text up to 1530 characters, with placeholders filled from your contact fields
  • The fallback channel of RCS and WhatsApp campaigns

RCS (Rich Communication Services)​

The evolution of SMS. Send rich messages with images, videos, interactive buttons, and carousels. Requires the recipient to have an RCS-compatible device.

  • Sent with a campaign, from one of your RCS agents, with a saved template: text, card (with media and buttons) or carousel (scrollable cards)
  • Interactive suggestions (reply, open URL, call, location, calendar)
  • Fallback to SMS when the RCS message is not delivered

WhatsApp Business​

The most widely used messaging channel in the world. Campaigns send Meta-approved templates from one of your WhatsApp Business numbers.

  • Templates with buttons, media headers, and tracked links
  • Fallback to SMS, or to RCS and SMS, on the accounts enabled for it
  • Replies arrive in the inbox, where you can answer them

Email​

HTML emails sent from the addresses and domains you verified in the Qlara platform, for newsletters and promotions as well as for transactional messages.

  • Sent with email campaigns, to your contact lists, or one at a time with the email send API
  • Types: marketing, which needs the recipient's consent and an unsubscribe link, and transactional
  • Open and click tracking, within the recipient's tracking consent
  • Placeholders, scheduled sending and simulation mode

Send your first message​

SMS, RCS and WhatsApp messages are sent with campaigns: you create the campaign, then you confirm it. Here's the simplest case, one SMS to a phone number written in the request:

curl -X POST https://api.qlara.ai/api/partner-gateway/campaigns \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My first campaign",
"sendingMode": "SMS",
"destinationType": 1,
"destinations": ["+393334445566"],
"smsSender": "Qlara",
"smsBody": "Hi from the Qlara Platform!",
"readyToSend": true
}'

smsSender must be one of the sender IDs the check above returned with status APPROVED, spelled exactly the same: any other sender is refused with 403. destinationType: 1 sends to the numbers in destinations; with 0 the campaign sends to your contact lists instead.

The API answers 201 Created with the campaign and its id. Nothing is sent yet: a campaign leaves when you confirm it.

curl -X PUT https://api.qlara.ai/api/partner-gateway/campaigns/1542/confirm \
-H "X-Api-Key: YOUR_API_KEY"

202 Accepted means the price was reserved on your credit and the sending is queued. The Quick Start walks through the whole flow, and the Create an SMS campaign page covers the other fields.

Fallback chain​

A campaign can fall back across channels. Its sendingMode lists the channels to try, from left to right: when a message is not delivered on one, the next is tried.

sendingModeChannels, in order
RCS_SMSRCS, then SMS
WHATSAPP_SMSWhatsApp, then SMS
RCS_WHATSAPP_SMSRCS, then WhatsApp, then SMS

The campaign carries the fields of every channel in its mode: for RCS_SMS, the RCS agent and template plus the SMS sender and text. On an account without cross-channel fallback, a mode that combines WhatsApp with other channels is sent on WhatsApp only.

How it works​

Core concepts​

ConceptDescription
CampaignsThe way to send SMS, RCS and WhatsApp messages: one message to your contact lists, or to phone numbers written in the request, at once or on a schedule. Email has campaigns of its own, to your contact lists or to addresses written in the request.
ChannelsSMS, RCS, WhatsApp and email, each sent with campaigns. One email to one recipient also has a send endpoint of its own.
SendersThe SMS senders, RCS agents, WhatsApp numbers and verified email addresses or domains a campaign sends from, registered in the Qlara platform.
TemplatesThe saved messages that RCS and WhatsApp campaigns send, with placeholders and interactive elements. WhatsApp templates are approved by Meta.
Contacts & ListsYour address book. Organize contacts into named lists for campaign targeting.
WebhooksHTTPS callbacks for the replies of your contacts, and for the delivery and read events of the messages sent one at a time. A campaign reports its deliveries in its own counters.
ExportsAsync data exports (contacts, delivery reports) with download links.
SubscriptionYour plan and credit balance.
Social ProfilesSocial media accounts (Facebook, Instagram, LinkedIn, Google Business Profile, TikTok, YouTube) connected to your account in the web dashboard.

What's next?​

  • Quick Start — Send your first message with a campaign.
  • Authentication — Learn about API Key, Basic Auth, and IP Whitelist.
  • Your channel — SMS, RCS, WhatsApp or Email: senders, templates, campaigns and single sends, one section per channel.
  • Contacts — Organize your audience.
  • Webhooks — Receive replies and delivery events.
  • FAQ — Common questions and answers.
  • API Reference — Explore all endpoints.
  • Postman Collections — Download ready-to-use collections for testing.