Common Errors
401 Missing API key or secret
Cause:
X-API-Keymissing- both
X-API-Secretand bearer secret missing
Fix:
- Send
X-API-KeyandX-API-Secret - or send
X-API-KeyandAuthorization: Bearer <secret>
401 Invalid API key or secret
Cause:
- key/secret pair does not match
- rotated or revoked credentials
Fix:
- regenerate credentials in portal and update backend secrets
403 2FA setup required in portal
Cause:
- operation is protected by B2B 2FA guard
Fix:
- enable integration 2FA in portal before calling:
- strategy creation
executeSwapdeposits/depositTokenswithdrawTokens
404 Not found
Cause:
- user id, strategy id, pool id, swap id, deposit id, or withdraw id does not exist in your integration scope
Fix:
- verify ids were created under the same integration key
- verify
userIdis the external user id your client uses for that user (see Users — Identity model)