Help Needed: Issue Connecting OpenAI Assistant to WhatsApp

Hi everyone,

I’m encountering a problem while trying to connect my assistant, created using the OpenAI API, with WhatsApp. The issue seems to be related to the endpoint I’m using. Here are the details:

I’m using the following endpoint:


with headers and JSON data. However, I receive the following error in my logs:

2024-05-24T18:55:24.627992+00:00 app[web.1]: ERROR:app:HTTP error occurred: 404 Client Error: Not Found for url:**********/messages
2024-05-24T18:55:24.628010+00:00 app[web.1]: ERROR:app:Response content: {
2024-05-24T18:55:24.628013+00:00 app[web.1]: "error": {
2024-05-24T18:55:24.628013+00:00 app[web.1]: "message": "Invalid URL (POST /v1/assistants/asst_**********/messages)",
2024-05-24T18:55:24.628014+00:00 app[web.1]: "type": "invalid_request_error",
2024-05-24T18:55:24.628016+00:00 app[web.1]: "param": null,
2024-05-24T18:55:24.628016+00:00 app[web.1]: "code": null
2024-05-24T18:55:24.628016+00:00 app[web.1]: }
2024-05-24T18:55:24.628016+00:00 app[web.1]: }
2024-05-24T18:55:24.628240+00:00 app[web.1]: INFO:app:Response to whatsapp:+11223344: Error with OpenAI HTTP response.

Could anyone guide me on the correct endpoint I should use for the assistant to respond via WhatsApp?