Using a bot i can send a webex message to my own email address without issue, using the 'toPersonEmail' parameter. This tells me the code I'm writing is working. When I change the email address to a co-worker's email address, I get a 400 error telling me ...
{'message': 'Failed to post message due to invalid parameter.', 'errors': [{'description': 'Failed to post message due to invalid parameter.'}]
The only change is the email address itself. What is causing the error.
Does the other user and the bot itself need to be in a webex space together to make that work? If I want to be able to send a message to any co-worker I wish, on a regular basis from a bot, what needs to be done to make that happen?