7004 when sending messages to some users + missing webhooks

Trying to send a message to some users v2/im/chat/messages I’m receiving

{
	"code":7004,
	"message":"The user does not have authorization, the application cannot send the message."
}

Also it seems like some of the webhooks for this user did not come through.

Not sure which other information to provide

Hey @alon,

Please provide your request body.

Also make sure the user you are trying to send the Chatbot message to has the app installed.

Which Webhook did not work?

Thanks,
Tommy

Sorry for the late response, just spotted this error again:

POST https://zoom.us/v2/im/chat/messages
{"account_id":"vCpAgfHuRDeDglOT3J1tFQ","to_jid":"-d8wpkcbs7otk5l4groq7q@xmpp.zoom.us","content":{"head":{"text":"test"}},"robot_jid":"v1d97h7pq_rp-r9urflxqzzw@xmpp.zoom.us"}

For most users, this does work… but not for this one…

Hey @alon,

This can happen when the user has uninstalled the Chatbot. Can you make sure they did not uninstall it?

Thanks,
Tommy

He did not uninstall the app. I checked the token is working was able to make requests with it to retrieve meeting and user objects. Also my webhooks are subscribed to uninstalls and deauthorizations

Hey @alon,

Make sure you are using the Chatbot token, which is different then an access_token that can retrieve meeting and user objects.

Thanks,
Tommy

i am… otherwise some of the calls would not work :slight_smile:

Hey @alon,

Is that user by chance the account owner?

Thanks,
Tommy