MuleSoft · Rate Limiting: SLA-Based policy

401 Request blocked due to invalid client credentials (Rate Limiting: SLA-Based)

Short answer

An API protected by the Rate Limiting: SLA-Based policy returns 401 when the client ID or client secret is invalid. A client with no contract with the API is always rejected, so create the contract in API Manager and send its credentials.

VerifiedLast verified

01Error text

MuleSoft error
401 - Request blocked due to invalid client credentials (client ID or client secret) provided

02Likely causes

  • The client ID or client secret provided is invalid.
  • A client that has no contract with the API is always rejected.

03How to fix it

  1. Confirm the client application has a contract with this API in API Manager. Create it if it does not.
  2. Check where the policy reads credentials from: Client ID Expression and, if set, Client Secret Expression.
  3. Send the client ID and secret in those locations and repeat the request.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.