Hi,
I’m seeing what appears to be a file resolution / authorization issue when creating a text Batch API request using /v1/responses.
The input JSONL file is successfully uploaded with purpose=batch and is fully accessible through the Files API using the same API key, but the Batch API reports that it cannot find or access the file.
This appears similar to recently reported Batch file-access issues, but in this case the failure occurs with the Batch input JSONL file itself, not an image or attachment referenced inside a batch request.
Actual error
Cannot find file file-..., or organization org-... does not have access to it.
Reproduction
1. Upload the Batch input file
curl https://api.openai.com/v1/files \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-F purpose="batch" \
-F file="@batch.jsonl"
The upload succeeds and returns a valid file-... ID.
The returned file has:
{
"purpose": "batch"
}
2. Retrieve the file metadata
Using the same API key:
curl https://api.openai.com/v1/files/file-... \
-H "Authorization: Bearer $OPENAI_API_KEY"
This succeeds.
3. Retrieve the actual file contents
curl https://api.openai.com/v1/files/file-.../content \
-H "Authorization: Bearer $OPENAI_API_KEY"
This also succeeds and returns the uploaded JSONL contents.
4. Create the Batch
Using the same API key and the same file ID:
curl https://api.openai.com/v1/batches \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input_file_id": "file-...",
"endpoint": "/v1/responses",
"completion_window": "24h"
}'
The Batch API fails with:
Cannot find file file-..., or organization org-... does not have access to it.
Expected behavior
Since the file:
-
was successfully uploaded with
purpose=batch, -
can be retrieved through
/v1/files/{file_id}, -
can be downloaded through
/v1/files/{file_id}/content, -
and is accessed using the same API key,
the Batch API should be able to use it as input_file_id.
Additional context
-
This reproduces with direct API calls, so it does not appear to be an SDK/client-library issue.
-
The workflow was previously working normally, and the failures started today at approximately 11:39 KST (UTC+9).
-
The problem occurs with a normal text Batch using
/v1/responses, not an image Batch. -
Similar Batch file-access issues have recently been reported by other users, including cases involving uploaded
file_idresolution.
Is this a known regression affecting Batch input_file_id resolution?
I can provide request IDs, batch IDs, and file IDs privately if needed.