Introduction

Ghala is one API for SMS, WhatsApp, Instagram, one-time codes, your inbox, AI agents and a shop on WhatsApp.

Ghala brings SMS, WhatsApp, Instagram and one-time codes together behind one API, with one inbox for every conversation, AI agents that answer your customers, and a shop that sells on WhatsApp. You integrate once, then reach your customers on any channel with the same key, the same request and the same events.

Base URL

Every request goes to:

https://v3.ghala.io

Endpoints live under /v1, for example https://v3.ghala.io/v1/messages. Requests and answers are JSON over HTTPS.

Authentication

Send your API key in the Authorization header:

curl "https://v3.ghala.io/v1/messages?limit=1" \
  -H "Authorization: Bearer $GHALA_KEY"

A key starts ghala_test_ or ghala_live_, and acts in the workspace that made it. See Authentication.

How it fits together

  • One key for every channel. Its scopes decide what it may do, not which channel it uses.
  • One way to send. POST /v1/messages sends on any channel; channel says which.
  • One stream of events. Your webhook receives every message's status on every channel, signed.
  • A sandbox built in. A test key is checked like a live one, reaches no phone and costs nothing.
POST/v1/messagesSend messagemessages:send

Channels

ChannelYou connectTest key
Instagram

Receive direct messages on your Instagram accounts and answer them.

Your Instagram account
One-time codes

Send a 6-digit code by SMS or WhatsApp, then check what the person typed.

An approved sender ID, for SMS
SMS

Text messages to any phone, under your approved sender ID.

An approved sender ID
Voice

Your SemaCall calls in the Ghala inbox, beside each caller's SMS and WhatsApp, with their recordings.

SemaCall, in the dashboard
WhatsApp

Send approved templates, receive your customers' messages, and answer them in your inbox.

Your WhatsApp number

Conventions

  • Bodies are JSON, sent with Content-Type: application/json. A property an endpoint does not know is refused with 400 unknown_field, never ignored.
  • Phone numbers are accepted as people type them, such as 0712 345 678 or +255712345678, and come back as country code and digits: 255712345678.
  • Money is an integer in minor units, in fields ending _minor: 50000 is TZS 500.00.
  • Times are RFC 3339, and ids are UUIDs.
  • Every answer carries an X-Request-Id. Quote it when you contact us.

Your first integration

On this page