Outbounded messages for Whatsapp are ACCEPTED but not SENT

I have been trying to send a proactive(first time message using a template) to whatsapp number. the post request[1] is being made but request status[2] is shown as ACCEPTED not as SENT and because of that only msg are not being sent.

my body for sending msg looks like following.

    {
    "from": {
        "phone_number": "+9199999999999"
    },
    "provider": "whatsapp",
    "to": [
        {
            "phone_number": "+919999999999"
        }
    ],
    "data": {
        "message_template": {
            "storage":"conversation",
            "template_name": "template_name",
            "namespace": "xxxxxx-xxxxx-xxxxxx-xxxxxxxxx-xxxxxx",
            "language": {
                "policy": "deterministic",
                "code": ""
            },
                "body": {
                    "params": [
                        {
                            "data": "XYZ"
                        },
                        {
                            "data": "122"
                        },
                        {
                            "data": "123"
                        }
                        

                    ]
                }
            }
        }
    }

[1] - https://api.freshchat.com/v2/outbound-messages/whatsapp
[2] - http://api.freshchat.com/v2/outbound-messages?request_id=xxxxxx-xxxxxx

2 Likes

Hi @Shivank_Gautam,

The body structure looks accurate as described in the :freshchat: documentation. Unfortunately, on this forum, we are short of help from the Freshchat team. I request you to raise a ticket with support@freshchat.com for accurate updates if the API doesn’t work as expected.

Meanwhile, I will leave this topic open for any freshchat developers to chime in if they can.

We encourage you to create topics in the future, as we look forward to teaming up with the Freshchat team to help developers here on forum.

1 Like

I am facing the same issue.
When using api.freshchat URL for API, a ‘token not present’ error comes.
When using our freshchat domain URL, Success response comes but whatsapp message is not sent.
Have an open thread with Freschat team.

@Shivank_Gautam Have you been able to get this resolved yet?

1 Like

For me it was some other issue. I hope it has been solved for you also now.

Hi Saif, please consider it solved. Though I would also like to know what is the validity of API KEY?

1 Like

@Shivank_Gautam - The API Key will be valid as long as the account admin generates the new one.