Connecting Google search console API to my app

Hello everyone,

does anyone know how to fix this error please ? All my settings on bubble API connector looks ok

Bubble is trying to call your API named “GSC Spred Final”, but the API is returning:

HTTP 401 — Invalid Credentials

That means the request is reaching the service, but the credentials being sent are wrong, missing, expired, or not accepted.

Most likely causes:

  1. Your OAuth access token is missing or expired

    • If this API uses OAuth2, you may need to re-authenticate the account.

    • In Bubble, go to the plugin/API Connector setup and check if the OAuth flow has been initialized properly.

  2. Wrong Client ID or Client Secret

    • Double-check the OAuth app credentials.

    • Make sure you are using the correct credentials for the correct app/project.

  3. Redirect URI mismatch

    • The redirect URL in your OAuth provider must exactly match what Bubble expects.

    • Even one extra slash or wrong version-test/live URL can cause invalid credentials.

  4. Wrong authorization/token URL

    • If the OAuth2 endpoints are incorrect, Bubble may receive bad tokens or fail to refresh them.
  5. API key/token is in the wrong place

    • Some APIs need the token in the Authorization header as:
Bearer YOUR_ACCESS_TOKEN

  • If Bubble is sending it as a query parameter or wrong header, the API may reject it.
  1. You initialized in test mode but are using live mode, or vice versa

    • If you initialized the API in Bubble’s test environment, it may not work properly in live unless the live credentials/auth are also set up.

For this specific error, I would check the API Connector call named GSC Spred Final and confirm:

Authentication type: OAuth2 User-Agent Flow or OAuth2 Password Flow, depending on your setup
Client ID: correct
Client Secret: correct, if required
Authorization URL: correct
Token URL: correct
Scope: correct
Authorization header: Bearer token
Redirect URI: matches Bubble exactly

In simple terms: Bubble is making the call, but the service is saying “I don’t trust these credentials.”