# Documentation bug: function\_call output missing required id field in Interactions API example

**URL:** <https://discuss.ai.google.dev/t/documentation-bug-function-call-output-missing-required-id-field-in-interactions-api-example/121529>\
**Category:** Gemini API\
**Tags:** documentation\
**Created:** [February 5, 2026, 11:57pm UTC](https://discuss.ai.google.dev/t/documentation-bug-function-call-output-missing-required-id-field-in-interactions-api-example/121529 "2026-02-05T23:57:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prasad\_Karmarkar](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/prasad_karmarkar/32/36139_2.png) [@Prasad\_Karmarkar](https://discuss.ai.google.dev/u/Prasad_Karmarkar)\
**Post date:** [February 5, 2026, 11:57pm UTC](https://discuss.ai.google.dev/t/documentation-bug-function-call-output-missing-required-id-field-in-interactions-api-example/121529/1 "2026-02-05T23:57:42Z")

</div>

### **Environment**

- API: `v1beta/interactions`

- Model: `gemini-3-flash-preview`

- Client: curl / Java SDK

- Docs URL: [https://ai.google.dev/api/interactions-api#CreateInteraction-function\_calling](https://ai.google.dev/api/interactions-api#CreateInteraction-function_calling)

The Interactions API documentation contains an incorrect response example for function calling.

In the documented example, the function\_call object inside outputs does not include an id field. However, the actual API always returns an id for function\_call outputs.

This results in a documented response schema that does not match actual API behavior and may mislead SDK authors and developers implementing strict models based on documentation.

Steps to Reproduce

Send a function-calling request using the Interactions API:

```auto
curl -X POST https://generativelanguage.googleapis.com/v1beta/interactions \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3-flash-preview",
    "tools": [
      {
        "type": "function",
        "name": "get_weather",
        "description": "Get the current weather in a given location",
        "parameters": {
          "type": "object",
          "properties": {
            "location": {
              "type": "string"
            }
          },
          "required": ["location"]
        }
      }
    ],
    "input": "What is the weather like in Boston, MA?"
  }'

```

Observe the API response.

Expected Result (per documentation)

```auto
{
  "outputs": [
    {
      "type": "function_call",
      "name": "get_weather",
      "arguments": {
        "location": "Boston, MA"
      }
    }
  ]
}

```

Actual Result (API response)

```

```auto
{
  "outputs": [
    {
      "type": "thought",
      "signature": "..."
    },
    {
      "type": "function_call",
      "id": "46ww9pp1",
      "name": "get_weather",
      "arguments": {
        "location": "Boston, MA"
      }
    }
  ]
}

```

Impact

Documentation example omits a required field (id)

Developers modeling responses from docs may produce incorrect schemas

SDK authors may incorrectly mark id as optional or absent

Confusing mismatch when comparing real responses to documentation

---

<div class="post-metadata">

**Author:** ![Trey\_Nguyen](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/trey_nguyen/32/83269_2.png) [@Trey\_Nguyen](https://discuss.ai.google.dev/u/Trey_Nguyen)\
**Post date:** [February 7, 2026, 12:21am UTC](https://discuss.ai.google.dev/t/documentation-bug-function-call-output-missing-required-id-field-in-interactions-api-example/121529/2 "2026-02-07T00:21:20Z")

</div>

Hi there! Thanks for flagging this bug. We have since fixed the gap (:
