Problems trying to post to a chat from Chatbot

Description
My goal is to post a chat message to a specific channel from a standalone service using chatbot credentials. The service successfully gets an access token from /oauth/token using the client id/secret. It then uses the token in the Authorization header of a POST /v2/im/chat/messages request like this:

{
  "robot_jid": "{my_chatbot_id}@xmpp.zoom.us",
  "to_jid": "{my_user_id}@xmpp.zoom.us",
  "account_id": "{my_user_id}",
  "content": {
    "head": {
      "text": "Hello World"
    }
  }
}

According tot he API docs I should be able to send a chat message to a specific user, which is what I think I’ve got in the json above. The chatbot has these scopes:

imchat:bot imchat:write:admin

Error
The response is 403 with this info:

{
    "code": 7004,
    "message": "No channel or user can be found with the given to_jid."
} 

Which App Type (OAuth / Chatbot / JWT / Webhook)?
Chatbot (not installed on the client, since that is not our use case)

Which Endpoint/s?
/v2/im/chat/messages

Hey @markv,

Thank you for reaching out to the Zoom Developer Forum. Please send an email to developersupport@zoom.us with a link to this thread. In that email, please include the full request body that you’re using.

I’ll investigate the issue further from there.

Thanks,
Max

Done and done. #10203403

Hey @markv,

Thank you for submitting a ticket, I’ll be sure to follow-up with you there.

Thanks,
Max

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.