# Get WhatsApp connection
Source: https://docs.lomi.africa/api/whatsapp/WhatsAppMerchantController_getStatus

Read the connected WhatsApp number and reply setting.

***

title: "Get WhatsApp connection"
description: "Read the connected WhatsApp number and reply setting."
full: true
method: get
path: /whatsapp
operationId: WhatsAppMerchantController\_getStatus
--------------------------------------------------

## Overview

Returns whether this organization has connected WhatsApp, the display number, and `inbound_payment_link`.

`keyword` replies when a customer writes a pay word or a message that is only an amount. `any` replies to every text. `off` never auto-replies. The merchant keeps the chat in the WhatsApp app.

## Authentication

Merchant routes require an API key in the `X-API-KEY` header (see [Integration overview](/api)). Use a **test** key against `https://sandbox.api.lomi.africa` and a **live** key against `https://api.lomi.africa`.

## Endpoint

`GET /whatsapp`

Base URLs:

* `https://sandbox.api.lomi.africa`
* `https://api.lomi.africa`

## Request

### Path parameters

*No path parameters.*

### Query parameters

*No query parameters.*

### Headers

| Name        | In     | Required | Schema | Description       |
| ----------- | ------ | -------- | ------ | ----------------- |
| `X-API-KEY` | header | Yes      | string | Merchant API key. |

## Responses

| Status | Description                                                   |
| ------ | ------------------------------------------------------------- |
| `200`  | Connection status, display number, and `inbound_payment_link` |
| `401`  | Invalid or missing API key                                    |

## Errors

Errors follow the standard JSON error format. **401** means the key is missing or invalid. **429** means the request was rate limited.

## Example

```bash
curl -sS -X GET "https://sandbox.api.lomi.africa/whatsapp" \
  -H "X-API-KEY: $LOMI_SECRET_KEY"
```

## OpenAPI

* **operationId**: `WhatsAppMerchantController_getStatus`
* **Operation**: `GET /whatsapp`

Full schemas and **Try it**: [API reference](/api). Machine-readable contract: repo `apps/docs/openapi.json`.
