cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1021
Views
5
Helpful
2
Replies

Webex bot failed to send message

rodneymuyanja
Level 1
Level 1

Hi, I'm developing my first webex bot but i keep getting the following response when the i call the message endpoint https://webexapis.com/v1/messages

{
  "message": "Message destination could not be determined. Provide only one destination in the roomId, toPersonEmail, or toPersonId field",
  "trackingId": "WEBEX-DEV-PORTAL_50b497fa-dbb6-4ed0-8fe4-0f5e184c0365_5"
}

may be i need more details on what the message means because i have provided the necessary fields for my request shown below 

{
  "roomId": "Y2lzY29zcGFyazovL3VybjpURUFNOmV1LWNlbnRyYWwtMV9rL1JPT00vOWNlYmM4MDAtMGYzMy0xMWVkLTk4ZDMtOTM5Yzg5MGZmYzgw",
  "parentId": "Y2lzY29zcGFyazovL3VybjpURUFNOmV1LWNlbnRyYWwtMV9rL01FU1NBR0UvYzI5NzVlODAtMTAwZS0xMWVkLTk4OGMtOWQ3OGY2YWFmYTM5",
  "toPersonEmail": "muyanjarodney266@gmail.com",
  "text": "Hi, not cool that you don't greet",
  "toPersonId": "Y2lzY29zcGFyazovL3VzL1BFT1BMRS9iYjI5NWNlYS0zNTMzLTRkMDAtYTE1MC0yMTc2ZDRiZGU5MDQ"
}

any help and direction provided would  be highly appreciated.

2 Replies 2

rodneymuyanja
Level 1
Level 1

Thank you very much for this

dtibbe
VIP
VIP

The reason is quite clear if you check the error message: you have provided all, roomId, toPersonEmail, and toPersonId. The endpoint accepts only one of them to be set.

Simply remove toPersonEmail and toPersonId and try again.