> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gallabox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Gallabox Developer API

> Send WhatsApp and Instagram messages, keep contacts in sync, work the shared inbox and receive events from your own systems.

> [!NOTE]
>
> The Gallabox Developer API lets your systems do what your team does in Gallabox: send WhatsApp and Instagram messages, create and update contacts, assign and resolve conversations, manage templates and broadcasts, and receive events through webhooks.

## How the API works

* The API follows REST. URLs name resources, and the method says what to do with them: `GET` reads, `POST` creates or acts, `PATCH` and `PUT` update, `DELETE` removes.
* Request bodies are JSON. Send `Content-Type: application/json`.
* Every response is JSON.
* All requests go to `https://server.gallabox.com` over HTTPS, under `/devapi`.

```bash theme={null}
curl https://server.gallabox.com/devapi/me \
  -H "apiKey: <your API key>" \
  -H "apiSecret: <your API secret>"
```

## Key concepts

| Term | What it is | Where to find it |
| - | - | - |
| **Account ID** (`accountId`) | Your Gallabox account. Most URLs contain it, as in `/devapi/accounts/{accountId}/contacts`. It must be the account your API key belongs to. | Returned by `GET /devapi/me` (**Account** section) |
| **Channel ID** (`channelId`) | One connected WhatsApp number, Instagram account, web chat or email inbox. Sending a message needs one. | Returned by `GET /devapi/accounts/{accountId}/channels` (**Channels** section) |
| **Contact, conversation and message IDs** | 24-character IDs that identify a record. | Returned by the API and included in webhook events |

A few routes have no `{accountId}` in the URL, such as `POST /devapi/messages/whatsapp`. They work the same way; the account comes from the API key.

## Get started

> [card] [Authentication](https://docs.gallabox.com/api-reference/authentication.md)
>
> Create an API key and send it with every request.

> [card] [Rate limits](https://docs.gallabox.com/api-reference/rate-limits.md)
>
> How many requests you can make, and what happens when you go over.

> [card] [Errors](https://docs.gallabox.com/api-reference/errors.md)
>
> What each status code means and how errors are returned.

> [card] [Webhooks](https://docs.gallabox.com/settings/webhooks.md)
>
> Have Gallabox call your URL when something happens in your account.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.