Запросить адрес (только Индия)
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.
JWT tokentoken<token>application/json- body
phone?integerRecipient phone (digits, country code, no +). Use phone or chatId.
chatId?stringRecipient chatId (e.g. [email protected]). Use phone or chatId.
body*stringMessage text shown above the address form
country?stringСтрана формы адреса (IN или SG). По умолчанию IN.
"IN""SG"values?Опциональные предзаполненные поля
saved_addresses?array<>Сохранённые адреса
validation_errors?Ошибки валидации полей
[key: string]?anyServer response example
application/json- response
sent?booleanid?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"}