Retrieve file

GET /files/{id}

返回已上传的文件信息。

Path parameters

  • id string Required

    Format should match the following pattern: ^file-.

Responses

  • 200 application/json

    file found

    Hide response attributes Show response attributes object
  • 404 application/json

    file not found

GET /files/{id}
curl \
 -X GET https://v5.jinshuju.net/exam/api/files/{id}
Response examples (200)
{
  "id": "file-6757a41ee88e5d8d2a0bbbd6",
  "bytes": 404,
  "object": "file",
  "filename": "Exam Attachment 1",
  "created_at": "2024-12-10T10:14:54.796+08:00"
}
Response examples (404)
{
  "error": {
    "type": "invalid_request_error",
    "message": "No such File object: invalid"
  }
}