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
    • id string

      Format should match the following pattern: ^file-.

    • object string

      Value is file.

    • bytes integer
    • created_at string(date-time)
    • filename string
  • 404 application/json

    file not found

GET /files/{id}
curl \
 --request GET 'https://v5.jinshuju.net/exam/api/files/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": "file-679210fae88e5ddf0d5b8891",
  "bytes": 28,
  "object": "file",
  "filename": "Exam Attachment 1",
  "created_at": "2025-01-23T17:50:50.720+08:00"
}
Response examples (404)
{
  "error": {
    "type": "invalid_request_error",
    "message": "No such File object: invalid"
  }
}