Skip to main content
Question

AI Metadata API response structure keeps changing

  • June 2, 2025
  • 0 replies
  • 42 views

Hi, we are using the AI API to extract structured metadata. The format of the response from the Box API keeps changing, sometimes multiple times a day. Sometimes it has the below structure, which shows the key name, the prompt, the type and value.  

 

Answer: {

  • fields: [
    • {
      • key: financialYear,
      • prompt: What financial year, if any, does this document relate to? Financial years run from 1 July to 30 June. Return the year only (for example the 2023/24 financial year would return 2024),
      • type: string,
      •  value: 2024
            }
        ]

}

 

And other times it simply returns the below:

Answer: {

  • financialYear: 2024

}

 

Every time it changes we are forced to update how the response is treated. Why would this keep changing? Can we force it to stay with the second example?

 

Thanks.