Creating a background interaction succeeds, but fetching it fails every time.
Setup
- Model: gemini-3.8-flash, background: true
- Auth: x-goog-api-key header only, AQ.-prefix key (no Authorization header, no ?key=)
- Header: Api-Revision: 2026-05-20
What happens
- POST /v1beta/interactions → 200, returns an id, status in_progress
- GET /v1beta/interactions/{id} → 400
{"error":{"message":"Multiple authentication credentials received. Please pass only one.","code":"invalid_request"}}
Timeline (UTC)
- Last success: 2026-10-03 17:05
- First failure: 2026-10-04 17:05
- Still failing: 2026-10-04 18:11
- No key change and no deploy on our side in between.
Reproduction (plain curl, from the background-execution docs)
ID=$(curl -s -X POST "https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-H "Api-Revision: 2026-05-20" \
-d '{"model":"gemini-3.8-flash","input":"Reply with OK only.","background":true}' \
| python3 -c "import json,sys; print(json.load(sys.stdin)['id'])")
curl -s "https://generativelanguage.googleapis.com/v1beta/interactions/$ID" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Api-Revision: 2026-05-20"
Also
- AI Studio shows the same failure for the same interaction: “Agent finished with error: Failed to close Interaction stream: Multiple authentication credentials received. Please pass only one.” (screenshot attached)
- The same key works for creating interactions, for countTokens, and for generateContent / streamGenerateContent.
Questions
- Is this a known regression on the retrieval path for AQ. keys?
- Are background interactions that cannot be retrieved still billed?
I can confirm I am observing the same.
Thanks for your reply! Have you heard of/came across any solutions yet?
No workaround, our integration is simply not working atm.
same! need to use synchrone mode
I can confirm I am observing the same.
Hello everyone,
This issue has been resolved. Could you please retry polling GET /v1beta/interactions/{id} with your API key and confirm if it is working as expected now?
Hi everyone,
I’m experiencing what appears to be a very similar issue while integrating the Gemini Interactions API into an educational application.
The problem:
Background interaction creation succeeds, but retrieving the interaction using GET returns HTTP 400.
Technical details:
-
Model: gemini-3.8-flash
-
API: /v1beta/interactions
-
API revision: 2026-05-20
-
Authentication: x-goog-api-key header only
-
No Bearer token, query-string API key, or additional authentication credentials
-
background: true
-
store: true
-
Input: public YouTube video with static clipping (1200s to 2100s)
What happens:
-
POST succeeds with HTTP 200 and returns a valid interaction ID with status in_progress.
-
The first GET on that interaction returns HTTP 400 with invalid_request.
-
A separate, single GET attempt on October 8, 2026, at 01:29 UTC, using the exact same stored interaction ID, also returns HTTP 400 with invalid_request.
-
No field path is provided, and the interaction’s final status, output, token usage, and billing remain unknown.
Our original provider error message was redacted by our logging system, so I cannot confirm that Google’s underlying error is exactly the same “Multiple authentication credentials received” message reported here.
However, we have verified that:
-
The interaction ID is identical across the creation receipt, database storage, and retrieval request.
-
The GET uses the documented endpoint, API revision, and a single authentication channel.
-
No request body, query parameters, redirects, or automatic retries are involved.
-
The same integration previously completed background video interactions successfully, including retrieving their results.
We have also reproduced this retrieval failure without triggering any additional generation.
Could someone from the Google Gemini team clarify:
-
Is there a known regression affecting retrieval of stored background interactions?
-
Is there a recommended workaround that allows existing interactions to be retrieved without submitting them again?
-
Can interactions that have completed remotely but cannot be retrieved still be recovered?
-
Are these potentially completed but inaccessible interactions billed?
-
Is there an estimated timeline for a fix?
This is currently blocking our asynchronous video analysis pipeline. We would prefer not to resubmit potentially completed jobs and incur duplicate charges.
I can provide the full interaction ID and additional sanitized diagnostics privately to Google staff if necessary.
Thanks for any help or updates!
I shall try it and get back to you asap!
It works now!!
Great! Thanks!
Hello @Maxime_Ventadour ,
Thank you for the detailed report. Could you please retry retrieving the interaction now? If you still get an HTTP 400, please share the interaction ID, the approximate timestamp of the request, and the full error message via direct message.