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