Error with communication API - Sending WhatsApp message to a thread error

Sine today, my code for sending WhatsApp messages to customers via the POST https://api.hubapi.com/conversations/v3/conversations/threads/{threadID}/messages endpoint stopped working.

Anybody else experienced this issue? It ran smoothly for 2 month and then just started showing this error:

{

“status”: “error”,

“message”: “DeliveryIdentifier type HS_PHONE_NUMBER cannot be used for channel `1007`”, ### this is the whatsapp channel

“correlationId”: “12345”,

“context”: {

“deliveryIdentifierType”: [

“HS_PHONE_NUMBER”

],

“channelId”: [

“1007”

]

},

“category”: “VALIDATION_ERROR”,

“subCategory”: “ConversationsApiError.DELIVERY_IDENTIFIER_TYPE_NOT_VALID_FOR_CHANNEL”

}

The error does not make sense to me. I used the HS_PHONE_NUMBER all the time and did not change a thing.

Hey, @FGless :waving_hand: I’m happy to reach out to the team that owns this endpoint —
Conversations inbox and messages APIs (BETA), and see if there was a recent change.

Adding this part from the documentation for completeness:

Please note: this API is currently in beta and is subject to change based on testing and feedback. By using these endpoints you agree to adhere to our Developer Terms& Developer Beta Terms. You also acknowledge and understand the risk associated with testing an unstable API.

If you have any additional context or details, please let me know and I’ll pass it along.

Best,

Jaycee

Thanks for the answer. It started to work again 2 hours ago, the error disappeared. Not sure if it was HubSpot or Meta / WhatsApp that did something.

Hi, @FGless :waving_hand: Glad to hear it! If it crops up again, don’t hesitate to reach out :blush: — Jaycee