- [☑] I have checked that the SDK documentation doesn't solve my issue.
- [☑] I have checked that the API documentation doesn't solve my issue.
- [☑] I have searched the Box Developer Forums and my issue isn't already reported (or if it has been reported, I have attached a link to it, for reference).
- [☑] I have searched Issues in this repo and my issue isn't already reported.
Description of the Issue
I've been using the Box Java SDK to access the Box AI API ,and I've been consistently receiving a 400 Bad Request response since Jun 24th. I noticed that there is a change on Jun 24th, 2025 about Enhanced extract agent.
Has anyone encountered a similar issue or knows what might be causing this? Any insights would be greatly appreciated!
Steps to Reproduce
BoxAIResponse response = BoxAI.extractMetadataFreeform(
api,
"firstName, lastName, location, yearOfBirth, company",
Collections.singletonList(new BoxAIItem("123456", BoxAIItem.Type.FILE))
);
Error Message, Including Stack Trace
{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Bad request",
"help_url": "https://developer.box.com/guides/api-calls/permissions-and-errors/common-errors/",
"request_id": "0585e7541e9348c28b2a5b367b4e3a16f"
}
Versions Used
Java SDK: 4.16.3
Java: 17.0.14
Description of the Issue
I've been using the Box Java SDK to access the Box AI API ,and I've been consistently receiving a 400 Bad Request response since Jun 24th. I noticed that there is a change on Jun 24th, 2025 about Enhanced extract agent.
Has anyone encountered a similar issue or knows what might be causing this? Any insights would be greatly appreciated!
Steps to Reproduce
BoxAIResponse response = BoxAI.extractMetadataFreeform(
api,
"firstName, lastName, location, yearOfBirth, company",
Collections.singletonList(new BoxAIItem("123456", BoxAIItem.Type.FILE))
);
Error Message, Including Stack Trace
{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Bad request",
"help_url": "https://developer.box.com/guides/api-calls/permissions-and-errors/common-errors/",
"request_id": "0585e7541e9348c28b2a5b367b4e3a16f"
}
Versions Used
Java SDK: 4.16.3
Java: 17.0.14