# Send a test message

`POST /service/@id/tinopay/notification-apps/test` · TinoPay, service owner's sign-in token

Step 3: sends a real test message to `endpoint` (group or chat ID, or Lark webhook URL) before saving. Returns `{connected, chat_title}` (`chat_title` for Telegram only); save only when `connected` is `true`. Telegram without `bot_token` tests with the shared bot. Not retried on network errors.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/service/@id/tinopay/notification-apps/test` |
| Method | `POST` |
| Authentication | the TinoPay service owner's sign-in token (`Authorization: Bearer <token>`); the `/v1` gateway does not expose TinoPay yet |
| Content-Type | `application/json` |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | int | yes | TinoPay service ID |
| `type` | body | string | — | telegram \| zalo \| lark |
| `endpoint` | body | string | — | ID nhóm/chat, hoặc URL webhook Lark |
| `bot_token` | body | string | — | — |
| `app_id` | body | int | — | — |

## Example request

```bash
curl -X POST "https://api.tino.vn/service/100001/tinopay/notification-apps/test" \
  -H "Authorization: Bearer $TINO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "telegram",
  "endpoint": "-1001234567890"
}'
```

`$TINO_TOKEN` is the TinoPay service owner's sign-in token. Path parameters in the example are sample values.

SDK ([SDK & examples](/en/docs/sdk)): no dedicated function yet, use `client.request("POST", "/service/@id/tinopay/notification-apps/test")`.

## Example response

```json
{
 "data": {
  "connected": true,
  "chat_title": "Kế toán ABC"
 }
}
```

Sample built from the TinoPay API v1 documentation (Tino relays TinoPay data as is); values are examples.
