How to validate an API key permissions?

Hello,

I’m currently trying to validate that the permissions a user configured for an API Key are the right ones but I’m not able to find the information.

There is such an information linked to the account itself but I’m not sure because everything is ON in my case, even if I use a read-only API Key.

"canTrade": true,
"canWithdraw": true,
"canDeposit": true,

Do I miss something here or is there a bug?

Hint: My account type is set up to “MARGIN” and not “SPOT”. I don’t know if it could be related.

Many thanks.

which endpoint did you try to call and what’s the error message?

/account
Do I need to use the persmissions array instead? In that case where can I find all possible enum values.

if you want to call GET /api/v3/account, the settings from the screenshot is enough.