From bbb2f91cbe2c9c3b8fc8e7bf53c7240c2f831e41 Mon Sep 17 00:00:00 2001 From: Stephen Young Date: Fri, 24 Jul 2026 15:24:11 -0400 Subject: [PATCH 1/2] drop from --- lib/api/requests.ts | 2 -- test/api.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/lib/api/requests.ts b/lib/api/requests.ts index d7f7d3c..fddc14d 100644 --- a/lib/api/requests.ts +++ b/lib/api/requests.ts @@ -295,7 +295,6 @@ export type SendWhatsAppRequestRequiredOptions = { export type SendWhatsAppRequestOptionalOptions = Partial<{ to: string; - from: string; tracked: boolean; disable_message_retention: boolean; send_to_unsubscribed: boolean; @@ -309,7 +308,6 @@ export type SendWhatsAppRequestOptions = SendWhatsAppRequestRequiredOptions & Se const WHATSAPP_OPTIONAL_KEYS = [ 'to', - 'from', 'tracked', 'disable_message_retention', 'send_to_unsubscribed', diff --git a/test/api.ts b/test/api.ts index 1a740a9..45539d9 100644 --- a/test/api.ts +++ b/test/api.ts @@ -678,7 +678,6 @@ test('#sendWhatsApp: with optional parameters: success', (t) => { sinon.stub(t.context.client.request, 'post'); let req = new SendWhatsAppRequest({ to: '+1234567890', - from: '+1987654321', identifiers: { id: '2' }, transactional_message_id: 1, message_data: { key: 'value' }, @@ -693,7 +692,6 @@ test('#sendWhatsApp: with optional parameters: success', (t) => { t.truthy((t.context.client.request.post as SinonStub).calledWith(`${RegionUS.apiUrl}/send/whatsapp`, req.message)); t.is(req.message.transactional_message_id, 1); t.is(req.message.to, '+1234567890'); - t.is(req.message.from, '+1987654321'); t.deepEqual(req.message.message_data, { key: 'value' }); t.true(req.message.tracked); t.true(req.message.disable_message_retention); From 0abbc818a455eaa090d8e21d27df36940fb65a22 Mon Sep 17 00:00:00 2001 From: Stephen Young Date: Fri, 24 Jul 2026 16:24:19 -0400 Subject: [PATCH 2/2] Remove from from WhatsApp docs example --- docs/app.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/app.md b/docs/app.md index 84c5128..a7a8025 100644 --- a/docs/app.md +++ b/docs/app.md @@ -90,7 +90,7 @@ Create a new `SendWhatsAppRequest` object containing: - `transactional_message_id`: the ID or trigger name of the transactional message you want to send. - an `identifiers` object containing the `id` or `email` of your recipient. If the profile does not exist, Customer.io will create it. -- `to` and `from`: E.164-formatted phone numbers. Both are optional only when the referenced `transactional_message_id` already defines them. +- `to`: an E.164-formatted phone number. Optional only when the referenced `transactional_message_id` already defines it. Use `sendWhatsApp` referencing your request to send a transactional message. [Learn more about transactional messages](https://customer.io/docs/transactional-api). @@ -100,7 +100,6 @@ const api = new APIClient("app-key", { region: RegionUS }); const request = new SendWhatsAppRequest({ to: "+15558675309", - from: "+15551234567", transactional_message_id: "3", message_data: { name: "Person",