---
title: "iChatUp API: Send a Front Desk Moment"
url: https://ichatup.my/docs/front-desk-moments
description: "POST /api/v1/front-desk/send sends a Front Desk moment such as welcome or thank_you by name, as free text in the window or as the approved template."
source: iChatUp
---

Developers

# Send a Front Desk moment

POST /api/v1/front-desk/send sends one of the Front Desk counter messages, such as welcome, thank\_you or review, to a customer by phone number. You name the moment instead of a template: iChatUp sends it as a plain message when the customer wrote within the last 24 hours, and as the matching approved template otherwise. Unknown numbers are added as contacts.

## 要点一览

|  |  |
| --- | --- |
| Method and path | POST /api/v1/front-desk/send |
| Required | phone, moment |
| Optional | name (used when the number is new) |
| Moments | welcome, thank\_you, review, come\_back, rate\_visit |
| Needs | An API key; Front Desk templates approved for sends outside the window |

## Request and response

```
curl -X POST https://ichatup.com/api/v1/front-desk/send \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"phone": "+919876543210", "moment": "thank_you", "name": "Asha"}'
```

```
HTTP/1.1 202 Accepted
{
  "id": 77104,
  "status": "accepted",
  "via": "template",
  "to": "+919876543210"
}
```

`via` is `text` when it went as a plain in-window message and `template` when the approved template was used. The response also carries `cost` and `currency`, as iChatUp records them for that send.

## The moments

- `welcome` greets a new customer.
- `thank_you` thanks them after a visit or purchase.
- `review` asks for feedback with the review link from Front Desk settings; it fails until that link is set.
- `come_back` re-invites someone you have not seen in a while; its template is promotional.
- `rate_visit` asks how the visit went. Happy answers get your review link, unhappy ones reach you privately.

The customer’s name and your business name are filled in automatically.

## When it fails

A 422 answer carries the reason in `error`: an unknown moment name, a number that is not valid, a customer who asked to stop receiving messages, or a missing review link. The Front Desk itself, with its counter console and forms, is described on [the Front Desk use case](https://ichatup.my/use-cases/front-desk).

## 常见问题

**Does this work without the official WhatsApp connection?**

Yes. On a QR-connected number the moment goes as a plain message, because that connection has no 24-hour template rule.

**What happens with a number iChatUp has never seen?**

The person is added as a contact opted in through the API, using the name you sent if any, and then the moment is sent.

## 延伸阅读

- [Front Desk：接待、签到与评价](https://ichatup.my/use-cases/front-desk)
- [Send a template message](https://ichatup.my/docs/messages)
- [Idempotency](https://ichatup.my/docs/idempotency)
- [Add or update a contact](https://ichatup.my/docs/contacts)
- [List templates and check the account](https://ichatup.my/docs/templates-and-account)
- [Webhook events](https://ichatup.my/docs/webhook-events)

---
Source: https://ichatup.my/docs/front-desk-moments
