When trying to run using a “Sending a Message via chat” API using OAUTH 2.0, the following message is returned:
{
“code”: 400,
“data”: “{” code \ ": 300, " message \ ": " Validation failed. \ ", " errors \ “: [{” field \ ": " message \ ", " message \ ": " Missing field. \ “}]}”
}
Hi @ulisses.mesquita – happy to help! Can you send the full API request path parameter and payload you submitted? For user id and email field values, you can put [REDACTED].
The message returned is the following error: 400 → Message: code":300,“message”:“Validation Failed.”,“errors”:[{“field”:"message ",“message”:"Missing field.\
I’m not immediately seeing an issue with this. Can you provide the encoded JSON? I want to make sure that it isn’t being generated as a hashed array and is instead an object.
Further, make sure that you are sending the JSON in the POST body.