Error code: 40160 - action not permitted

This means that the client does not have permission to do whatever it is attempting to do. Read through our permissions documentation and make sure the client has appropriate permissions to allow that action to be performed.

If you are using token authentication, remember that the capabilities specified when requesting a token are intersected with the capabilities of the underlying key to get the actual capabilities of the token.

Specific examples of this error include:


Key does not support requested capabilities
This error can be the result of requesting a token where the body of the token request includes a capability property specifying either
  • An empty object {} 
  • A resource which is different to what the API key may be restricted to 
  • A capability operation which is different to what the API key may be restricted to

 

 
Please contact us by emailing support@ably.com if you have any questions.