cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
637
Views
0
Helpful
1
Replies

Problem sending message using "toPersonEmail"

fxstar
Level 1
Level 1

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?

1 Reply 1

sandiban
Cisco Employee
Cisco Employee

Hello @fxstar,
Thanks for your patience so far!
From the Error details which you've provided, looks like the User Email doesn't have a Valid Webex account possibly and that's why sending message to that account is failing.
Otherwise I don't see any reason there.

Is it possible to share us the emailId which you're using in the field toPersonEmail and we can check that account in Webex Control Hub to understand if it already has a Webex account or, not.
In case it has a Webex Account and still it fails - we need to check further. We'll need the error trackingId in that case.

Could you also try to send the message to some other email where you're sure that has a Webex Account and let's try that out once from your side. 

Regards!
Sandip