API Error Creating Subscriber: Missing Required Field
Dear ManyChat Community,
I hope this message finds you well.
I am writing to report an issue I encountered while attempting to create a subscriber through the ManyChat API. Upon submitting the request, I received the following error 400 message: "To create a subscriber you must fill in at least one field: Phone or Email or WaId."
It appears that the API request to create a subscriber is failing due to a missing required field. According to the error message, at least one of the following fields must be provided: Phone, Email, or WaId.
However, I have ensured that the request includes all necessary fields and their corresponding values. Despite this, the error persists, and I am unable to create subscribers via the API.
Could you please assist me in resolving this issue? I have reviewed the documentation thoroughly and believe that the request is correctly formatted. It would be greatly appreciated if you could investigate the matter further and provide guidance on how to proceed.
Thank you for your attention to this matter. I look forward to your prompt response and assistance.
Sincerely,
Filipe Covas
Page 1 / 1
Hey Filipe! What body did you sent in the API request?
You need to change the JSON body with what you want to send, not just use the default text that ManyChat adds on swagger.
For example, if I wanted to add a new WHATSAPP subscriber, I’d use something like this:
You’re using the default body that ManyChat has as an example, without a proper phone, email or WhatsApp number, so that’s why you’re getting the error.
You need to change the JSON body with what you want to send, not just use the default text that ManyChat adds on swagger.
For example, if I wanted to add a new WHATSAPP subscriber, I’d use something like this:
You’re using the default body that ManyChat has as an example, without a proper phone, email or WhatsApp number, so that’s why you’re getting the error.
Hi Gustavo,
Thanks for the answer,
But in every way it is giving the same error.
For example, I put the same body payload that you advised me and it gave the same error:
Do you have any idea what it could be?
Thanks,
Filipe Covas
Hey Filipe! What body did you sent in the API request?
Hi Joren,
Thanks for the answer,
The last test I did was with the same body payload that Gustavo recommended in the answer below
Do you have any idea what it could be?
Thanks,
Filipe Covas
You’re right, that’s a bug that needs reporting (it worked before!). You should contact support and open a ticket.
For now, I’ve tested adding an email/phone and it worked fine. I suggest using this workaround until the bug is fixed.
You’re right, that’s a bug that needs reporting (it worked before!). You should contact support and open a ticket.
For now, I’ve tested adding an email/phone and it worked fine. I suggest using this workaround until the bug is fixed.
I tested it now by adding the same payload with email/phone and it gave the same error.
It seems unstable to me, I've already opened a support ticket.
It's probably a general bug.
Hi.
Did you find a solution to this problem? I am going through something similar. Where the JSON structure most of the time is not sending the value that is stored in the variable (CUF)
Hi, you
arrived at a solution,
I'm going through the same problem
{
"status": "error",
"message": "Validation error",
"details": {
"messages": {
"phone_number": {
"message":
"To create a subscriber you must fill in at least one field: Phone or Email or WaId"
]
}
}
}
}
Hey everybody,
I tested this a few days ago, and I realized that this error comes up if you try to create a user, but you do not have the channel enabled on the account.
For example, if you try to create a WhatsApp user, but the WhatsApp channel is not enabled.
Make sure that the channels you’re trying to add through the API are channels that are enabled on the Manychat account. This sorted out the issues for me.
Hope this helps!
Hey everybody,
I tested this a few days ago, and I realized that this error comes up if you try to create a user, but you do not have the channel enabled on the account.
For example, if you try to create a WhatsApp user, but the WhatsApp channel is not enabled.
Make sure that the channels you’re trying to add through the API are channels that are enabled on the Manychat account. This sorted out the issues for me.
Hope this helps!
Hey Gustavo!
I’m facing the exact same issue and I’m not able to get rid of it.
I’ve basically signed up in Manychat using FB.
I’ve tried multiple payloads and I keep getting the same error. Should I do anything special to enable FB other than signing up with it? I even have a working / live workflow in FB that is working, so I’m a bit confused:
I’ve tried with real emails that uses FB just in case, but no luck.
@iec989 are you trying to create email users or Facebook users on your account?
If you’re creating email subscribers and your account has email enabled, the way you’re doing it should work.
If your goal is to create Facebook subscribers, then that’s not possible at all. The only way to get a Facebook subscriber is when they opt-in through a trigger or when they message your bot.
Hey @Gustavo Boregio , running into the same issue. I saw your note about channels, but it doesn’t appear to help. Could you take a peek?
Status:
Telegram Channel connected
Email connected (although it will not be used)
I get the same error as the OP, “To create a subscriber you must fill in at least one field: Phone or Email or WaId".