1MSG

Запросить адрес (только Индия)

POST
/sendAddressMessage

Request a shipping address from the user (WhatsApp interactive address_message).

India and Singapore only. Requires a WABA phone registered in that country and a recipient phone matching it (+91 ↔ IN, +65 ↔ SG).

Pass country: "IN" or country: "SG" (default IN). Eligibility is validated upstream; mismatches return errors such as Unsupported Interactive Message type (HTTP 200 with sent: false).

Optional: values, saved_addresses, validation_errors.

Authorization

JWT token
querytoken<token>

Request Body

application/json
  1. body
phone?integer

Recipient phone (digits, country code, no +). Use phone or chatId.

chatId?string

Recipient chatId (e.g. [email protected]). Use phone or chatId.

body*string

Message text shown above the address form

country?string

Страна формы адреса (IN или SG). По умолчанию IN.

Value in"IN""SG"
values?

Опциональные предзаполненные поля

saved_addresses?array<>

Сохранённые адреса

validation_errors?

Ошибки валидации полей

[key: string]?any

Response Body

Server response example

application/json
  1. response
sent?boolean
id?string

Уникальный идентификатор сообщения

message?string

Уведомление о статусе отправки сообщения

description?string

Комментарий к результату отправки

curl -X POST 'https://api.1msg.io/123/sendAddressMessage' \  -H 'Content-Type: application/json' \  -d '{  "phone": 6531650115,  "body": "Thanks for your order!",  "country": "SG"}'
{  "sent": true,  "id": "gBGGeRhGZTEfAgkJCh2wAz4ZH-8",  "message": "Sent to [email protected]",  "description": "Message has been sent to the provider"}