cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1047
Views
5
Helpful
5
Replies
Highlighted
Beginner

Cisco Webex API Excersice: Failed to create a room

Hello Everyone,

 

I am trying to complete an exercise at developer.cisco.com for API introduction, for this I register myself at developer.webex.com. I accessed to documentation>API reference>People>get my own details, after that I copy my Authentication bearer and I tried the exercise at developer.cisco.com and entered the command:

 

curl https://api.ciscospark.com/v1/messages -X POST -H "Authorization:Bearer Zm...4a46" --data "toPersonEmail=myemail@gmail.com" --data "text=Hi%20from%20DevNet"

I received the error:

"Failed to create room.","errors":[{"description":"Failed to create room."}],"trackingId":"ROUTER_5D704BDE-CC60-01BB-578F-BEAB7160578F"}


Please, provide me some guidance to verify why this error is happening, so I can advance with my learning process.

 

Thanks a lot.

5 REPLIES 5
Highlighted
Cisco Employee
Cisco Employee

If you're trying to send message to yourself, it will not work. Try and to set "toPersonEmail" to a different WebEx Teams contact.

Highlighted
Cisco Employee

This is what works:

 

curl -H "Authorization: Bearer INSERT_ACCESS_CODE_HERE" 'https://api.ciscospark.com/v1/messages' --data 'toPersonEmail=INSERT_EMAIL_HERE --data 'text=Testing 1,2,3. Just Joe Smith working on API. Please disregard'

 

 

And remember to send it to someone with a Cisco email, other than yourself.

Highlighted

Good, they must update the procedure 

Highlighted
Beginner

Hello, could you solve this problem? I tried to look at the solutions indicated in this forum and was not successful.
 

curl -H "Authorization:Bearer MTgxOGE3OTMtMmNkNS00Y2ZiLTkxMDQtOWZlNTM1ZTk2OGU4YTcxMjUwYTUtYTUy_PF84_12a1c6a5-7661-4b6c-a7a4-e9d28777da24" "https://api.ciscospark.com/v1/messages" --data "toPersonEmail=xxxxxxxxx@gmail.com" --data "text=Hi%20from%20DevNet"

{"message":"Failed to create room.","errors":[{"description":"Failed to create room."}],"trackingId":"ROUTER_5ECDC7E5-CB76-01BB-4D08-B3098C3B4D08"}

 

Help me please.

 

 

Highlighted

The step will works if you send the messages other than to yourself

Content for Community-Ad
Cisco Community October 2020 Spotlight Award Winners