{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreigoifkrt54uqskcdpkqiku26n7kinx7eylav3aiz74o3dpran2uv4",
    "uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mkrqdzarvlk2"
  },
  "path": "/t/completions-logs-not-available-when-using-an-uploaded-file/1380127#post_1",
  "publishedAt": "2026-05-01T08:30:06.000Z",
  "site": "https://community.openai.com",
  "textContent": "Hi all,\n\nI am using the OpenAI API to parse documents. I am using the /v1/chat/completions endpoint. Text documents (Word, email body), spreadsheets (Excel, CSV), or images (Base64) are inserted inline into the user content. The requests and responses are available in the Logs in my API Dashboard.\n\nWhen parsing a PDF, I upload the file to the OpenAI Storage, using the OpenAI Java SDK. Here is a snippet of the code:\n\n\n    public String uploadFile(byte[] fileBytes, String fileName) throws IOException {\n    \tPath tempFile = Files.createTempFile(\"openai_upload_\", \"_\" + fileName);\n    \tFiles.write(tempFile, fileBytes);\n\n    \tFileCreateParams params = FileCreateParams.builder().file(tempFile).purpose(FilePurpose.ASSISTANTS).build();\n    \tFileObject file = client.files().create(params);\n    \tFiles.deleteIfExists(tempFile);\n\n    \treturn file.id();\n    }\n\n\nIn my request, this file_id is inserted in the user content:\n\n\n    {\n    \t\"type\":\"file\",\n    \t\"file\":{\n    \t\t\"file_id\":\"file-[...]\"\n    \t}\n    }\n\n\nThis works fine. However, this request and its response are not available in the Logs in my API Dashboard. I did include “store”: true in my request JSON.\n\nIs it possible to make these request (and responses) available in the Logs? This would truly help with debugging complex issues.\n\nThanks in advance!",
  "title": "Completions Logs not available when using an uploaded file"
}