I see 401 error when I sent a command to a device using a project API key. The key looks correct. What went wrong?
PUT /devices/760/command HTTP/1.1
The problem was Autorization header needs to have "ModeCloud" and the correct Authorization header is:
Authorization: ModeCloud v1.aaaaaa.bbbbbbbbbbbbbbb