Deep Research API requests fail with HTTP 403

The Deep Research API returns HTTP 403.

I’m using it within an Obsidian plugin (where the Origin header is “obsidian”) using the TypeScript genai interface.

  • generateContent makes requests to “https ://generativelanguage.googleapis.com/v1beta/models/gemini-3-pro-preview:generateContent” (without the space) and it works :white_check_mark:
  • The Interactions API makes requests to “https ://generativelanguage.googleapis.com/v1beta/interactions” (without the space) which fail with “403 Forbidden” :cross_mark:

Hi @alltom,

Could you please eloborate on this issue? What are you trying to acheive and also if possible, please share a snippet of code where you are calling the Deep Research Agent.

For reference, The Deep Research agent is exclusively available using the Interactions API. You cannot access it through generate_content. Deep Research Agent

Thank you!

My GoogleGenAI instance is named ai and ai.models.generateContent(requestParameters) succeeds while a snippet like this fails with HTTP 403:

const interaction = ai.interactions.create({agent: …, background: true, input: prompt});
await ai.interactions.get(interaction.id);