Roblox message API fails to send messages

Hey there.

I wanted to make a function that would allow me to send messages via my script, but Roblox keeps throwing this error:
image

Even though I followed the format of request that should be followed

Does anyone have a clue why this error is occuring?

Thanks for reading.

I believe you need a recipientId field, not sure what userId is

Roblox use this api


https://chat.roblox.com/docs#!/Chat/post_v2_send_message
to get the conversation id try this one
https://chat.roblox.com/docs#!/Chat/get_v2_get_user_conversations

Thanks it worked now, though I thought I tried that before as well haha!

Side not for @NateOTB: I was talking about PM’s, not chat messages

1 Like

“userId” in this context would be the sender’s ID.

1 Like